Skip to content

Commit

Permalink
Update order of arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 6, 2021
1 parent 95dfde4 commit 1371c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-next-app/helpers/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export function install(
*/
args = ['add', '--exact']
if (!isOnline) args.push('--offline')
if (devDependencies) args.push('-D')
args.push(...dependencies)
args.push('--cwd', root)
if (devDependencies) args.push('--dev')
args.push(...dependencies)
} else {
/**
* Call `npm install [--save|--save-dev] ...`.
Expand Down

0 comments on commit 1371c4d

Please sign in to comment.