@usagefleet/cli 1.2.173 → 1.2.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/release.js +1 -1
- package/dist/update.js +3 -1
- package/package.json +1 -1
package/dist/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by .github/workflows/release.yml.
|
|
2
|
-
export const RELEASE_VERSION = "1.2.
|
|
2
|
+
export const RELEASE_VERSION = "1.2.174";
|
package/dist/update.js
CHANGED
|
@@ -115,7 +115,9 @@ function run(cmd, args) {
|
|
|
115
115
|
return new Promise(resolve => {
|
|
116
116
|
// shell on Windows: node refuses to spawn a .cmd directly since the 2024
|
|
117
117
|
// argument-injection fix. Every argument here is a literal or VERSION-checked.
|
|
118
|
-
|
|
118
|
+
// cmd.exe splits an unquoted `C:\Program Files\nodejs\npm.cmd` at the space.
|
|
119
|
+
const shell = process.platform === 'win32';
|
|
120
|
+
const child = spawn(shell ? `"${cmd}"` : cmd, args, { shell, stdio: 'ignore', env: pathWithNode() });
|
|
119
121
|
const timer = setTimeout(() => child.kill(), RUN_TIMEOUT_MS);
|
|
120
122
|
// Node emits 'close' after 'error' for a failed spawn, so both handlers can
|
|
121
123
|
// run; `settled` makes the first one win. oxlint's promise rule sees the two
|