@modern-js/upgrade-generator 3.1.28 → 3.1.29
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 -9
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -133222,16 +133222,20 @@ var import_utils15 = __toESM(require_cjs2());
|
|
|
133222
133222
|
function isPackageExist(packageName, registry2) {
|
|
133223
133223
|
return __async(this, null, function* () {
|
|
133224
133224
|
if (yield (0, import_utils15.canUseNpm)()) {
|
|
133225
|
-
|
|
133226
|
-
|
|
133227
|
-
|
|
133228
|
-
|
|
133229
|
-
|
|
133230
|
-
|
|
133231
|
-
|
|
133225
|
+
try {
|
|
133226
|
+
const args = [
|
|
133227
|
+
"view",
|
|
133228
|
+
packageName,
|
|
133229
|
+
"version"
|
|
133230
|
+
];
|
|
133231
|
+
if (registry2) {
|
|
133232
|
+
args.push(`--registry=${registry2}`);
|
|
133233
|
+
}
|
|
133234
|
+
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133235
|
+
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133236
|
+
} catch (e) {
|
|
133237
|
+
return false;
|
|
133232
133238
|
}
|
|
133233
|
-
const result = yield (0, import_utils15.execa)("npm", args);
|
|
133234
|
-
return (0, import_utils15.stripAnsi)(result.stdout);
|
|
133235
133239
|
}
|
|
133236
133240
|
throw new Error("not found npm, please install npm before");
|
|
133237
133241
|
});
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.1.
|
|
18
|
+
"version": "3.1.29",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@modern-js/generator-utils": "3.1.
|
|
37
|
-
"@
|
|
33
|
+
"@scripts/build": "2.27.0",
|
|
34
|
+
"@scripts/jest-config": "2.27.0",
|
|
35
|
+
"@modern-js/plugin-i18n": "2.27.0",
|
|
36
|
+
"@modern-js/generator-utils": "3.1.29",
|
|
37
|
+
"@modern-js/generator-common": "3.1.29"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"publishConfig": {
|