From 02da60c6b877d07a023083fdb50e0a54bc519bb8 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 22 Oct 2024 22:18:01 -0700 Subject: [PATCH] fix: Fix `npx` argument handling. (#1701) * Fix npx. * Bump. * Change args. --- .yarn/versions/2f71348d.yml | 9 +++++++++ CHANGELOG.md | 6 ++++++ legacy/node/tool/src/node_tool.rs | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/2f71348d.yml diff --git a/.yarn/versions/2f71348d.yml b/.yarn/versions/2f71348d.yml new file mode 100644 index 00000000000..1f2a5d9c201 --- /dev/null +++ b/.yarn/versions/2f71348d.yml @@ -0,0 +1,9 @@ +releases: + "@moonrepo/cli": patch + "@moonrepo/core-linux-arm64-gnu": patch + "@moonrepo/core-linux-arm64-musl": patch + "@moonrepo/core-linux-x64-gnu": patch + "@moonrepo/core-linux-x64-musl": patch + "@moonrepo/core-macos-arm64": patch + "@moonrepo/core-macos-x64": patch + "@moonrepo/core-windows-x64-msvc": patch diff --git a/CHANGELOG.md b/CHANGELOG.md index 74dd1494b10..a058b2f0b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +#### 🐞 Fixes + +- Fixed an issue running `npx` commands (primarily through lockfile deduping). + ## 1.29.2 #### 🚀 Updates diff --git a/legacy/node/tool/src/node_tool.rs b/legacy/node/tool/src/node_tool.rs index 17d15dd9b25..17ce7329f28 100644 --- a/legacy/node/tool/src/node_tool.rs +++ b/legacy/node/tool/src/node_tool.rs @@ -137,7 +137,7 @@ impl NodeTool { _ => { let mut cmd = Command::new(self.get_npx_path()?); cmd.with_console(self.console.clone()); - cmd.args(["--silent", "--", package]); + cmd.args(["--quiet", "--package", package, "--"]); cmd.envs(get_proto_env_vars()); if let Some(version) = get_proto_version_env(&self.tool) {