@modern-js/create 2.21.0 → 2.22.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/dist/index.js +74 -45
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -36429,7 +36429,7 @@ function getLocaleLanguage() {
|
|
|
36429
36429
|
// src/createAction.ts
|
|
36430
36430
|
var import_path9 = __toESM(require("path"));
|
|
36431
36431
|
|
|
36432
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36432
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/logger/constants.js
|
|
36433
36433
|
var LoggerLevel;
|
|
36434
36434
|
(function(LoggerLevel2) {
|
|
36435
36435
|
LoggerLevel2["Error"] = "error";
|
|
@@ -36468,7 +36468,7 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
36468
36468
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
36469
36469
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
36470
36470
|
|
|
36471
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36471
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/logger/index.js
|
|
36472
36472
|
function _array_like_to_array(arr, len) {
|
|
36473
36473
|
if (len == null || len > arr.length)
|
|
36474
36474
|
len = arr.length;
|
|
@@ -36653,20 +36653,20 @@ var Logger = /* @__PURE__ */ function() {
|
|
|
36653
36653
|
return Logger22;
|
|
36654
36654
|
}();
|
|
36655
36655
|
|
|
36656
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36656
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
36657
36657
|
var import_path7 = __toESM(require("path"));
|
|
36658
36658
|
|
|
36659
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36659
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
36660
36660
|
var import_path4 = __toESM(require("path"));
|
|
36661
36661
|
var import_events = require("events");
|
|
36662
36662
|
|
|
36663
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36663
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
36664
36664
|
var import_path2 = __toESM(require("path"));
|
|
36665
36665
|
|
|
36666
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36666
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
36667
36667
|
var import_path = __toESM(require("path"));
|
|
36668
36668
|
|
|
36669
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36669
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/constants.js
|
|
36670
36670
|
var IMAGE_EXT_LIST = [
|
|
36671
36671
|
".jpg",
|
|
36672
36672
|
".jpeg",
|
|
@@ -36680,7 +36680,7 @@ var IMAGE_EXT_LIST = [
|
|
|
36680
36680
|
".wmf"
|
|
36681
36681
|
];
|
|
36682
36682
|
|
|
36683
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36683
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
36684
36684
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
36685
36685
|
try {
|
|
36686
36686
|
var info = gen[key](arg);
|
|
@@ -36912,7 +36912,7 @@ var FsResource = /* @__PURE__ */ function() {
|
|
|
36912
36912
|
return FsResource2;
|
|
36913
36913
|
}();
|
|
36914
36914
|
|
|
36915
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
36915
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
36916
36916
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
36917
36917
|
try {
|
|
36918
36918
|
var info = gen[key](arg);
|
|
@@ -37136,7 +37136,7 @@ var FsMaterial = /* @__PURE__ */ function() {
|
|
|
37136
37136
|
return FsMaterial2;
|
|
37137
37137
|
}();
|
|
37138
37138
|
|
|
37139
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
37139
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/nodeRequire.js
|
|
37140
37140
|
var nodeRequire = function(path11) {
|
|
37141
37141
|
try {
|
|
37142
37142
|
var module2 = __non_webpack_require__(path11);
|
|
@@ -37153,10 +37153,10 @@ var nodeRequire = function(path11) {
|
|
|
37153
37153
|
}
|
|
37154
37154
|
};
|
|
37155
37155
|
|
|
37156
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
37156
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
37157
37157
|
var import_path3 = __toESM(require("path"));
|
|
37158
37158
|
|
|
37159
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
37159
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
37160
37160
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
37161
37161
|
try {
|
|
37162
37162
|
var info = gen[key](arg);
|
|
@@ -37329,7 +37329,7 @@ function _fsExists() {
|
|
|
37329
37329
|
return _fsExists.apply(this, arguments);
|
|
37330
37330
|
}
|
|
37331
37331
|
|
|
37332
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
37332
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
37333
37333
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
37334
37334
|
try {
|
|
37335
37335
|
var info = gen[key](arg);
|
|
@@ -37523,7 +37523,7 @@ function _getGeneratorDir() {
|
|
|
37523
37523
|
return _getGeneratorDir.apply(this, arguments);
|
|
37524
37524
|
}
|
|
37525
37525
|
|
|
37526
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
37526
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
37527
37527
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
37528
37528
|
try {
|
|
37529
37529
|
var info = gen[key](arg);
|
|
@@ -37737,6 +37737,7 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
37737
37737
|
_define_property4(this, "logger", void 0);
|
|
37738
37738
|
_define_property4(this, "materialsManager", void 0);
|
|
37739
37739
|
_define_property4(this, "outputPath", void 0);
|
|
37740
|
+
_define_property4(this, "basePath", void 0);
|
|
37740
37741
|
var _this = this;
|
|
37741
37742
|
_define_property4(this, "output", {
|
|
37742
37743
|
fs: function() {
|
|
@@ -37774,6 +37775,7 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
37774
37775
|
this.logger = logger;
|
|
37775
37776
|
this.materialsManager = materialsManager;
|
|
37776
37777
|
this.outputPath = outputPath;
|
|
37778
|
+
this.basePath = process.cwd();
|
|
37777
37779
|
this.event = new import_events.EventEmitter();
|
|
37778
37780
|
this.event.setMaxListeners(15);
|
|
37779
37781
|
this._context = _object_spread({
|
|
@@ -37816,6 +37818,12 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
37816
37818
|
this.outputPath = outputPath;
|
|
37817
37819
|
}
|
|
37818
37820
|
},
|
|
37821
|
+
{
|
|
37822
|
+
key: "setbasePath",
|
|
37823
|
+
value: function setbasePath(basePath) {
|
|
37824
|
+
this.basePath = basePath;
|
|
37825
|
+
}
|
|
37826
|
+
},
|
|
37819
37827
|
{
|
|
37820
37828
|
key: "loadLocalGenerator",
|
|
37821
37829
|
value: function loadLocalGenerator(generator) {
|
|
@@ -37966,11 +37974,15 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
37966
37974
|
value: function loadGenerator(generator) {
|
|
37967
37975
|
var _this = this;
|
|
37968
37976
|
return _async_to_generator5(function() {
|
|
37969
|
-
var loadGeneratorPromise, _ref, generatorPkg, pkgJson, materialKey, generatorScript;
|
|
37977
|
+
var generatorPath, loadGeneratorPromise, _ref, generatorPkg, pkgJson, materialKey, generatorScript;
|
|
37970
37978
|
return __generator5(this, function(_state) {
|
|
37971
37979
|
switch (_state.label) {
|
|
37972
37980
|
case 0:
|
|
37973
|
-
|
|
37981
|
+
generatorPath = generator;
|
|
37982
|
+
if (generator.startsWith("file:")) {
|
|
37983
|
+
generatorPath = import_path4.default.join(_this.basePath, generator.slice(5));
|
|
37984
|
+
}
|
|
37985
|
+
loadGeneratorPromise = import_path4.default.isAbsolute(generatorPath) ? _this.loadLocalGenerator(generatorPath) : _this.loadRemoteGenerator(generator);
|
|
37974
37986
|
return [
|
|
37975
37987
|
4,
|
|
37976
37988
|
loadGeneratorPromise
|
|
@@ -38031,6 +38043,7 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
38031
38043
|
material: generatorPkg
|
|
38032
38044
|
});
|
|
38033
38045
|
spinner.stop();
|
|
38046
|
+
_this.setbasePath(_this._context.current.material.basePath);
|
|
38034
38047
|
return [
|
|
38035
38048
|
4,
|
|
38036
38049
|
generatorScript(_this._context, _this)
|
|
@@ -38052,7 +38065,7 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
38052
38065
|
var relativePwdPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", config = arguments.length > 2 ? arguments[2] : void 0;
|
|
38053
38066
|
var _this = this;
|
|
38054
38067
|
return _async_to_generator5(function() {
|
|
38055
|
-
var spinner, _ref, materialKey, generatorPkg, generatorScript, subContext, preOutputPath;
|
|
38068
|
+
var spinner, _ref, materialKey, generatorPkg, generatorScript, subContext, preOutputPath, preBasePath;
|
|
38056
38069
|
return __generator5(this, function(_state) {
|
|
38057
38070
|
switch (_state.label) {
|
|
38058
38071
|
case 0:
|
|
@@ -38081,7 +38094,9 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
38081
38094
|
});
|
|
38082
38095
|
_this.logger.debug("subContext", subContext);
|
|
38083
38096
|
preOutputPath = _this.outputPath;
|
|
38097
|
+
preBasePath = _this.basePath;
|
|
38084
38098
|
_this.setOutputPath(import_path4.default.resolve(_this.outputPath, relativePwdPath || ""));
|
|
38099
|
+
_this.setbasePath(subContext.current.material.basePath);
|
|
38085
38100
|
spinner.stop();
|
|
38086
38101
|
return [
|
|
38087
38102
|
4,
|
|
@@ -38090,6 +38105,7 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
38090
38105
|
case 2:
|
|
38091
38106
|
_state.sent();
|
|
38092
38107
|
_this.setOutputPath(preOutputPath);
|
|
38108
|
+
_this.setbasePath(preBasePath);
|
|
38093
38109
|
return [
|
|
38094
38110
|
2
|
|
38095
38111
|
];
|
|
@@ -38102,10 +38118,10 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
38102
38118
|
return GeneratorCore2;
|
|
38103
38119
|
}();
|
|
38104
38120
|
|
|
38105
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38121
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
38106
38122
|
var import_path6 = __toESM(require("path"));
|
|
38107
38123
|
|
|
38108
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38124
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/packageManager.js
|
|
38109
38125
|
var import_path5 = __toESM(require("path"));
|
|
38110
38126
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38111
38127
|
try {
|
|
@@ -38438,7 +38454,7 @@ function _runInstall() {
|
|
|
38438
38454
|
return _runInstall.apply(this, arguments);
|
|
38439
38455
|
}
|
|
38440
38456
|
|
|
38441
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38457
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/timeoutPromise.js
|
|
38442
38458
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38443
38459
|
try {
|
|
38444
38460
|
var info = gen[key](arg);
|
|
@@ -38628,16 +38644,16 @@ function _timeoutPromise() {
|
|
|
38628
38644
|
return _timeoutPromise.apply(this, arguments);
|
|
38629
38645
|
}
|
|
38630
38646
|
|
|
38631
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38647
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
38632
38648
|
var import_os = __toESM(require("os"));
|
|
38633
38649
|
var import_axios = __toESM(require_axios2());
|
|
38634
38650
|
var import_tar = __toESM(require_tar());
|
|
38635
38651
|
|
|
38636
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38652
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/constants.js
|
|
38637
38653
|
var NPM_API_TIMEOUT = 3e4;
|
|
38638
38654
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
38639
38655
|
|
|
38640
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38656
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
|
38641
38657
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38642
38658
|
try {
|
|
38643
38659
|
var info = gen[key](arg);
|
|
@@ -38814,7 +38830,7 @@ function _getNpmTarballUrl() {
|
|
|
38814
38830
|
return _getNpmTarballUrl.apply(this, arguments);
|
|
38815
38831
|
}
|
|
38816
38832
|
|
|
38817
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
38833
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmVersion.js
|
|
38818
38834
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38819
38835
|
try {
|
|
38820
38836
|
var info = gen[key](arg);
|
|
@@ -38986,7 +39002,7 @@ function _getNpmVersion() {
|
|
|
38986
39002
|
return _getNpmVersion.apply(this, arguments);
|
|
38987
39003
|
}
|
|
38988
39004
|
|
|
38989
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
39005
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
38990
39006
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
38991
39007
|
try {
|
|
38992
39008
|
var info = gen[key](arg);
|
|
@@ -39240,6 +39256,11 @@ function _downloadPackage() {
|
|
|
39240
39256
|
case 0:
|
|
39241
39257
|
pkgVersion = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "latest", options = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : {};
|
|
39242
39258
|
registryUrl = options.registryUrl, install = options.install;
|
|
39259
|
+
if (!!import_semver.default.valid(pkgVersion))
|
|
39260
|
+
return [
|
|
39261
|
+
3,
|
|
39262
|
+
2
|
|
39263
|
+
];
|
|
39243
39264
|
return [
|
|
39244
39265
|
4,
|
|
39245
39266
|
getNpmVersion(pkgName, {
|
|
@@ -39252,26 +39273,34 @@ function _downloadPackage() {
|
|
|
39252
39273
|
if (version2 === void 0) {
|
|
39253
39274
|
throw new Error("package ".concat(pkgName, "@").concat(pkgVersion, " not found in registry"));
|
|
39254
39275
|
}
|
|
39276
|
+
return [
|
|
39277
|
+
3,
|
|
39278
|
+
3
|
|
39279
|
+
];
|
|
39280
|
+
case 2:
|
|
39281
|
+
version2 = pkgVersion;
|
|
39282
|
+
_state.label = 3;
|
|
39283
|
+
case 3:
|
|
39255
39284
|
targetDir = "".concat(import_os.default.tmpdir(), "/csmith-generator/").concat(pkgName, "@").concat(version2);
|
|
39256
39285
|
return [
|
|
39257
39286
|
4,
|
|
39258
39287
|
fsExists(targetDir)
|
|
39259
39288
|
];
|
|
39260
|
-
case
|
|
39289
|
+
case 4:
|
|
39261
39290
|
_tmp = _state.sent();
|
|
39262
39291
|
if (!_tmp)
|
|
39263
39292
|
return [
|
|
39264
39293
|
3,
|
|
39265
|
-
|
|
39294
|
+
6
|
|
39266
39295
|
];
|
|
39267
39296
|
return [
|
|
39268
39297
|
4,
|
|
39269
39298
|
isValidCache(targetDir)
|
|
39270
39299
|
];
|
|
39271
|
-
case
|
|
39300
|
+
case 5:
|
|
39272
39301
|
_tmp = _state.sent();
|
|
39273
|
-
_state.label =
|
|
39274
|
-
case
|
|
39302
|
+
_state.label = 6;
|
|
39303
|
+
case 6:
|
|
39275
39304
|
if (_tmp) {
|
|
39276
39305
|
return [
|
|
39277
39306
|
2,
|
|
@@ -39282,13 +39311,13 @@ function _downloadPackage() {
|
|
|
39282
39311
|
4,
|
|
39283
39312
|
import_fs_extra.default.remove(targetDir)
|
|
39284
39313
|
];
|
|
39285
|
-
case
|
|
39314
|
+
case 7:
|
|
39286
39315
|
_state.sent();
|
|
39287
39316
|
return [
|
|
39288
39317
|
4,
|
|
39289
39318
|
import_fs_extra.default.mkdirp(targetDir)
|
|
39290
39319
|
];
|
|
39291
|
-
case
|
|
39320
|
+
case 8:
|
|
39292
39321
|
_state.sent();
|
|
39293
39322
|
return [
|
|
39294
39323
|
4,
|
|
@@ -39296,34 +39325,34 @@ function _downloadPackage() {
|
|
|
39296
39325
|
registryUrl
|
|
39297
39326
|
})
|
|
39298
39327
|
];
|
|
39299
|
-
case
|
|
39328
|
+
case 9:
|
|
39300
39329
|
tarballPkg = _state.sent();
|
|
39301
39330
|
return [
|
|
39302
39331
|
4,
|
|
39303
39332
|
downloadAndDecompressTargz(tarballPkg, targetDir)
|
|
39304
39333
|
];
|
|
39305
|
-
case
|
|
39334
|
+
case 10:
|
|
39306
39335
|
_state.sent();
|
|
39307
39336
|
if (!install)
|
|
39308
39337
|
return [
|
|
39309
39338
|
3,
|
|
39310
|
-
|
|
39339
|
+
12
|
|
39311
39340
|
];
|
|
39312
39341
|
return [
|
|
39313
39342
|
4,
|
|
39314
39343
|
runInstall(targetDir, registryUrl)
|
|
39315
39344
|
];
|
|
39316
|
-
case
|
|
39345
|
+
case 11:
|
|
39317
39346
|
_state.sent();
|
|
39318
|
-
_state.label =
|
|
39319
|
-
case
|
|
39347
|
+
_state.label = 12;
|
|
39348
|
+
case 12:
|
|
39320
39349
|
return [
|
|
39321
39350
|
4,
|
|
39322
39351
|
import_fs_extra.default.writeFile("".concat(targetDir, "/.codesmith.completed"), (/* @__PURE__ */ new Date()).toISOString(), {
|
|
39323
39352
|
encoding: "utf-8"
|
|
39324
39353
|
})
|
|
39325
39354
|
];
|
|
39326
|
-
case
|
|
39355
|
+
case 13:
|
|
39327
39356
|
_state.sent();
|
|
39328
39357
|
return [
|
|
39329
39358
|
2,
|
|
@@ -39335,7 +39364,7 @@ function _downloadPackage() {
|
|
|
39335
39364
|
return _downloadPackage.apply(this, arguments);
|
|
39336
39365
|
}
|
|
39337
39366
|
|
|
39338
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
39367
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/utils/getPackageInfo.js
|
|
39339
39368
|
function getPackageInfo(packageName) {
|
|
39340
39369
|
if (!packageName) {
|
|
39341
39370
|
throw new Error("package is not exisit");
|
|
@@ -39359,7 +39388,7 @@ function getPackageInfo(packageName) {
|
|
|
39359
39388
|
};
|
|
39360
39389
|
}
|
|
39361
39390
|
|
|
39362
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
39391
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
39363
39392
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
39364
39393
|
try {
|
|
39365
39394
|
var info = gen[key](arg);
|
|
@@ -39584,7 +39613,7 @@ var MaterialsManager = /* @__PURE__ */ function() {
|
|
|
39584
39613
|
return MaterialsManager2;
|
|
39585
39614
|
}();
|
|
39586
39615
|
|
|
39587
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
39616
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.2.5/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
39588
39617
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
39589
39618
|
try {
|
|
39590
39619
|
var info = gen[key](arg);
|
|
@@ -39896,7 +39925,7 @@ var CodeSmith = /* @__PURE__ */ function() {
|
|
|
39896
39925
|
}();
|
|
39897
39926
|
|
|
39898
39927
|
// package.json
|
|
39899
|
-
var version = "2.
|
|
39928
|
+
var version = "2.22.0";
|
|
39900
39929
|
|
|
39901
39930
|
// ../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
39902
39931
|
function _define_property7(obj, key, value) {
|
|
@@ -39973,7 +40002,7 @@ var I18n = class {
|
|
|
39973
40002
|
// src/locale/zh.ts
|
|
39974
40003
|
var ZH_LOCALE = {
|
|
39975
40004
|
command: {
|
|
39976
|
-
description: "创建
|
|
40005
|
+
description: "创建 Modern.js 工程方案",
|
|
39977
40006
|
mwa: "一键创建 Web 应用(使用默认配置)",
|
|
39978
40007
|
module: "一键创建 Module 应用(使用默认配置)",
|
|
39979
40008
|
monorepo: "一键常见 Monorepo 应用(使用默认配置)",
|
|
@@ -39999,7 +40028,7 @@ var ZH_LOCALE = {
|
|
|
39999
40028
|
// src/locale/en.ts
|
|
40000
40029
|
var EN_LOCALE = {
|
|
40001
40030
|
command: {
|
|
40002
|
-
description: "create
|
|
40031
|
+
description: "create Modern.js solution project",
|
|
40003
40032
|
mwa: "create mwa application using default config",
|
|
40004
40033
|
module: "create module application using default config",
|
|
40005
40034
|
monorepo: "create monorepo application using default config",
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@modern-js/codesmith": "2.2.
|
|
40
|
+
"@modern-js/codesmith": "2.2.5",
|
|
41
41
|
"@types/jest": "^29",
|
|
42
42
|
"@types/node": "^14",
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"ts-node": "^10.9.1",
|
|
45
45
|
"typescript": "^5",
|
|
46
|
-
"@modern-js/generator-plugin-plugin": "3.1.
|
|
47
|
-
"@modern-js/
|
|
48
|
-
"@modern-js/
|
|
49
|
-
"@modern-js/
|
|
50
|
-
"@scripts/
|
|
51
|
-
"@scripts/
|
|
46
|
+
"@modern-js/generator-plugin-plugin": "3.1.20",
|
|
47
|
+
"@modern-js/plugin-i18n": "2.22.0",
|
|
48
|
+
"@modern-js/utils": "2.22.0",
|
|
49
|
+
"@modern-js/repo-generator": "3.1.20",
|
|
50
|
+
"@scripts/build": "2.22.0",
|
|
51
|
+
"@scripts/jest-config": "2.22.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|