Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Aug 25, 2023
1 parent b3608be commit bcf26e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions dist/npm-to-yarn.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ function npmToBun(_m, command) {
break;
case 'cache':
if (args[1] === 'clean') {
args = ['pm', 'cache', 'rm'];
args = args.concat(args.slice(2));
args = ['pm', 'cache', 'rm'].concat(args.slice(2));
}
else {
cmd = 'npm';
Expand Down
2 changes: 1 addition & 1 deletion dist/npm-to-yarn.mjs.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/npm-to-yarn.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/npm-to-yarn.umd.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/npmToBun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ export function npmToBun (_m: string, command: string): string {
break
case 'cache':
if (args[1] === 'clean') {
args = ['pm', 'cache', 'rm']
args = args.concat(args.slice(2))
args = ['pm', 'cache', 'rm'].concat(args.slice(2))
} else {
cmd = 'npm'
}
Expand Down

0 comments on commit bcf26e5

Please sign in to comment.