Skip to content

Commit e585c4a

Browse files
committed
Move dev and preview execa command to arg list
1 parent bd8ae49 commit e585c4a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

npm-packages/cli/source/components/commands/dev.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ export default function Dev({cli}: {cli: Result<Flags>}) {
4242
// Start dev server
4343
await cleanDist();
4444
await execa(
45-
`${getDepsBinPath('concurrently')} --prefix none "npx webpack --mode development --watch" "tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"`,
45+
getDepsBinPath('concurrently'),
46+
[
47+
'--prefix',
48+
'none',
49+
'"npx webpack --mode development --watch"',
50+
'"tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"',
51+
],
4652
{
4753
stdio: 'inherit',
4854
shell: true,

npm-packages/cli/source/components/commands/preview.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ export default function Preview({cli}: {cli: Result<Flags>}) {
4747
// Start preview server
4848
await cleanDist();
4949
await execa(
50-
`${getDepsBinPath('concurrently')} --prefix none "npx webpack --mode development --watch" "tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"`,
50+
getDepsBinPath('concurrently'),
51+
[
52+
'--prefix',
53+
'none',
54+
'"npx webpack --mode development --watch"',
55+
'"tsx watch --clear-screen=false node_modules/@pulse-editor/cli/dist/lib/server/express.js"',
56+
],
5157
{
5258
stdio: 'inherit',
5359
shell: true,

0 commit comments

Comments
 (0)