Skip to content

Commit

Permalink
feat(docz-core): replace yarn with npm (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer authored Nov 1, 2019
1 parent da5ccd6 commit f1eb9a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/docz-core/src/bundler/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ensureFiles } from './machine/actions'

export const build: BuildFn = async (config, dist) => {
const publicDir = path.join(paths.docz, 'public')
const cliArgs = ['build']
const cliArgs = ['run', 'build', '--']

if (typeof config.base === 'string' && config.base.length) {
// Append gatsby option `prefixPaths`to CLI args
Expand All @@ -19,6 +19,6 @@ export const build: BuildFn = async (config, dist) => {
}
ensureFiles({ args: config })
sh.cd(paths.docz)
spawn.sync('yarn', cliArgs, { stdio: 'inherit' })
spawn.sync('npm', cliArgs, { stdio: 'inherit' })
await fs.copy(publicDir, dist)
}
4 changes: 2 additions & 2 deletions core/docz-core/src/commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { parseConfig } from '../config/docz'

export const serve = async (args: Arguments<any>) => {
const config = await parseConfig(args)
const cliArgs = ['serve']
const cliArgs = ['run', 'serve', '--']

if (typeof config.base === 'string' && config.base.length) {
// Append gatsby option `prefixPaths`to CLI args
Expand All @@ -17,5 +17,5 @@ export const serve = async (args: Arguments<any>) => {
}

sh.cd(paths.docz)
spawn.sync('yarn', cliArgs, { stdio: 'inherit' })
spawn.sync('npm', cliArgs, { stdio: 'inherit' })
}

0 comments on commit f1eb9a5

Please sign in to comment.