From 27bfbd5c2578e2cd99aeae2b600e3af85530b202 Mon Sep 17 00:00:00 2001 From: Owen Buckley Date: Sat, 2 Mar 2019 19:43:47 -0500 Subject: [PATCH] use npm ci instead of install (#86) --- tasks/cea-install.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tasks/cea-install.js b/tasks/cea-install.js index 9204dba..f64a91c 100755 --- a/tasks/cea-install.js +++ b/tasks/cea-install.js @@ -120,7 +120,8 @@ const install = () => { return new Promise((resolve, reject) => { const pkgMng = program.yarn ? 'yarn' : 'npm'; // default to npm const command = os.platform() === 'win32' ? `${pkgMng}.cmd` : pkgMng; - const args = ['install', '--save', '--save-exact', '--loglevel', 'error']; + const installCommand = pkgMng === 'yarn' ? 'install' : 'ci'; + const args = [installCommand, '--loglevel', 'error']; const process = spawn(command, args, { stdio: 'inherit' }); process.on('close', code => { @@ -140,10 +141,10 @@ const run = async () => { console.log('Preparing project directory...'); await checkTargetDir(); - console.log('Copying project files...'); + console.log('Initialzing project with files...'); await srcInit(); - console.log('Initializing npm dependencies...'); + console.log('Creating manifest (package.json)...'); npmInit(); // change directory to target directory