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(core): remove the full workspace path with node_modules from the path env variable when running run-scripts #21532

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

Cammisuli
Copy link
Member

Current Behavior

When running nx through npx (and only npx when node_modules is installed with npm) that executes a script command, the exit code will always be 0.

Expected Behavior

Running nx through npx should propagate the correct error code

Related Issue(s)

Fixes #21506

@Cammisuli Cammisuli requested a review from a team as a code owner February 2, 2024 14:58
Copy link

vercel bot commented Feb 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Feb 2, 2024 3:41pm

packages/nx/src/executors/run-script/run-script.impl.ts Outdated Show resolved Hide resolved
packages/nx/src/executors/run-script/run-script.impl.ts Outdated Show resolved Hide resolved
@Cammisuli Cammisuli force-pushed the remove_node_modules_from_path branch from 13adcab to deffeab Compare February 2, 2024 15:38
…path env variable when running `run-scripts`
@Cammisuli Cammisuli force-pushed the remove_node_modules_from_path branch from deffeab to 5e5d1d2 Compare February 2, 2024 15:41
@FrozenPandaz FrozenPandaz dismissed AgentEnder’s stale review February 2, 2024 16:32

It's path.delimiter but it was addressed

@FrozenPandaz FrozenPandaz merged commit 87443ad into nrwl:master Feb 2, 2024
4 of 6 checks passed
@Cammisuli Cammisuli deleted the remove_node_modules_from_path branch February 2, 2024 16:52
FrozenPandaz pushed a commit that referenced this pull request Feb 2, 2024
…path env variable when running `run-scripts` (#21532)

(cherry picked from commit 87443ad)
FrozenPandaz pushed a commit that referenced this pull request Feb 3, 2024
…path env variable when running `run-scripts` (#21532)

(cherry picked from commit 87443ad)
Copy link

github-actions bot commented Feb 8, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using npx to execute nx changes the status code returned
3 participants