@astrojs/upgrade 0.5.2 → 0.6.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -187,11 +187,7 @@ async function getContext(argv) {
187
187
  // used for installation take precedence
188
188
  strategies: ["install-metadata", "lockfile", "packageManager-field"]
189
189
  }) ?? { agent: "npm", name: "npm" };
190
- const {
191
- _: [version = "latest"] = [],
192
- "--help": help2 = false,
193
- "--dry-run": dryRun
194
- } = flags;
190
+ const { _: [version = "latest"] = [], "--help": help2 = false, "--dry-run": dryRun } = flags;
195
191
  return {
196
192
  help: help2,
197
193
  prompt,
@@ -228,7 +224,7 @@ async function shell(command, flags, opts = {}) {
228
224
  signal = controller.signal;
229
225
  }
230
226
  try {
231
- child = spawn(command, flags, {
227
+ child = spawn(`${command} ${flags.join(" ")}`, {
232
228
  cwd: opts.cwd,
233
229
  shell: true,
234
230
  stdio: opts.stdio,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/upgrade",
3
- "version": "0.5.2",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "astro-scripts": "0.0.14"
35
35
  },
36
36
  "engines": {
37
- "node": "^18.17.1 || ^20.3.0 || >=22.0.0"
37
+ "node": "18.20.8 || ^20.3.0 || >=22.0.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "astro-scripts build \"src/index.ts\" --bundle && tsc",