@modern-js/repo-generator 0.0.0-next-20241014070959 → 0.0.0-next-20241014073503
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 +18 -11
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -129,6 +129,13 @@
|
|
|
129
129
|
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithFsUtils"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
// globals:@modern-js/codesmith-utils/ora
|
|
133
|
+
var require_ora = __commonJS({
|
|
134
|
+
"globals:@modern-js/codesmith-utils/ora" (exports, module1) {
|
|
135
|
+
"use strict";
|
|
136
|
+
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithOraUtils"];
|
|
137
|
+
}
|
|
138
|
+
});
|
|
132
139
|
// globals:@modern-js/codesmith-utils/execa
|
|
133
140
|
var require_execa = __commonJS({
|
|
134
141
|
"globals:@modern-js/codesmith-utils/execa" (exports, module1) {
|
|
@@ -150,13 +157,6 @@
|
|
|
150
157
|
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithSemverUtils"];
|
|
151
158
|
}
|
|
152
159
|
});
|
|
153
|
-
// globals:@modern-js/codesmith-utils/ora
|
|
154
|
-
var require_ora = __commonJS({
|
|
155
|
-
"globals:@modern-js/codesmith-utils/ora" (exports, module1) {
|
|
156
|
-
"use strict";
|
|
157
|
-
module1.exports = (typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : self || Function("return this")())["codesmithOraUtils"];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
160
|
// globals:@modern-js/codesmith-utils/chalk
|
|
161
161
|
var require_chalk = __commonJS({
|
|
162
162
|
"globals:@modern-js/codesmith-utils/chalk" (exports, module1) {
|
|
@@ -19599,6 +19599,7 @@ function encode_char(c) {
|
|
|
19599
19599
|
// ../../generator-utils/dist/esm/index.js
|
|
19600
19600
|
var import_codesmith = __toESM(require_codesmith());
|
|
19601
19601
|
var import_fs_extra = __toESM(require_fs_extra());
|
|
19602
|
+
var import_ora = __toESM(require_ora());
|
|
19602
19603
|
// ../../generator-utils/dist/esm/locale/index.js
|
|
19603
19604
|
var import_plugin_i18n2 = __toESM(require_plugin_i18n());
|
|
19604
19605
|
// ../../generator-utils/dist/esm/locale/en.js
|
|
@@ -20832,17 +20833,23 @@ function encode_char(c) {
|
|
|
20832
20833
|
// ../../generator-utils/dist/esm/index.js
|
|
20833
20834
|
var import_npm2 = __toESM(require_npm());
|
|
20834
20835
|
var import_fs_extra2 = __toESM(require_fs_extra());
|
|
20835
|
-
var
|
|
20836
|
+
var import_ora2 = __toESM(require_ora());
|
|
20836
20837
|
var import_semver2 = __toESM(require_semver());
|
|
20837
20838
|
var import_execa2 = __toESM(require_execa());
|
|
20838
20839
|
var import_chalk = __toESM(require_chalk());
|
|
20839
20840
|
function getPackageVersion(packageName, registryUrl) {
|
|
20840
20841
|
return __async(this, null, function*() {
|
|
20841
|
-
const
|
|
20842
|
-
|
|
20843
|
-
|
|
20842
|
+
const spinner = (0, import_ora.ora)({
|
|
20843
|
+
text: "Load Generator...",
|
|
20844
|
+
spinner: "runner"
|
|
20845
|
+
}).start();
|
|
20846
|
+
const { name, version: pkgVersion } = (0, import_codesmith.getPackageInfo)(packageName);
|
|
20847
|
+
const version = yield (0, import_codesmith.getNpmVersion)(name, {
|
|
20848
|
+
version: pkgVersion,
|
|
20844
20849
|
registryUrl
|
|
20845
20850
|
});
|
|
20851
|
+
spinner.stop();
|
|
20852
|
+
return version;
|
|
20846
20853
|
});
|
|
20847
20854
|
}
|
|
20848
20855
|
function getModernPluginVersion(_0, _1) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-20241014073503",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/generator
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
40
|
-
"@
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-20241014073503",
|
|
34
|
+
"@modern-js/base-generator": "0.0.0-next-20241014073503",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-20241014073503",
|
|
36
|
+
"@modern-js/generator-plugin": "0.0.0-next-20241014073503",
|
|
37
|
+
"@modern-js/module-generator": "0.0.0-next-20241014073503",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-20241014073503",
|
|
39
|
+
"@scripts/jest-config": "0.0.0-next-20241014073503",
|
|
40
|
+
"@scripts/build": "0.0.0-next-20241014073503"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|