diff --git a/bin/templates/scripts/cordova/lib/spawn.js b/bin/templates/scripts/cordova/lib/spawn.js index a6c29307f..78bdf7b50 100644 --- a/bin/templates/scripts/cordova/lib/spawn.js +++ b/bin/templates/scripts/cordova/lib/spawn.js @@ -30,6 +30,9 @@ var proc = require('child_process'); * @deprecated Use `require('cordova-common').superspawn` instead. */ module.exports = function (cmd, args, opt_cwd) { + console.warn( + 'This function is deprecated, may be removed from a future release. ' + + "Use `require('cordova-common').superspawn` instead."); var d = Q.defer(); try { var child = proc.spawn(cmd, args, {cwd: opt_cwd, stdio: 'inherit'});