@modern-js/repo-generator 0.0.0-next-1683610906108 → 0.0.0-next-1683612403251
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 +60 -58
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -126900,12 +126900,12 @@ module.exports = __toCommonJS(src_exports);
|
|
|
126900
126900
|
var import_path19 = __toESM(require("path"));
|
|
126901
126901
|
var import_lodash16 = __toESM(require_lodash2());
|
|
126902
126902
|
|
|
126903
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
126903
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
126904
126904
|
var import_utils22 = __toESM(require_dist());
|
|
126905
126905
|
var import_lodash6 = __toESM(require_lodash3());
|
|
126906
126906
|
var import_comment_json = __toESM(require_src2());
|
|
126907
126907
|
|
|
126908
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
126908
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
126909
126909
|
var import_utils = __toESM(require_dist());
|
|
126910
126910
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
126911
126911
|
try {
|
|
@@ -127214,7 +127214,7 @@ function _canUsePnpm() {
|
|
|
127214
127214
|
return _canUsePnpm.apply(this, arguments);
|
|
127215
127215
|
}
|
|
127216
127216
|
|
|
127217
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
127217
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
127218
127218
|
var import_utils2 = __toESM(require_dist());
|
|
127219
127219
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
127220
127220
|
try {
|
|
@@ -127582,7 +127582,7 @@ function _pnpmInstall() {
|
|
|
127582
127582
|
return _pnpmInstall.apply(this, arguments);
|
|
127583
127583
|
}
|
|
127584
127584
|
|
|
127585
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
127585
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
127586
127586
|
function _classCallCheck(instance, Constructor) {
|
|
127587
127587
|
if (!(instance instanceof Constructor)) {
|
|
127588
127588
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -127663,7 +127663,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
127663
127663
|
return NpmAPI2;
|
|
127664
127664
|
}();
|
|
127665
127665
|
|
|
127666
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.
|
|
127666
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
|
127667
127667
|
var import_utils4 = __toESM(require_dist());
|
|
127668
127668
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
127669
127669
|
try {
|
|
@@ -128006,7 +128006,7 @@ function _gitCommit() {
|
|
|
128006
128006
|
return _gitCommit.apply(this, arguments);
|
|
128007
128007
|
}
|
|
128008
128008
|
|
|
128009
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.
|
|
128009
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
|
128010
128010
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128011
128011
|
try {
|
|
128012
128012
|
var info = gen[key](arg);
|
|
@@ -128337,7 +128337,7 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
128337
128337
|
return GitAPI2;
|
|
128338
128338
|
}();
|
|
128339
128339
|
|
|
128340
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128340
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/logger/constants.js
|
|
128341
128341
|
var LoggerLevel = /* @__PURE__ */ function(LoggerLevel2) {
|
|
128342
128342
|
LoggerLevel2["Error"] = "error";
|
|
128343
128343
|
LoggerLevel2["Warn"] = "warn";
|
|
@@ -128357,7 +128357,7 @@ var LevelPriority = [
|
|
|
128357
128357
|
/* Stream */
|
|
128358
128358
|
];
|
|
128359
128359
|
|
|
128360
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128360
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/logger/index.js
|
|
128361
128361
|
var import_utils6 = __toESM(require_dist());
|
|
128362
128362
|
function _arrayLikeToArray(arr, len) {
|
|
128363
128363
|
if (len == null || len > arr.length)
|
|
@@ -128543,23 +128543,23 @@ var Logger = /* @__PURE__ */ function() {
|
|
|
128543
128543
|
return Logger3;
|
|
128544
128544
|
}();
|
|
128545
128545
|
|
|
128546
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128546
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
128547
128547
|
var import_path7 = __toESM(require("path"));
|
|
128548
128548
|
|
|
128549
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128549
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
128550
128550
|
var import_path4 = __toESM(require("path"));
|
|
128551
128551
|
var import_events = require("events");
|
|
128552
128552
|
var import_utils11 = __toESM(require_dist());
|
|
128553
128553
|
|
|
128554
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128554
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
128555
128555
|
var import_path2 = __toESM(require("path"));
|
|
128556
128556
|
var import_utils8 = __toESM(require_dist());
|
|
128557
128557
|
|
|
128558
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128558
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
128559
128559
|
var import_path = __toESM(require("path"));
|
|
128560
128560
|
var import_utils7 = __toESM(require_dist());
|
|
128561
128561
|
|
|
128562
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128562
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/constants.js
|
|
128563
128563
|
var IMAGE_EXT_LIST = [
|
|
128564
128564
|
".jpg",
|
|
128565
128565
|
".jpeg",
|
|
@@ -128573,7 +128573,7 @@ var IMAGE_EXT_LIST = [
|
|
|
128573
128573
|
".wmf"
|
|
128574
128574
|
];
|
|
128575
128575
|
|
|
128576
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128576
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
128577
128577
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128578
128578
|
try {
|
|
128579
128579
|
var info = gen[key](arg);
|
|
@@ -128805,7 +128805,7 @@ var FsResource = /* @__PURE__ */ function() {
|
|
|
128805
128805
|
return FsResource2;
|
|
128806
128806
|
}();
|
|
128807
128807
|
|
|
128808
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
128808
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
128809
128809
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
128810
128810
|
try {
|
|
128811
128811
|
var info = gen[key](arg);
|
|
@@ -129029,7 +129029,7 @@ var FsMaterial = /* @__PURE__ */ function() {
|
|
|
129029
129029
|
return FsMaterial2;
|
|
129030
129030
|
}();
|
|
129031
129031
|
|
|
129032
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
129032
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/nodeRequire.js
|
|
129033
129033
|
var nodeRequire = function(path19) {
|
|
129034
129034
|
try {
|
|
129035
129035
|
var module2 = __non_webpack_require__(path19);
|
|
@@ -129046,11 +129046,11 @@ var nodeRequire = function(path19) {
|
|
|
129046
129046
|
}
|
|
129047
129047
|
};
|
|
129048
129048
|
|
|
129049
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
129049
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
129050
129050
|
var import_path3 = __toESM(require("path"));
|
|
129051
129051
|
var import_utils10 = __toESM(require_dist());
|
|
129052
129052
|
|
|
129053
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
129053
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
129054
129054
|
var import_utils9 = __toESM(require_dist());
|
|
129055
129055
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129056
129056
|
try {
|
|
@@ -129224,7 +129224,7 @@ function _fsExists() {
|
|
|
129224
129224
|
return _fsExists.apply(this, arguments);
|
|
129225
129225
|
}
|
|
129226
129226
|
|
|
129227
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
129227
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
129228
129228
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129229
129229
|
try {
|
|
129230
129230
|
var info = gen[key](arg);
|
|
@@ -129420,7 +129420,7 @@ function _getGeneratorDir() {
|
|
|
129420
129420
|
return _getGeneratorDir.apply(this, arguments);
|
|
129421
129421
|
}
|
|
129422
129422
|
|
|
129423
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
129423
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
129424
129424
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129425
129425
|
try {
|
|
129426
129426
|
var info = gen[key](arg);
|
|
@@ -129999,10 +129999,10 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
129999
129999
|
return GeneratorCore2;
|
|
130000
130000
|
}();
|
|
130001
130001
|
|
|
130002
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130002
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
130003
130003
|
var import_path6 = __toESM(require("path"));
|
|
130004
130004
|
|
|
130005
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130005
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/packageManager.js
|
|
130006
130006
|
var import_path5 = __toESM(require("path"));
|
|
130007
130007
|
var import_utils12 = __toESM(require_dist());
|
|
130008
130008
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -130336,7 +130336,7 @@ function _runInstall() {
|
|
|
130336
130336
|
return _runInstall.apply(this, arguments);
|
|
130337
130337
|
}
|
|
130338
130338
|
|
|
130339
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130339
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/timeoutPromise.js
|
|
130340
130340
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130341
130341
|
try {
|
|
130342
130342
|
var info = gen[key](arg);
|
|
@@ -130526,20 +130526,20 @@ function _timeoutPromise() {
|
|
|
130526
130526
|
return _timeoutPromise.apply(this, arguments);
|
|
130527
130527
|
}
|
|
130528
130528
|
|
|
130529
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130529
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
130530
130530
|
var import_os = __toESM(require("os"));
|
|
130531
130531
|
var import_utils15 = __toESM(require_dist());
|
|
130532
130532
|
var import_axios = __toESM(require_axios2());
|
|
130533
130533
|
var import_tar = __toESM(require_tar());
|
|
130534
130534
|
|
|
130535
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130535
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
|
130536
130536
|
var import_utils13 = __toESM(require_dist());
|
|
130537
130537
|
|
|
130538
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130538
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/constants.js
|
|
130539
130539
|
var NPM_API_TIMEOUT = 3e4;
|
|
130540
130540
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
130541
130541
|
|
|
130542
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130542
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
|
130543
130543
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130544
130544
|
try {
|
|
130545
130545
|
var info = gen[key](arg);
|
|
@@ -130716,7 +130716,7 @@ function _getNpmTarballUrl() {
|
|
|
130716
130716
|
return _getNpmTarballUrl.apply(this, arguments);
|
|
130717
130717
|
}
|
|
130718
130718
|
|
|
130719
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130719
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmVersion.js
|
|
130720
130720
|
var import_utils14 = __toESM(require_dist());
|
|
130721
130721
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130722
130722
|
try {
|
|
@@ -130889,7 +130889,7 @@ function _getNpmVersion() {
|
|
|
130889
130889
|
return _getNpmVersion.apply(this, arguments);
|
|
130890
130890
|
}
|
|
130891
130891
|
|
|
130892
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130892
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
130893
130893
|
function asyncGeneratorStep14(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130894
130894
|
try {
|
|
130895
130895
|
var info = gen[key](arg);
|
|
@@ -131238,7 +131238,7 @@ function _downloadPackage() {
|
|
|
131238
131238
|
return _downloadPackage.apply(this, arguments);
|
|
131239
131239
|
}
|
|
131240
131240
|
|
|
131241
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131241
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getPackageInfo.js
|
|
131242
131242
|
var import_utils16 = __toESM(require_dist());
|
|
131243
131243
|
function getPackageInfo(packageName) {
|
|
131244
131244
|
if (!packageName) {
|
|
@@ -131263,7 +131263,7 @@ function getPackageInfo(packageName) {
|
|
|
131263
131263
|
};
|
|
131264
131264
|
}
|
|
131265
131265
|
|
|
131266
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131266
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
131267
131267
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131268
131268
|
try {
|
|
131269
131269
|
var info = gen[key](arg);
|
|
@@ -131488,7 +131488,7 @@ var MaterialsManager = /* @__PURE__ */ function() {
|
|
|
131488
131488
|
return MaterialsManager2;
|
|
131489
131489
|
}();
|
|
131490
131490
|
|
|
131491
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131491
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
131492
131492
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131493
131493
|
try {
|
|
131494
131494
|
var info = gen[key](arg);
|
|
@@ -131799,7 +131799,7 @@ var CodeSmith = /* @__PURE__ */ function() {
|
|
|
131799
131799
|
return CodeSmith2;
|
|
131800
131800
|
}();
|
|
131801
131801
|
|
|
131802
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.
|
|
131802
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
|
131803
131803
|
var import_handlebars = __toESM(require_lib());
|
|
131804
131804
|
function _defineProperty10(obj, key, value) {
|
|
131805
131805
|
if (key in obj) {
|
|
@@ -131841,7 +131841,7 @@ function renderString(template, fullData, registers) {
|
|
|
131841
131841
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
131842
131842
|
}
|
|
131843
131843
|
|
|
131844
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.
|
|
131844
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
|
131845
131845
|
function asyncGeneratorStep17(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131846
131846
|
try {
|
|
131847
131847
|
var info = gen[key](arg);
|
|
@@ -132159,13 +132159,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
132159
132159
|
return HandlebarsAPI2;
|
|
132160
132160
|
}();
|
|
132161
132161
|
|
|
132162
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.
|
|
132162
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
|
132163
132163
|
var import_ejs = __toESM(require_ejs());
|
|
132164
132164
|
function renderString2(template, fullData) {
|
|
132165
132165
|
return import_ejs.default.render(template, fullData) || "";
|
|
132166
132166
|
}
|
|
132167
132167
|
|
|
132168
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.
|
|
132168
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
|
132169
132169
|
function asyncGeneratorStep18(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132170
132170
|
try {
|
|
132171
132171
|
var info = gen[key](arg);
|
|
@@ -132435,10 +132435,10 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
132435
132435
|
return EjsAPI2;
|
|
132436
132436
|
}();
|
|
132437
132437
|
|
|
132438
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
132438
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
132439
132439
|
var import_path8 = __toESM(require("path"));
|
|
132440
132440
|
|
|
132441
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
132441
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
|
132442
132442
|
var imageExtNameList = [
|
|
132443
132443
|
".jpg",
|
|
132444
132444
|
".jpeg",
|
|
@@ -132452,7 +132452,7 @@ var imageExtNameList = [
|
|
|
132452
132452
|
".wmf"
|
|
132453
132453
|
];
|
|
132454
132454
|
|
|
132455
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
132455
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.1_@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
|
132456
132456
|
function asyncGeneratorStep19(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132457
132457
|
try {
|
|
132458
132458
|
var info = gen[key](arg);
|
|
@@ -132736,7 +132736,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
132736
132736
|
return FsAPI2;
|
|
132737
132737
|
}();
|
|
132738
132738
|
|
|
132739
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
132739
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
|
132740
132740
|
var import_lodash2 = __toESM(require_lodash4());
|
|
132741
132741
|
|
|
132742
132742
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/checkers.js
|
|
@@ -142295,10 +142295,10 @@ var Schema = (
|
|
|
142295
142295
|
}()
|
|
142296
142296
|
);
|
|
142297
142297
|
|
|
142298
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
142298
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
142299
142299
|
var import_inquirer = __toESM(require_inquirer());
|
|
142300
142300
|
|
|
142301
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
142301
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
142302
142302
|
var import_lodash = __toESM(require_lodash4());
|
|
142303
142303
|
function asyncGeneratorStep20(gen, resolve, reject, _next, _throw, key, arg) {
|
|
142304
142304
|
try {
|
|
@@ -142533,13 +142533,15 @@ function getQuestionFromSchema(schema) {
|
|
|
142533
142533
|
return [];
|
|
142534
142534
|
}
|
|
142535
142535
|
var questions = fields.map(function(field) {
|
|
142536
|
-
var _properties_field = properties[field], type = _properties_field.type, title = _properties_field.title, defaultValue = _properties_field.default, items = _properties_field.enum,
|
|
142536
|
+
var _properties_field = properties[field], type = _properties_field.type, title = _properties_field.title, defaultValue = _properties_field.default, items = _properties_field.enum, _fieldValidate_1 = _properties_field["x-validator"], _fieldValidate_2 = _properties_field["x-validate"], extra = _objectWithoutProperties(_properties_field, [
|
|
142537
142537
|
"type",
|
|
142538
142538
|
"title",
|
|
142539
142539
|
"default",
|
|
142540
142540
|
"enum",
|
|
142541
|
+
"x-validator",
|
|
142541
142542
|
"x-validate"
|
|
142542
142543
|
]);
|
|
142544
|
+
var fieldValidate = _fieldValidate_1 || _fieldValidate_2;
|
|
142543
142545
|
if (type === "void" || type === "object") {
|
|
142544
142546
|
return getQuestionFromSchema(properties[field], configValue, validateMap, initValue);
|
|
142545
142547
|
}
|
|
@@ -142643,7 +142645,7 @@ function transformForm(schema) {
|
|
|
142643
142645
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
142644
142646
|
}
|
|
142645
142647
|
|
|
142646
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
142648
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
142647
142649
|
function asyncGeneratorStep21(gen, resolve, reject, _next, _throw, key, arg) {
|
|
142648
142650
|
try {
|
|
142649
142651
|
var info = gen[key](arg);
|
|
@@ -143167,7 +143169,7 @@ function _prompt() {
|
|
|
143167
143169
|
return _prompt.apply(this, arguments);
|
|
143168
143170
|
}
|
|
143169
143171
|
|
|
143170
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
143172
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
143171
143173
|
function asyncGeneratorStep22(gen, resolve, reject, _next, _throw, key, arg) {
|
|
143172
143174
|
try {
|
|
143173
143175
|
var info = gen[key](arg);
|
|
@@ -143407,7 +143409,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
143407
143409
|
return CLIReader2;
|
|
143408
143410
|
}();
|
|
143409
143411
|
|
|
143410
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
143412
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
|
143411
143413
|
function asyncGeneratorStep23(gen, resolve, reject, _next, _throw, key, arg) {
|
|
143412
143414
|
try {
|
|
143413
143415
|
var info = gen[key](arg);
|
|
@@ -143625,7 +143627,7 @@ var FormilyAPI = /* @__PURE__ */ function() {
|
|
|
143625
143627
|
return FormilyAPI2;
|
|
143626
143628
|
}();
|
|
143627
143629
|
|
|
143628
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143630
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
143629
143631
|
var import_inquirer3 = __toESM(require_inquirer2());
|
|
143630
143632
|
|
|
143631
143633
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.12.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -143697,7 +143699,7 @@ var I18n = class {
|
|
|
143697
143699
|
}
|
|
143698
143700
|
};
|
|
143699
143701
|
|
|
143700
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143702
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
143701
143703
|
var ZH_LOCALE = {
|
|
143702
143704
|
environment: {
|
|
143703
143705
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -143724,7 +143726,7 @@ var ZH_LOCALE = {
|
|
|
143724
143726
|
}
|
|
143725
143727
|
};
|
|
143726
143728
|
|
|
143727
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143729
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
143728
143730
|
var EN_LOCALE = {
|
|
143729
143731
|
environment: {
|
|
143730
143732
|
node_version: "please upgrade node to lts version",
|
|
@@ -143751,14 +143753,14 @@ var EN_LOCALE = {
|
|
|
143751
143753
|
}
|
|
143752
143754
|
};
|
|
143753
143755
|
|
|
143754
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143756
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
143755
143757
|
var i18n = new I18n();
|
|
143756
143758
|
var localeKeys = i18n.init("zh", {
|
|
143757
143759
|
zh: ZH_LOCALE,
|
|
143758
143760
|
en: EN_LOCALE
|
|
143759
143761
|
});
|
|
143760
143762
|
|
|
143761
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143763
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
143762
143764
|
var import_lodash5 = __toESM(require_lodash3());
|
|
143763
143765
|
function asyncGeneratorStep24(gen, resolve, reject, _next, _throw, key, arg) {
|
|
143764
143766
|
try {
|
|
@@ -143967,7 +143969,7 @@ function transformInquirerSchema(questions) {
|
|
|
143967
143969
|
return questions;
|
|
143968
143970
|
}
|
|
143969
143971
|
|
|
143970
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
143972
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
143971
143973
|
var import_path10 = __toESM(require("path"));
|
|
143972
143974
|
var import_utils21 = __toESM(require_dist());
|
|
143973
143975
|
function asyncGeneratorStep25(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -144232,7 +144234,7 @@ function _checkUseNvm() {
|
|
|
144232
144234
|
return _checkUseNvm.apply(this, arguments);
|
|
144233
144235
|
}
|
|
144234
144236
|
|
|
144235
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
144237
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
144236
144238
|
function _arrayLikeToArray2(arr, len) {
|
|
144237
144239
|
if (len == null || len > arr.length)
|
|
144238
144240
|
len = arr.length;
|
|
@@ -145636,7 +145638,7 @@ var getPackageNameSchema = (extra = {}) => {
|
|
|
145636
145638
|
}
|
|
145637
145639
|
}
|
|
145638
145640
|
],
|
|
145639
|
-
"x-
|
|
145641
|
+
"x-validator": (value) => {
|
|
145640
145642
|
if (!value) {
|
|
145641
145643
|
return i18n2.t(localeKeys2.packageName.no_empty);
|
|
145642
145644
|
}
|
|
@@ -145664,7 +145666,7 @@ var getPackagePathSchema = (extra) => {
|
|
|
145664
145666
|
}
|
|
145665
145667
|
}
|
|
145666
145668
|
],
|
|
145667
|
-
"x-
|
|
145669
|
+
"x-validator": (value) => {
|
|
145668
145670
|
if (!value) {
|
|
145669
145671
|
return i18n2.t(localeKeys2.packagePath.no_empty);
|
|
145670
145672
|
}
|
|
@@ -146622,11 +146624,11 @@ var import_lodash15 = __toESM(require_lodash2());
|
|
|
146622
146624
|
// ../../generator-plugin/dist/esm/context/file.js
|
|
146623
146625
|
var import_path14 = __toESM(require("path"));
|
|
146624
146626
|
|
|
146625
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
146627
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
146626
146628
|
var import_comment_json2 = __toESM(require_src2());
|
|
146627
146629
|
var declarationUpdate = __toESM(require_dist2());
|
|
146628
146630
|
|
|
146629
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
146631
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
146630
146632
|
function asyncGeneratorStep27(gen, resolve, reject, _next, _throw, key, arg) {
|
|
146631
146633
|
try {
|
|
146632
146634
|
var info = gen[key](arg);
|
|
@@ -146800,7 +146802,7 @@ function _editJson() {
|
|
|
146800
146802
|
return _editJson.apply(this, arguments);
|
|
146801
146803
|
}
|
|
146802
146804
|
|
|
146803
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
146805
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
146804
146806
|
function asyncGeneratorStep28(gen, resolve, reject, _next, _throw, key, arg) {
|
|
146805
146807
|
try {
|
|
146806
146808
|
var info = gen[key](arg);
|
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-1683612403251",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/runtime": "^7.18.0",
|
|
27
|
-
"@modern-js/codesmith": "2.1.
|
|
28
|
-
"@modern-js/codesmith-api-app": "2.1.
|
|
27
|
+
"@modern-js/codesmith": "2.1.1",
|
|
28
|
+
"@modern-js/codesmith-api-app": "2.1.1",
|
|
29
29
|
"@types/jest": "^29",
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^4",
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/generator
|
|
35
|
-
"@modern-js/generator
|
|
36
|
-
"@modern-js/generator
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
33
|
+
"@modern-js/generator-utils": "0.0.0-next-1683612403251",
|
|
34
|
+
"@modern-js/module-generator": "0.0.0-next-1683612403251",
|
|
35
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1683612403251",
|
|
36
|
+
"@modern-js/mwa-generator": "0.0.0-next-1683612403251",
|
|
37
|
+
"@modern-js/doc-generator": "0.0.0-next-1683612403251",
|
|
38
|
+
"@modern-js/utils": "0.0.0-next-1683612403251",
|
|
39
|
+
"@modern-js/base-generator": "0.0.0-next-1683612403251",
|
|
40
|
+
"@modern-js/generator-plugin": "0.0.0-next-1683612403251",
|
|
41
|
+
"@modern-js/generator-common": "0.0.0-next-1683612403251",
|
|
42
|
+
"@scripts/build": "0.0.0-next-1683612403251",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-next-1683612403251"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|