@modern-js/repo-generator 0.0.0-next-1683615621264 → 0.0.0-next-1683619026219
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
|
@@ -129535,12 +129535,12 @@ module.exports = __toCommonJS(src_exports);
|
|
|
129535
129535
|
var import_path18 = __toESM(require("path"));
|
|
129536
129536
|
var import_lodash15 = __toESM(require_lodash2());
|
|
129537
129537
|
|
|
129538
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
129538
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
129539
129539
|
var import_utils22 = __toESM(require_dist());
|
|
129540
129540
|
var import_lodash6 = __toESM(require_lodash3());
|
|
129541
129541
|
var import_comment_json = __toESM(require_src2());
|
|
129542
129542
|
|
|
129543
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
129543
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
129544
129544
|
var import_utils = __toESM(require_dist());
|
|
129545
129545
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129546
129546
|
try {
|
|
@@ -129849,7 +129849,7 @@ function _canUsePnpm() {
|
|
|
129849
129849
|
return _canUsePnpm.apply(this, arguments);
|
|
129850
129850
|
}
|
|
129851
129851
|
|
|
129852
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
129852
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
129853
129853
|
var import_utils2 = __toESM(require_dist());
|
|
129854
129854
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129855
129855
|
try {
|
|
@@ -130217,7 +130217,7 @@ function _pnpmInstall() {
|
|
|
130217
130217
|
return _pnpmInstall.apply(this, arguments);
|
|
130218
130218
|
}
|
|
130219
130219
|
|
|
130220
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.
|
|
130220
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.1.1/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
130221
130221
|
function _classCallCheck(instance, Constructor) {
|
|
130222
130222
|
if (!(instance instanceof Constructor)) {
|
|
130223
130223
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -130298,7 +130298,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
130298
130298
|
return NpmAPI2;
|
|
130299
130299
|
}();
|
|
130300
130300
|
|
|
130301
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.
|
|
130301
|
+
// ../../../../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
|
|
130302
130302
|
var import_utils4 = __toESM(require_dist());
|
|
130303
130303
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130304
130304
|
try {
|
|
@@ -130641,7 +130641,7 @@ function _gitCommit() {
|
|
|
130641
130641
|
return _gitCommit.apply(this, arguments);
|
|
130642
130642
|
}
|
|
130643
130643
|
|
|
130644
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.1.
|
|
130644
|
+
// ../../../../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
|
|
130645
130645
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130646
130646
|
try {
|
|
130647
130647
|
var info = gen[key](arg);
|
|
@@ -130972,7 +130972,7 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
130972
130972
|
return GitAPI2;
|
|
130973
130973
|
}();
|
|
130974
130974
|
|
|
130975
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130975
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/logger/constants.js
|
|
130976
130976
|
var LoggerLevel = /* @__PURE__ */ function(LoggerLevel2) {
|
|
130977
130977
|
LoggerLevel2["Error"] = "error";
|
|
130978
130978
|
LoggerLevel2["Warn"] = "warn";
|
|
@@ -130992,7 +130992,7 @@ var LevelPriority = [
|
|
|
130992
130992
|
/* Stream */
|
|
130993
130993
|
];
|
|
130994
130994
|
|
|
130995
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
130995
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/logger/index.js
|
|
130996
130996
|
var import_utils6 = __toESM(require_dist());
|
|
130997
130997
|
function _arrayLikeToArray(arr, len) {
|
|
130998
130998
|
if (len == null || len > arr.length)
|
|
@@ -131178,23 +131178,23 @@ var Logger = /* @__PURE__ */ function() {
|
|
|
131178
131178
|
return Logger2;
|
|
131179
131179
|
}();
|
|
131180
131180
|
|
|
131181
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131181
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
131182
131182
|
var import_path7 = __toESM(require("path"));
|
|
131183
131183
|
|
|
131184
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131184
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
131185
131185
|
var import_path4 = __toESM(require("path"));
|
|
131186
131186
|
var import_events = require("events");
|
|
131187
131187
|
var import_utils11 = __toESM(require_dist());
|
|
131188
131188
|
|
|
131189
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131189
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
131190
131190
|
var import_path2 = __toESM(require("path"));
|
|
131191
131191
|
var import_utils8 = __toESM(require_dist());
|
|
131192
131192
|
|
|
131193
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131193
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
131194
131194
|
var import_path = __toESM(require("path"));
|
|
131195
131195
|
var import_utils7 = __toESM(require_dist());
|
|
131196
131196
|
|
|
131197
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131197
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/constants.js
|
|
131198
131198
|
var IMAGE_EXT_LIST = [
|
|
131199
131199
|
".jpg",
|
|
131200
131200
|
".jpeg",
|
|
@@ -131208,7 +131208,7 @@ var IMAGE_EXT_LIST = [
|
|
|
131208
131208
|
".wmf"
|
|
131209
131209
|
];
|
|
131210
131210
|
|
|
131211
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131211
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
131212
131212
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131213
131213
|
try {
|
|
131214
131214
|
var info = gen[key](arg);
|
|
@@ -131440,7 +131440,7 @@ var FsResource = /* @__PURE__ */ function() {
|
|
|
131440
131440
|
return FsResource2;
|
|
131441
131441
|
}();
|
|
131442
131442
|
|
|
131443
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131443
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
|
131444
131444
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131445
131445
|
try {
|
|
131446
131446
|
var info = gen[key](arg);
|
|
@@ -131664,7 +131664,7 @@ var FsMaterial = /* @__PURE__ */ function() {
|
|
|
131664
131664
|
return FsMaterial2;
|
|
131665
131665
|
}();
|
|
131666
131666
|
|
|
131667
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131667
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/nodeRequire.js
|
|
131668
131668
|
var nodeRequire = function(path18) {
|
|
131669
131669
|
try {
|
|
131670
131670
|
var module2 = __non_webpack_require__(path18);
|
|
@@ -131681,11 +131681,11 @@ var nodeRequire = function(path18) {
|
|
|
131681
131681
|
}
|
|
131682
131682
|
};
|
|
131683
131683
|
|
|
131684
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131684
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
131685
131685
|
var import_path3 = __toESM(require("path"));
|
|
131686
131686
|
var import_utils10 = __toESM(require_dist());
|
|
131687
131687
|
|
|
131688
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131688
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
131689
131689
|
var import_utils9 = __toESM(require_dist());
|
|
131690
131690
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131691
131691
|
try {
|
|
@@ -131859,7 +131859,7 @@ function _fsExists() {
|
|
|
131859
131859
|
return _fsExists.apply(this, arguments);
|
|
131860
131860
|
}
|
|
131861
131861
|
|
|
131862
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
131862
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
|
131863
131863
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131864
131864
|
try {
|
|
131865
131865
|
var info = gen[key](arg);
|
|
@@ -132055,7 +132055,7 @@ function _getGeneratorDir() {
|
|
|
132055
132055
|
return _getGeneratorDir.apply(this, arguments);
|
|
132056
132056
|
}
|
|
132057
132057
|
|
|
132058
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
132058
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
|
132059
132059
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132060
132060
|
try {
|
|
132061
132061
|
var info = gen[key](arg);
|
|
@@ -132634,10 +132634,10 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
|
132634
132634
|
return GeneratorCore2;
|
|
132635
132635
|
}();
|
|
132636
132636
|
|
|
132637
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
132637
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
132638
132638
|
var import_path6 = __toESM(require("path"));
|
|
132639
132639
|
|
|
132640
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
132640
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/packageManager.js
|
|
132641
132641
|
var import_path5 = __toESM(require("path"));
|
|
132642
132642
|
var import_utils12 = __toESM(require_dist());
|
|
132643
132643
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -132971,7 +132971,7 @@ function _runInstall() {
|
|
|
132971
132971
|
return _runInstall.apply(this, arguments);
|
|
132972
132972
|
}
|
|
132973
132973
|
|
|
132974
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
132974
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/timeoutPromise.js
|
|
132975
132975
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132976
132976
|
try {
|
|
132977
132977
|
var info = gen[key](arg);
|
|
@@ -133161,20 +133161,20 @@ function _timeoutPromise() {
|
|
|
133161
133161
|
return _timeoutPromise.apply(this, arguments);
|
|
133162
133162
|
}
|
|
133163
133163
|
|
|
133164
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133164
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
133165
133165
|
var import_os = __toESM(require("os"));
|
|
133166
133166
|
var import_utils15 = __toESM(require_dist());
|
|
133167
133167
|
var import_axios = __toESM(require_axios2());
|
|
133168
133168
|
var import_tar = __toESM(require_tar());
|
|
133169
133169
|
|
|
133170
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133170
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
|
133171
133171
|
var import_utils13 = __toESM(require_dist());
|
|
133172
133172
|
|
|
133173
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133173
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/constants.js
|
|
133174
133174
|
var NPM_API_TIMEOUT = 3e4;
|
|
133175
133175
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
133176
133176
|
|
|
133177
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133177
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
|
133178
133178
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133179
133179
|
try {
|
|
133180
133180
|
var info = gen[key](arg);
|
|
@@ -133351,7 +133351,7 @@ function _getNpmTarballUrl() {
|
|
|
133351
133351
|
return _getNpmTarballUrl.apply(this, arguments);
|
|
133352
133352
|
}
|
|
133353
133353
|
|
|
133354
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133354
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmVersion.js
|
|
133355
133355
|
var import_utils14 = __toESM(require_dist());
|
|
133356
133356
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133357
133357
|
try {
|
|
@@ -133524,7 +133524,7 @@ function _getNpmVersion() {
|
|
|
133524
133524
|
return _getNpmVersion.apply(this, arguments);
|
|
133525
133525
|
}
|
|
133526
133526
|
|
|
133527
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133527
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
|
133528
133528
|
function asyncGeneratorStep14(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133529
133529
|
try {
|
|
133530
133530
|
var info = gen[key](arg);
|
|
@@ -133873,7 +133873,7 @@ function _downloadPackage() {
|
|
|
133873
133873
|
return _downloadPackage.apply(this, arguments);
|
|
133874
133874
|
}
|
|
133875
133875
|
|
|
133876
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133876
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/utils/getPackageInfo.js
|
|
133877
133877
|
var import_utils16 = __toESM(require_dist());
|
|
133878
133878
|
function getPackageInfo(packageName) {
|
|
133879
133879
|
if (!packageName) {
|
|
@@ -133898,7 +133898,7 @@ function getPackageInfo(packageName) {
|
|
|
133898
133898
|
};
|
|
133899
133899
|
}
|
|
133900
133900
|
|
|
133901
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
133901
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
|
133902
133902
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
133903
133903
|
try {
|
|
133904
133904
|
var info = gen[key](arg);
|
|
@@ -134123,7 +134123,7 @@ var MaterialsManager = /* @__PURE__ */ function() {
|
|
|
134123
134123
|
return MaterialsManager2;
|
|
134124
134124
|
}();
|
|
134125
134125
|
|
|
134126
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.
|
|
134126
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.1.1/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
|
134127
134127
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
134128
134128
|
try {
|
|
134129
134129
|
var info = gen[key](arg);
|
|
@@ -134434,7 +134434,7 @@ var CodeSmith = /* @__PURE__ */ function() {
|
|
|
134434
134434
|
return CodeSmith2;
|
|
134435
134435
|
}();
|
|
134436
134436
|
|
|
134437
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.
|
|
134437
|
+
// ../../../../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
|
|
134438
134438
|
var import_handlebars = __toESM(require_lib());
|
|
134439
134439
|
function _defineProperty10(obj, key, value) {
|
|
134440
134440
|
if (key in obj) {
|
|
@@ -134476,7 +134476,7 @@ function renderString(template, fullData, registers) {
|
|
|
134476
134476
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
134477
134477
|
}
|
|
134478
134478
|
|
|
134479
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.1.
|
|
134479
|
+
// ../../../../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
|
|
134480
134480
|
function asyncGeneratorStep17(gen, resolve, reject, _next, _throw, key, arg) {
|
|
134481
134481
|
try {
|
|
134482
134482
|
var info = gen[key](arg);
|
|
@@ -134794,13 +134794,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
134794
134794
|
return HandlebarsAPI2;
|
|
134795
134795
|
}();
|
|
134796
134796
|
|
|
134797
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.
|
|
134797
|
+
// ../../../../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
|
|
134798
134798
|
var import_ejs = __toESM(require_ejs());
|
|
134799
134799
|
function renderString2(template, fullData) {
|
|
134800
134800
|
return import_ejs.default.render(template, fullData) || "";
|
|
134801
134801
|
}
|
|
134802
134802
|
|
|
134803
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.1.
|
|
134803
|
+
// ../../../../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
|
|
134804
134804
|
function asyncGeneratorStep18(gen, resolve, reject, _next, _throw, key, arg) {
|
|
134805
134805
|
try {
|
|
134806
134806
|
var info = gen[key](arg);
|
|
@@ -135070,10 +135070,10 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
135070
135070
|
return EjsAPI2;
|
|
135071
135071
|
}();
|
|
135072
135072
|
|
|
135073
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
135073
|
+
// ../../../../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
|
|
135074
135074
|
var import_path8 = __toESM(require("path"));
|
|
135075
135075
|
|
|
135076
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
135076
|
+
// ../../../../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
|
|
135077
135077
|
var imageExtNameList = [
|
|
135078
135078
|
".jpg",
|
|
135079
135079
|
".jpeg",
|
|
@@ -135087,7 +135087,7 @@ var imageExtNameList = [
|
|
|
135087
135087
|
".wmf"
|
|
135088
135088
|
];
|
|
135089
135089
|
|
|
135090
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.1.
|
|
135090
|
+
// ../../../../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
|
|
135091
135091
|
function asyncGeneratorStep19(gen, resolve, reject, _next, _throw, key, arg) {
|
|
135092
135092
|
try {
|
|
135093
135093
|
var info = gen[key](arg);
|
|
@@ -135371,7 +135371,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
135371
135371
|
return FsAPI2;
|
|
135372
135372
|
}();
|
|
135373
135373
|
|
|
135374
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
135374
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
|
135375
135375
|
var import_lodash2 = __toESM(require_lodash4());
|
|
135376
135376
|
|
|
135377
135377
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.22/node_modules/@formily/shared/esm/checkers.js
|
|
@@ -144930,10 +144930,10 @@ var Schema = (
|
|
|
144930
144930
|
}()
|
|
144931
144931
|
);
|
|
144932
144932
|
|
|
144933
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
144933
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
144934
144934
|
var import_inquirer = __toESM(require_inquirer());
|
|
144935
144935
|
|
|
144936
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
144936
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
144937
144937
|
var import_lodash = __toESM(require_lodash4());
|
|
144938
144938
|
function asyncGeneratorStep20(gen, resolve, reject, _next, _throw, key, arg) {
|
|
144939
144939
|
try {
|
|
@@ -145168,13 +145168,15 @@ function getQuestionFromSchema(schema) {
|
|
|
145168
145168
|
return [];
|
|
145169
145169
|
}
|
|
145170
145170
|
var questions = fields.map(function(field) {
|
|
145171
|
-
var _properties_field = properties[field], type = _properties_field.type, title = _properties_field.title, defaultValue = _properties_field.default, items = _properties_field.enum,
|
|
145171
|
+
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, [
|
|
145172
145172
|
"type",
|
|
145173
145173
|
"title",
|
|
145174
145174
|
"default",
|
|
145175
145175
|
"enum",
|
|
145176
|
+
"x-validator",
|
|
145176
145177
|
"x-validate"
|
|
145177
145178
|
]);
|
|
145179
|
+
var fieldValidate = _fieldValidate_1 || _fieldValidate_2;
|
|
145178
145180
|
if (type === "void" || type === "object") {
|
|
145179
145181
|
return getQuestionFromSchema(properties[field], configValue, validateMap, initValue);
|
|
145180
145182
|
}
|
|
@@ -145278,7 +145280,7 @@ function transformForm(schema) {
|
|
|
145278
145280
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
145279
145281
|
}
|
|
145280
145282
|
|
|
145281
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
145283
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
145282
145284
|
function asyncGeneratorStep21(gen, resolve, reject, _next, _throw, key, arg) {
|
|
145283
145285
|
try {
|
|
145284
145286
|
var info = gen[key](arg);
|
|
@@ -145802,7 +145804,7 @@ function _prompt() {
|
|
|
145802
145804
|
return _prompt.apply(this, arguments);
|
|
145803
145805
|
}
|
|
145804
145806
|
|
|
145805
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
145807
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
145806
145808
|
function asyncGeneratorStep22(gen, resolve, reject, _next, _throw, key, arg) {
|
|
145807
145809
|
try {
|
|
145808
145810
|
var info = gen[key](arg);
|
|
@@ -146042,7 +146044,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
146042
146044
|
return CLIReader2;
|
|
146043
146045
|
}();
|
|
146044
146046
|
|
|
146045
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.
|
|
146047
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
|
146046
146048
|
function asyncGeneratorStep23(gen, resolve, reject, _next, _throw, key, arg) {
|
|
146047
146049
|
try {
|
|
146048
146050
|
var info = gen[key](arg);
|
|
@@ -146260,7 +146262,7 @@ var FormilyAPI = /* @__PURE__ */ function() {
|
|
|
146260
146262
|
return FormilyAPI2;
|
|
146261
146263
|
}();
|
|
146262
146264
|
|
|
146263
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146265
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
146264
146266
|
var import_inquirer3 = __toESM(require_inquirer2());
|
|
146265
146267
|
|
|
146266
146268
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.12.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -146332,7 +146334,7 @@ var I18n = class {
|
|
|
146332
146334
|
}
|
|
146333
146335
|
};
|
|
146334
146336
|
|
|
146335
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146337
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
146336
146338
|
var ZH_LOCALE = {
|
|
146337
146339
|
environment: {
|
|
146338
146340
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -146359,7 +146361,7 @@ var ZH_LOCALE = {
|
|
|
146359
146361
|
}
|
|
146360
146362
|
};
|
|
146361
146363
|
|
|
146362
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146364
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
146363
146365
|
var EN_LOCALE = {
|
|
146364
146366
|
environment: {
|
|
146365
146367
|
node_version: "please upgrade node to lts version",
|
|
@@ -146386,14 +146388,14 @@ var EN_LOCALE = {
|
|
|
146386
146388
|
}
|
|
146387
146389
|
};
|
|
146388
146390
|
|
|
146389
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146391
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
146390
146392
|
var i18n = new I18n();
|
|
146391
146393
|
var localeKeys = i18n.init("zh", {
|
|
146392
146394
|
zh: ZH_LOCALE,
|
|
146393
146395
|
en: EN_LOCALE
|
|
146394
146396
|
});
|
|
146395
146397
|
|
|
146396
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146398
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
146397
146399
|
var import_lodash5 = __toESM(require_lodash3());
|
|
146398
146400
|
function asyncGeneratorStep24(gen, resolve, reject, _next, _throw, key, arg) {
|
|
146399
146401
|
try {
|
|
@@ -146602,7 +146604,7 @@ function transformInquirerSchema(questions) {
|
|
|
146602
146604
|
return questions;
|
|
146603
146605
|
}
|
|
146604
146606
|
|
|
146605
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146607
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
146606
146608
|
var import_path10 = __toESM(require("path"));
|
|
146607
146609
|
var import_utils21 = __toESM(require_dist());
|
|
146608
146610
|
function asyncGeneratorStep25(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -146867,7 +146869,7 @@ function _checkUseNvm() {
|
|
|
146867
146869
|
return _checkUseNvm.apply(this, arguments);
|
|
146868
146870
|
}
|
|
146869
146871
|
|
|
146870
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.
|
|
146872
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.1.1_f52xvxngfuq6rm2ilhf5gq6v2a/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
146871
146873
|
function _arrayLikeToArray2(arr, len) {
|
|
146872
146874
|
if (len == null || len > arr.length)
|
|
146873
146875
|
len = arr.length;
|
|
@@ -148271,7 +148273,7 @@ var getPackageNameSchema = (extra = {}) => {
|
|
|
148271
148273
|
}
|
|
148272
148274
|
}
|
|
148273
148275
|
],
|
|
148274
|
-
"x-
|
|
148276
|
+
"x-validator": (value) => {
|
|
148275
148277
|
if (!value) {
|
|
148276
148278
|
return i18n2.t(localeKeys2.packageName.no_empty);
|
|
148277
148279
|
}
|
|
@@ -148299,7 +148301,7 @@ var getPackagePathSchema = (extra) => {
|
|
|
148299
148301
|
}
|
|
148300
148302
|
}
|
|
148301
148303
|
],
|
|
148302
|
-
"x-
|
|
148304
|
+
"x-validator": (value) => {
|
|
148303
148305
|
if (!value) {
|
|
148304
148306
|
return i18n2.t(localeKeys2.packagePath.no_empty);
|
|
148305
148307
|
}
|
|
@@ -149026,11 +149028,11 @@ var import_lodash14 = __toESM(require_lodash2());
|
|
|
149026
149028
|
// ../../generator-plugin/dist/esm/context/file.js
|
|
149027
149029
|
var import_path13 = __toESM(require("path"));
|
|
149028
149030
|
|
|
149029
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
149031
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
149030
149032
|
var import_comment_json2 = __toESM(require_src2());
|
|
149031
149033
|
var declarationUpdate = __toESM(require_dist2());
|
|
149032
149034
|
|
|
149033
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
149035
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
149034
149036
|
function asyncGeneratorStep27(gen, resolve, reject, _next, _throw, key, arg) {
|
|
149035
149037
|
try {
|
|
149036
149038
|
var info = gen[key](arg);
|
|
@@ -149204,7 +149206,7 @@ function _editJson() {
|
|
|
149204
149206
|
return _editJson.apply(this, arguments);
|
|
149205
149207
|
}
|
|
149206
149208
|
|
|
149207
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.
|
|
149209
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.1.1/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
149208
149210
|
function asyncGeneratorStep28(gen, resolve, reject, _next, _throw, key, arg) {
|
|
149209
149211
|
try {
|
|
149210
149212
|
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-1683619026219",
|
|
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
|
-
"@modern-js/
|
|
42
|
-
"@scripts/build": "0.0.0-next-
|
|
43
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-1683619026219",
|
|
34
|
+
"@modern-js/generator-utils": "0.0.0-next-1683619026219",
|
|
35
|
+
"@modern-js/module-generator": "0.0.0-next-1683619026219",
|
|
36
|
+
"@modern-js/monorepo-generator": "0.0.0-next-1683619026219",
|
|
37
|
+
"@modern-js/doc-generator": "0.0.0-next-1683619026219",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-1683619026219",
|
|
39
|
+
"@modern-js/utils": "0.0.0-next-1683619026219",
|
|
40
|
+
"@modern-js/generator-plugin": "0.0.0-next-1683619026219",
|
|
41
|
+
"@modern-js/base-generator": "0.0.0-next-1683619026219",
|
|
42
|
+
"@scripts/build": "0.0.0-next-1683619026219",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-next-1683619026219"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|