mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
Fix up serve task
This commit is contained in:
parent
4154353083
commit
399192119b
@ -12,10 +12,10 @@ export const serve: Task = {
|
||||
async ready() {
|
||||
return (await detectFreePort(PORT)) !== PORT;
|
||||
},
|
||||
async run({ sandboxDir, codeDir }, { debug, dryRun }) {
|
||||
async run({ builtSandboxDir, codeDir }, { debug, dryRun }) {
|
||||
const controller = new AbortController();
|
||||
exec(
|
||||
`yarn http-server ${sandboxDir} --port ${PORT}`,
|
||||
`yarn http-server ${builtSandboxDir} --port ${PORT}`,
|
||||
{ cwd: codeDir },
|
||||
{ dryRun, debug, signal: controller.signal as AbortSignal }
|
||||
).catch((err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user