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-browser.git
The following commit(s) were added to refs/heads/master by this push: new 449c77e Copy node_modules if the directory exists (#68) 449c77e is described below commit 449c77e481f7fdd63125ad2074edbb852d2e205b Author: エリス <er...@users.noreply.github.com> AuthorDate: Wed Dec 19 10:33:49 2018 +0900 Copy node_modules if the directory exists (#68) --- bin/lib/create.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lib/create.js b/bin/lib/create.js index 667d9ff..997913a 100644 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -58,8 +58,8 @@ module.exports.createProject = function (project_path, package_name, project_nam shell.cp('-r', path.join(ROOT, 'bin/template/www'), project_path); // recreate our node_modules structure in the new project - shell.cp('-r', path.join(ROOT, 'node_modules'), - path.join(project_path, 'cordova')); + let nodeModulesDir = path.join(ROOT, 'node_modules'); + if (fs.existsSync(nodeModulesDir)) shell.cp('-r', nodeModulesDir, path.join(project_path, 'cordova')); // copy check_reqs file shell.cp(path.join(ROOT, 'bin/lib/check_reqs.js'), --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org