This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-osx.git
The following commit(s) were added to refs/heads/master by this push: new c78a72b Copy node_modules if the directory exists (#82) c78a72b is described below commit c78a72beb19acd5d62e7650353598ae3bee4c4c1 Author: エリス <er...@users.noreply.github.com> AuthorDate: Wed Dec 19 10:33:23 2018 +0900 Copy node_modules if the directory exists (#82) --- bin/lib/create.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index 06aa0df..44329f6 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -83,7 +83,9 @@ function copyScripts (projectPath) { // Copy in the new ones. var binDir = path.join(ROOT, 'bin'); shell.cp('-r', srcScriptsDir, projectPath); - shell.cp('-r', path.join(ROOT, 'node_modules'), destScriptsDir); + + let nodeModulesDir = path.join(ROOT, 'node_modules'); + if (fs.existsSync(nodeModulesDir)) shell.cp('-r', nodeModulesDir, destScriptsDir); // Copy the check_reqs script shell.cp(path.join(binDir, 'check_reqs*'), destScriptsDir); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org