Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit f1eb9a5

Browse files
authored
feat(docz-core): replace yarn with npm (#1220)
1 parent da5ccd6 commit f1eb9a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/docz-core/src/bundler/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ensureFiles } from './machine/actions'
99

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

1414
if (typeof config.base === 'string' && config.base.length) {
1515
// Append gatsby option `prefixPaths`to CLI args
@@ -19,6 +19,6 @@ export const build: BuildFn = async (config, dist) => {
1919
}
2020
ensureFiles({ args: config })
2121
sh.cd(paths.docz)
22-
spawn.sync('yarn', cliArgs, { stdio: 'inherit' })
22+
spawn.sync('npm', cliArgs, { stdio: 'inherit' })
2323
await fs.copy(publicDir, dist)
2424
}

core/docz-core/src/commands/serve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { parseConfig } from '../config/docz'
77

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

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

1919
sh.cd(paths.docz)
20-
spawn.sync('yarn', cliArgs, { stdio: 'inherit' })
20+
spawn.sync('npm', cliArgs, { stdio: 'inherit' })
2121
}

0 commit comments

Comments
 (0)