Skip to content

Commit

Permalink
fix: pkg entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jaime-ez committed Mar 2, 2023
1 parent a07214a commit 52318f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/service/daemon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ function _start (options: any) {
starts += 1

// Fork the child process piping stdin/out/err to the parent
// NOTE: ADDING process.argv[1] as first arg to the spawned process is a workaround to fix a pkg bug
// NOTE: ADDING process.pkg.entrypoint as first arg to the spawned process is a workaround to fix a pkg bug
// https://github.com/vercel/pkg/issues/1356
child = spawn(options.processExec, [process.argv[1], 'start'].concat(process.argv.slice(2)), {
// @ts-ignore
child = spawn(options.processExec, [process.pkg.entrypoint, 'start'].concat(process.argv.slice(2)), {
env: process.env
})

Expand Down

0 comments on commit 52318f1

Please sign in to comment.