Skip to content

Commit

Permalink
fix(docz-core): set yarn production to false to download all deps
Browse files Browse the repository at this point in the history
Allows for running docz build without running docz dev or docz init before.
  • Loading branch information
rakannimer committed Sep 3, 2019
1 parent c677b23 commit 1258553
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion core/docz-core/src/bundler/machine/services/install-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export const installDeps = async ({ firstInstall }: ServerMachineCtx) => {
sh.cd(paths.docz)

const checking = !firstInstall && ora('Checking dependencies...').start()
const result = spawn.sync('yarn', [], { stdio: 'inherit' })
const result = spawn.sync('yarn', ['--production=false'], {
stdio: 'inherit',
})

if (checking) checking.succeed('Dependencies checked!')
if (result.error) return reject(result.error)
Expand Down
4 changes: 1 addition & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"scheduler": "^0.15.0"
},
"devDependencies": {
"scheduler": "^0.15.0",
"docz": "next"
}
}

0 comments on commit 1258553

Please sign in to comment.