Skip to content

Commit

Permalink
fix(vscode): run npm exec correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx committed Dec 4, 2024
1 parent 6896ae9 commit b35a126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/composables/useDevServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useDevServer(project: SlidevProject) {
if (getIsActive())
return
port.value ??= await getPort()
sendText(`npm exec slidev -- --port ${port.value} ${JSON.stringify(basename(project.entry))}`)
sendText(`npm exec -c 'slidev ${JSON.stringify(basename(project.entry))} --port ${port.value}'`)
}

function stop() {
Expand Down

2 comments on commit b35a126

@Petaral
Copy link

@Petaral Petaral commented on b35a126 Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make me a website like this RillaBox - Unbox Online Mystery Boxes | Provably Fair & Authentic

@Petaral
Copy link

@Petaral Petaral commented on b35a126 Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make me a website like this RillaBox - Unbox Online Mystery Boxes | Provably Fair & Authentic

Please sign in to comment.