Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
use npm ci instead of install (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 authored Mar 3, 2019
1 parent 9882471 commit 27bfbd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/cea-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand All @@ -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
Expand Down

0 comments on commit 27bfbd5

Please sign in to comment.