Skip to content

Commit

Permalink
fix: fixed npm devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Mar 24, 2018
1 parent 9f07b24 commit 1957935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generators/app.ts
Expand Up @@ -450,7 +450,7 @@ class App extends Generator {
let yarnOpts = {} as any
if (process.env.YARN_MUTEX) yarnOpts.mutex = process.env.YARN_MUTEX
const install = (deps: string[], opts: object) => this.yarn ? this.yarnInstall(deps, opts) : this.npmInstall(deps, opts)
const dev = this.yarn ? {dev: true} : {only: 'dev'}
const dev = this.yarn ? {dev: true} : {'save-dev': true}
Promise.all([
install(devDependencies, {...yarnOpts, ...dev, ignoreScripts: true}),
install(dependencies, yarnOpts),
Expand Down

0 comments on commit 1957935

Please sign in to comment.