Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shell spawn bug #15

Closed
wants to merge 1 commit into from
Closed

Fix shell spawn bug #15

wants to merge 1 commit into from

Conversation

mackenly
Copy link
Contributor

Explicitly runs commands in the shell using the shell: true option flag. Fixes #12 compatibility issue.

Normally, running child processes directly via shell true is inadvisable since it could, in theory, run anything, but since this script sticks to Wrangler and is run on local dev machines, it seems unlikely to have a significant risk. Not sure of a better way to alternatively fix this that doesn't involve shell true.

@kuba-orlik
Copy link
Collaborator

There's a way without setting shell to true - see https://github.com/cloudflare/managed-component-to-cloudflare-worker/pull/16/files

@mackenly
Copy link
Contributor Author

Nice!

@mackenly mackenly closed this Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: spawn npx ENOENT
2 participants