Skip to content

Commit

Permalink
Don’t create a package-lock.json file when installing the CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
chasenlehara committed Jul 7, 2017
1 parent c01603b commit a32a23f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/cli/cmd-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(folder, opts) {
// install donejs-cli
function installCli(version, options) {
var pkg = 'donejs-cli@' + utils.versionRange(version);
var npmArgs = [ 'install', pkg, '--loglevel', 'error' ];
var npmArgs = [ 'install', pkg, '--no-shrinkwrap', '--loglevel', 'error' ];
return utils.spawn('npm', npmArgs, options);
}

Expand Down
3 changes: 1 addition & 2 deletions test/cmd-init-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('cli init cmd', function() {

assert.equal(installCliCall.binary, 'npm');
assert.deepEqual(installCliCall.args, [
'install', 'donejs-cli@latest', '--loglevel', 'error'
'install', 'donejs-cli@latest', '--no-shrinkwrap', '--loglevel', 'error'
]);

assert.deepEqual(runBinaryCall.args, ['init']);
Expand Down Expand Up @@ -121,4 +121,3 @@ describe('cli init cmd', function() {
}
}
});

0 comments on commit a32a23f

Please sign in to comment.