@astrojs/upgrade 0.6.2 → 0.7.0-alpha.0
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/package.json +5 -5
- package/upgrade.mjs +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/upgrade",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "withastro",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@astrojs/cli-kit": "^0.4.1",
|
|
27
|
-
"package-manager-detector": "^1.
|
|
28
|
-
"semver": "^7.7.
|
|
27
|
+
"package-manager-detector": "^1.5.0",
|
|
28
|
+
"semver": "^7.7.3",
|
|
29
29
|
"terminal-link": "^4.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@types/semver": "^7.7.
|
|
32
|
+
"@types/semver": "^7.7.1",
|
|
33
33
|
"arg": "^5.0.2",
|
|
34
34
|
"astro-scripts": "0.0.14"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": "
|
|
37
|
+
"node": "^20.19.5 || >=22.12.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "astro-scripts build \"src/index.ts\" --bundle && tsc",
|
package/upgrade.mjs
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
const currentVersion = process.versions.node;
|
|
6
6
|
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10);
|
|
7
|
-
|
|
7
|
+
// TODO: remove once Stackblitz supports Node 22
|
|
8
|
+
const IS_STACKBLITZ = !!process.versions.webcontainer;
|
|
9
|
+
const minimumMajorVersion = IS_STACKBLITZ ? 20 : 22;
|
|
8
10
|
|
|
9
11
|
if (requiredMajorVersion < minimumMajorVersion) {
|
|
10
12
|
console.error(`Node.js v${currentVersion} is out of date and unsupported!`);
|