Skip to content

Commit

Permalink
Do not add .bin folders when pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored and malept committed Jun 25, 2017
1 parent f092a53 commit be5eae0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prune.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function pruneCommand (packageManager) {
case 'cnpm':
return `${packageManager} prune --production`
case 'yarn':
return `${packageManager} install --production`
return `${packageManager} install --production --no-bin-links`
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/prune.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function createPruneOptionTest (baseOpts, prune, testMessage) {
test('pruneCommand returns the correct command when passing a known package manager', (t) => {
t.equal(prune.pruneCommand('npm'), 'npm prune --production', 'passing npm gives the npm prune command')
t.equal(prune.pruneCommand('cnpm'), 'cnpm prune --production', 'passing cnpm gives the cnpm prune command')
t.equal(prune.pruneCommand('yarn'), 'yarn install --production', 'passing yarn gives the yarn "prune command"')
t.equal(prune.pruneCommand('yarn'), 'yarn install --production --no-bin-links', 'passing yarn gives the yarn "prune command"')
t.end()
})

Expand Down

0 comments on commit be5eae0

Please sign in to comment.