@astrojs/upgrade 0.7.2 → 0.7.3
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/index.js +13 -5
- package/package.json +9 -7
- package/upgrade.mjs +1 -1
package/dist/index.js
CHANGED
|
@@ -253,7 +253,7 @@ async function shell(command, flags, opts = {}) {
|
|
|
253
253
|
throw new Error("Timeout");
|
|
254
254
|
}
|
|
255
255
|
if (exitCode !== 0) {
|
|
256
|
-
throw new Error(stderr || `Process exited with code ${exitCode}`);
|
|
256
|
+
throw new Error(stderr || stdout2 || `Process exited with code ${exitCode}`);
|
|
257
257
|
}
|
|
258
258
|
return { stdout: stdout2, stderr, exitCode };
|
|
259
259
|
}
|
|
@@ -573,11 +573,19 @@ async function runInstallCommand(ctx, dependencies, devDependencies, shellFn = s
|
|
|
573
573
|
)
|
|
574
574
|
].join(" ");
|
|
575
575
|
newline();
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
if (errorMessage.includes("MINIMUM_RELEASE_AGE")) {
|
|
577
|
+
error(
|
|
578
|
+
"error",
|
|
579
|
+
`pnpm's ${color2.bold("minimumReleaseAge")} policy blocked the installation. Run the following command manually to confirm the update:
|
|
579
580
|
${color2.bold(manualInstallCommand)}`
|
|
580
|
-
|
|
581
|
+
);
|
|
582
|
+
} else {
|
|
583
|
+
error(
|
|
584
|
+
"error",
|
|
585
|
+
`Dependencies failed to install, please run the following command manually:
|
|
586
|
+
${color2.bold(manualInstallCommand)}`
|
|
587
|
+
);
|
|
588
|
+
}
|
|
581
589
|
return ctx.exit(1);
|
|
582
590
|
}
|
|
583
591
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/upgrade",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
".": "./upgrade.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./upgrade.mjs",
|
|
18
|
-
"bin": "./upgrade.mjs",
|
|
19
18
|
"files": [
|
|
20
|
-
"dist",
|
|
21
|
-
"
|
|
19
|
+
"dist/**/*.js",
|
|
20
|
+
"dist/**/*.mjs",
|
|
21
|
+
"upgrade.mjs"
|
|
22
22
|
],
|
|
23
23
|
"//a": "MOST PACKAGES SHOULD GO IN DEV_DEPENDENCIES! THEY WILL BE BUNDLED.",
|
|
24
24
|
"//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
|
|
@@ -37,10 +37,12 @@
|
|
|
37
37
|
"node": ">=22.12.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "astro-scripts build \"src/index.ts\" --bundle && tsc",
|
|
40
|
+
"build": "astro-scripts build \"src/index.ts\" --bundle && tsc -b",
|
|
41
41
|
"build:ci": "astro-scripts build \"src/index.ts\" --bundle",
|
|
42
42
|
"dev": "astro-scripts dev \"src/**/*.ts\"",
|
|
43
|
-
"test": "astro-scripts test \"test/**/*.test.ts\""
|
|
44
|
-
|
|
43
|
+
"test": "astro-scripts test \"test/**/*.test.ts\""
|
|
44
|
+
},
|
|
45
|
+
"bin": {
|
|
46
|
+
"upgrade": "./upgrade.mjs"
|
|
45
47
|
}
|
|
46
48
|
}
|
package/upgrade.mjs
CHANGED