@@ -33,9 +33,10 @@ async function startCommand() {
3333 const parentToken = crypto . randomBytes ( 32 ) . toString ( 'hex' )
3434
3535 const childCommand = isProd ? 'node ./start.js' : 'npm run dev'
36+ const EPICSHOP_CONTEXT_CWD = process . env . EPICSHOP_CONTEXT_CWD ?? process . cwd ( )
3637 const childEnv : NodeJS . ProcessEnv = {
3738 ...process . env ,
38- EPICSHOP_CONTEXT_CWD : process . env . EPICSHOP_CONTEXT_CWD ?? process . cwd ( ) ,
39+ EPICSHOP_CONTEXT_CWD : EPICSHOP_CONTEXT_CWD ,
3940 EPICSHOP_PARENT_PORT : String ( parentPort ) ,
4041 EPICSHOP_PARENT_TOKEN : parentToken ,
4142 }
@@ -175,7 +176,7 @@ async function startCommand() {
175176
176177 child = spawn ( childCommand , [ ] , {
177178 shell : true ,
178- cwd : appDir ,
179+ cwd : EPICSHOP_CONTEXT_CWD ,
179180 // Capture stdout for port detection
180181 stdio : [ 'pipe' , 'pipe' , 'inherit' ] ,
181182 env : childEnv ,
@@ -214,7 +215,7 @@ async function startCommand() {
214215
215216 if ( process . stdin . isTTY && ! isDeployed ) {
216217 console . log ( chalk . bold . cyan ( 'Supported keys:' ) )
217- console . log ( supportedKeys . join ( '\n\t' ) )
218+ console . log ( ` ${ supportedKeys . join ( '\n ' ) } \n` )
218219 process . stdin . setRawMode ( true )
219220 process . stdin . resume ( )
220221 process . stdin . setEncoding ( 'utf8' )
@@ -385,7 +386,7 @@ const cli = yargs(hideBin(process.argv))
385386 . epilogue (
386387 `
387388${ chalk . bold ( 'Interactive keys (available during start command):' ) }
388- ${ supportedKeys . join ( '\n\t ' ) }
389+ ${ supportedKeys . join ( '\n ' ) }
389390
390391For more information, visit: https://github.com/epicweb-dev/epicshop
391392` ,
0 commit comments