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

parse package.json "start" env vars correctly #63

Merged
merged 3 commits into from
Nov 20, 2021

Conversation

dbushong
Copy link
Member

before, in package.json:

  "start": "NODE_OPTIONS=--x npx foo",

would break, trying to treat the first part as the command; now it works

Ideally we'd just invoke spawn() with command set to the entire cmd
line and pass shell: true, but this would result in our pid not being
quite right which might cause other problems...


This PR was started by: git wf pr

before:

```
  "start": "NODE_OPTIONS=--x npx foo",
```

would break, trying to treat the first part as the command; now it works

Ideally we'd just invoke spawn() with command set to the entire command
line and pass `shell: true`, but this would result in our pid not being
quite right which might cause other problems...
Copy link
Contributor

@aotarola aotarola left a comment

Choose a reason for hiding this comment

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

💚

@dbushong dbushong merged commit 1a4f1d6 into main Nov 20, 2021
@dbushong dbushong deleted the dbushong/feature/main/cmd-line-env branch November 20, 2021 03:09
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.

2 participants