Skip to content

Commit

Permalink
fix: fixed converting pnpm with flags
Browse files Browse the repository at this point in the history
fixes #80
  • Loading branch information
favna committed Jul 11, 2022
1 parent c06c123 commit 35aa88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/npm2yarn2pnpm/src/npm2pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const npmToPnpmTable = {

return command
.replace('install', 'add')
.replace(/\s*--save/, '--save-prod')
.replace(/(\s*)--save(?!-)/, '$1--save-prod')
.replace('--no-package-lock', '');
},

uninstall(command: string) {
return command
.replace('uninstall', 'remove')
.replace(/\s*--save/, '--save-prod')
.replace(/(\s*)--save(?!-)/, '$1--save-prod')
.replace('--no-package-lock', '');
},

Expand Down

0 comments on commit 35aa88c

Please sign in to comment.