This repository was archived by the owner on Nov 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { ensureFiles } from './machine/actions'
99
1010export 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}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { parseConfig } from '../config/docz'
77
88export 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}
You can’t perform that action at this time.
0 commit comments