Skip to content

Commit

Permalink
fix: pin dependency at shipjs setup (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored Nov 25, 2019
1 parent 2365831 commit 6560b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shipjs/src/step/setup/addDevDependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import path from 'path';
export default ({ dependencies, dir }) =>
runStep({ title: 'Installing Ship.js' }, () => {
const command = detectYarn(dir)
? `yarn add -D ${dependencies.join(' ')}${
? `yarn add --exact --dev ${dependencies.join(' ')}${
usesYarnWorkspace(dir) ? ' -W' : ''
}`
: `npm install --save-dev ${dependencies.join(' ')}`;
: `npm install --save-exact --save-dev ${dependencies.join(' ')}`;
run({ command, dir, silent: true, printCommand: false });
return () => print(`${info('✔')} Installed shipjs as devDependency.`);
});
Expand Down

0 comments on commit 6560b9f

Please sign in to comment.