From 52b65638b5afb604f85dff7b6591e16d870b364d Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Wed, 9 Jan 2019 01:25:19 -0500 Subject: [PATCH] Add warning that function in spawn.js is deprecated (#481) Co-authored-by: Christopher J. Brody Co-authored-by: Oliver Salzburg --- bin/templates/scripts/cordova/lib/spawn.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/templates/scripts/cordova/lib/spawn.js b/bin/templates/scripts/cordova/lib/spawn.js index a6c29307f0..78bdf7b506 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'});