@modern-js/repo-generator 3.1.17 → 3.1.19
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 +187 -216
- package/package.json +15 -15
package/dist/index.js
CHANGED
@@ -122670,6 +122670,8 @@ var require_chainId = __commonJS({
|
|
122670
122670
|
BOTTOM_TEMPLATE: "bottom-template",
|
122671
122671
|
/** HtmlCrossOriginPlugin */
|
122672
122672
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
122673
|
+
/** HtmlNoncePlugin */
|
122674
|
+
HTML_NONCE: "html-nonce",
|
122673
122675
|
/** MiniCssExtractPlugin */
|
122674
122676
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
122675
122677
|
/** ReactFastRefreshPlugin */
|
@@ -125750,11 +125752,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
125750
125752
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
125751
125753
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
125752
125754
|
|
125753
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
125755
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
125754
125756
|
var import_lodash7 = __toESM(require_lodash3());
|
125755
125757
|
var import_comment_json = __toESM(require_src2());
|
125756
125758
|
|
125757
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
125759
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
125758
125760
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
125759
125761
|
try {
|
125760
125762
|
var info = gen[key](arg);
|
@@ -126062,7 +126064,7 @@ function _canUsePnpm() {
|
|
126062
126064
|
return _canUsePnpm.apply(this, arguments);
|
126063
126065
|
}
|
126064
126066
|
|
126065
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
126067
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
126066
126068
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
126067
126069
|
try {
|
126068
126070
|
var info = gen[key](arg);
|
@@ -126429,7 +126431,7 @@ function _pnpmInstall() {
|
|
126429
126431
|
return _pnpmInstall.apply(this, arguments);
|
126430
126432
|
}
|
126431
126433
|
|
126432
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
126434
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
126433
126435
|
function _class_call_check(instance, Constructor) {
|
126434
126436
|
if (!(instance instanceof Constructor)) {
|
126435
126437
|
throw new TypeError("Cannot call a class as a function");
|
@@ -126510,7 +126512,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
126510
126512
|
return NpmAPI2;
|
126511
126513
|
}();
|
126512
126514
|
|
126513
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
126515
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/utils/index.js
|
126514
126516
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
126515
126517
|
try {
|
126516
126518
|
var info = gen[key](arg);
|
@@ -126852,7 +126854,7 @@ function _gitCommit() {
|
|
126852
126854
|
return _gitCommit.apply(this, arguments);
|
126853
126855
|
}
|
126854
126856
|
|
126855
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
126857
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-git/dist/esm/index.js
|
126856
126858
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
126857
126859
|
try {
|
126858
126860
|
var info = gen[key](arg);
|
@@ -127183,7 +127185,7 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
127183
127185
|
return GitAPI2;
|
127184
127186
|
}();
|
127185
127187
|
|
127186
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127188
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/logger/constants.js
|
127187
127189
|
var LoggerLevel;
|
127188
127190
|
(function(LoggerLevel2) {
|
127189
127191
|
LoggerLevel2["Error"] = "error";
|
@@ -127202,7 +127204,7 @@ var LevelPriority = [
|
|
127202
127204
|
LoggerLevel.Stream
|
127203
127205
|
];
|
127204
127206
|
|
127205
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127207
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/logger/index.js
|
127206
127208
|
function _array_like_to_array(arr, len) {
|
127207
127209
|
if (len == null || len > arr.length)
|
127208
127210
|
len = arr.length;
|
@@ -127387,20 +127389,20 @@ var Logger = /* @__PURE__ */ function() {
|
|
127387
127389
|
return Logger2;
|
127388
127390
|
}();
|
127389
127391
|
|
127390
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127392
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
127391
127393
|
var import_path7 = __toESM(require("path"));
|
127392
127394
|
|
127393
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127395
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
127394
127396
|
var import_path4 = __toESM(require("path"));
|
127395
127397
|
var import_events = require("events");
|
127396
127398
|
|
127397
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127399
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
127398
127400
|
var import_path2 = __toESM(require("path"));
|
127399
127401
|
|
127400
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127402
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
127401
127403
|
var import_path = __toESM(require("path"));
|
127402
127404
|
|
127403
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127405
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/constants.js
|
127404
127406
|
var IMAGE_EXT_LIST = [
|
127405
127407
|
".jpg",
|
127406
127408
|
".jpeg",
|
@@ -127414,7 +127416,7 @@ var IMAGE_EXT_LIST = [
|
|
127414
127416
|
".wmf"
|
127415
127417
|
];
|
127416
127418
|
|
127417
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127419
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
127418
127420
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
127419
127421
|
try {
|
127420
127422
|
var info = gen[key](arg);
|
@@ -127646,7 +127648,7 @@ var FsResource = /* @__PURE__ */ function() {
|
|
127646
127648
|
return FsResource2;
|
127647
127649
|
}();
|
127648
127650
|
|
127649
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127651
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsMaterial.js
|
127650
127652
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
127651
127653
|
try {
|
127652
127654
|
var info = gen[key](arg);
|
@@ -127870,7 +127872,7 @@ var FsMaterial = /* @__PURE__ */ function() {
|
|
127870
127872
|
return FsMaterial2;
|
127871
127873
|
}();
|
127872
127874
|
|
127873
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127875
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/nodeRequire.js
|
127874
127876
|
var nodeRequire = function(path18) {
|
127875
127877
|
try {
|
127876
127878
|
var module2 = __non_webpack_require__(path18);
|
@@ -127887,10 +127889,10 @@ var nodeRequire = function(path18) {
|
|
127887
127889
|
}
|
127888
127890
|
};
|
127889
127891
|
|
127890
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127892
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
127891
127893
|
var import_path3 = __toESM(require("path"));
|
127892
127894
|
|
127893
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
127895
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
127894
127896
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
127895
127897
|
try {
|
127896
127898
|
var info = gen[key](arg);
|
@@ -128063,7 +128065,7 @@ function _fsExists() {
|
|
128063
128065
|
return _fsExists.apply(this, arguments);
|
128064
128066
|
}
|
128065
128067
|
|
128066
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
128068
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/getGeneratorDir.js
|
128067
128069
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
128068
128070
|
try {
|
128069
128071
|
var info = gen[key](arg);
|
@@ -128257,7 +128259,7 @@ function _getGeneratorDir() {
|
|
128257
128259
|
return _getGeneratorDir.apply(this, arguments);
|
128258
128260
|
}
|
128259
128261
|
|
128260
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
128262
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/generator/index.js
|
128261
128263
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
128262
128264
|
try {
|
128263
128265
|
var info = gen[key](arg);
|
@@ -128836,10 +128838,10 @@ var GeneratorCore = /* @__PURE__ */ function() {
|
|
128836
128838
|
return GeneratorCore2;
|
128837
128839
|
}();
|
128838
128840
|
|
128839
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
128841
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
128840
128842
|
var import_path6 = __toESM(require("path"));
|
128841
128843
|
|
128842
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
128844
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/packageManager.js
|
128843
128845
|
var import_path5 = __toESM(require("path"));
|
128844
128846
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
128845
128847
|
try {
|
@@ -129172,7 +129174,7 @@ function _runInstall() {
|
|
129172
129174
|
return _runInstall.apply(this, arguments);
|
129173
129175
|
}
|
129174
129176
|
|
129175
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129177
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/timeoutPromise.js
|
129176
129178
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
129177
129179
|
try {
|
129178
129180
|
var info = gen[key](arg);
|
@@ -129362,16 +129364,16 @@ function _timeoutPromise() {
|
|
129362
129364
|
return _timeoutPromise.apply(this, arguments);
|
129363
129365
|
}
|
129364
129366
|
|
129365
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129367
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
129366
129368
|
var import_os = __toESM(require("os"));
|
129367
129369
|
var import_axios = __toESM(require_axios2());
|
129368
129370
|
var import_tar = __toESM(require_tar());
|
129369
129371
|
|
129370
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129372
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/constants.js
|
129371
129373
|
var NPM_API_TIMEOUT = 3e4;
|
129372
129374
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
129373
129375
|
|
129374
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129376
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmTarballUrl.js
|
129375
129377
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
129376
129378
|
try {
|
129377
129379
|
var info = gen[key](arg);
|
@@ -129548,7 +129550,7 @@ function _getNpmTarballUrl() {
|
|
129548
129550
|
return _getNpmTarballUrl.apply(this, arguments);
|
129549
129551
|
}
|
129550
129552
|
|
129551
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129553
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/getNpmVersion.js
|
129552
129554
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
129553
129555
|
try {
|
129554
129556
|
var info = gen[key](arg);
|
@@ -129720,7 +129722,7 @@ function _getNpmVersion() {
|
|
129720
129722
|
return _getNpmVersion.apply(this, arguments);
|
129721
129723
|
}
|
129722
129724
|
|
129723
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
129725
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/downloadPackage.js
|
129724
129726
|
function asyncGeneratorStep14(gen, resolve, reject, _next, _throw, key, arg) {
|
129725
129727
|
try {
|
129726
129728
|
var info = gen[key](arg);
|
@@ -130069,7 +130071,7 @@ function _downloadPackage() {
|
|
130069
130071
|
return _downloadPackage.apply(this, arguments);
|
130070
130072
|
}
|
130071
130073
|
|
130072
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
130074
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/getPackageInfo.js
|
130073
130075
|
function getPackageInfo(packageName) {
|
130074
130076
|
if (!packageName) {
|
130075
130077
|
throw new Error("package is not exisit");
|
@@ -130093,7 +130095,7 @@ function getPackageInfo(packageName) {
|
|
130093
130095
|
};
|
130094
130096
|
}
|
130095
130097
|
|
130096
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
130098
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/index.js
|
130097
130099
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
130098
130100
|
try {
|
130099
130101
|
var info = gen[key](arg);
|
@@ -130318,7 +130320,7 @@ var MaterialsManager = /* @__PURE__ */ function() {
|
|
130318
130320
|
return MaterialsManager2;
|
130319
130321
|
}();
|
130320
130322
|
|
130321
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
130323
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/codesmith/index.js
|
130322
130324
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
130323
130325
|
try {
|
130324
130326
|
var info = gen[key](arg);
|
@@ -130629,7 +130631,7 @@ var CodeSmith = /* @__PURE__ */ function() {
|
|
130629
130631
|
return CodeSmith2;
|
130630
130632
|
}();
|
130631
130633
|
|
130632
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
130634
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/utils/renderString.js
|
130633
130635
|
var import_handlebars = __toESM(require_lib());
|
130634
130636
|
function _define_property10(obj, key, value) {
|
130635
130637
|
if (key in obj) {
|
@@ -130671,7 +130673,7 @@ function renderString(template, fullData, registers) {
|
|
130671
130673
|
return import_handlebars.default.compile(template)(fullData) || "";
|
130672
130674
|
}
|
130673
130675
|
|
130674
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
130676
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-handlebars/dist/esm/index.js
|
130675
130677
|
function asyncGeneratorStep17(gen, resolve, reject, _next, _throw, key, arg) {
|
130676
130678
|
try {
|
130677
130679
|
var info = gen[key](arg);
|
@@ -130989,13 +130991,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
130989
130991
|
return HandlebarsAPI2;
|
130990
130992
|
}();
|
130991
130993
|
|
130992
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
130994
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/utils/renderString.js
|
130993
130995
|
var import_ejs = __toESM(require_ejs());
|
130994
130996
|
function renderString2(template, fullData) {
|
130995
130997
|
return import_ejs.default.render(template, fullData) || "";
|
130996
130998
|
}
|
130997
130999
|
|
130998
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
131000
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-ejs/dist/esm/index.js
|
130999
131001
|
function asyncGeneratorStep18(gen, resolve, reject, _next, _throw, key, arg) {
|
131000
131002
|
try {
|
131001
131003
|
var info = gen[key](arg);
|
@@ -131265,24 +131267,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
131265
131267
|
return EjsAPI2;
|
131266
131268
|
}();
|
131267
131269
|
|
131268
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
131270
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.3_@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
131269
131271
|
var import_path8 = __toESM(require("path"));
|
131270
|
-
|
131271
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/constant.js
|
131272
|
-
var imageExtNameList = [
|
131273
|
-
".jpg",
|
131274
|
-
".jpeg",
|
131275
|
-
".png",
|
131276
|
-
".gif",
|
131277
|
-
".bmp",
|
131278
|
-
".ico",
|
131279
|
-
".icon",
|
131280
|
-
".mpt",
|
131281
|
-
".psd",
|
131282
|
-
".wmf"
|
131283
|
-
];
|
131284
|
-
|
131285
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.0_@modern-js+codesmith@2.2.0/node_modules/@modern-js/codesmith-api-fs/dist/esm/index.js
|
131286
131272
|
function asyncGeneratorStep19(gen, resolve, reject, _next, _throw, key, arg) {
|
131287
131273
|
try {
|
131288
131274
|
var info = gen[key](arg);
|
@@ -131462,48 +131448,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
131462
131448
|
value: function renderFile(resource, target) {
|
131463
131449
|
var _this = this;
|
131464
131450
|
return _async_to_generator19(function() {
|
131465
|
-
var
|
131451
|
+
var filePath;
|
131466
131452
|
return __generator19(this, function(_state) {
|
131467
131453
|
switch (_state.label) {
|
131468
131454
|
case 0:
|
131469
131455
|
if (resource._type !== FS_RESOURCE) {
|
131470
131456
|
throw new Error("resource not match");
|
131471
131457
|
}
|
131458
|
+
filePath = import_path8.default.resolve(_this.generatorCore.outputPath, target.toString());
|
131472
131459
|
return [
|
131473
131460
|
4,
|
131474
|
-
|
131461
|
+
import_fs_extra.default.mkdirp(import_path8.default.dirname(filePath))
|
131475
131462
|
];
|
131476
131463
|
case 1:
|
131477
|
-
resourceValue = _state.sent();
|
131478
|
-
resourceFileExt = import_path8.default.extname(resource.filePath);
|
131479
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
131480
|
-
return [
|
131481
|
-
3,
|
131482
|
-
3
|
131483
|
-
];
|
131484
|
-
return [
|
131485
|
-
4,
|
131486
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
131487
|
-
encoding: "binary"
|
131488
|
-
})
|
131489
|
-
];
|
131490
|
-
case 2:
|
131491
131464
|
_state.sent();
|
131492
|
-
return [
|
131493
|
-
3,
|
131494
|
-
5
|
131495
|
-
];
|
131496
|
-
case 3:
|
131497
131465
|
return [
|
131498
131466
|
4,
|
131499
|
-
|
131500
|
-
encoding: "utf-8"
|
131501
|
-
})
|
131467
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
131502
131468
|
];
|
131503
|
-
case
|
131469
|
+
case 2:
|
131504
131470
|
_state.sent();
|
131505
|
-
_state.label = 5;
|
131506
|
-
case 5:
|
131507
131471
|
return [
|
131508
131472
|
2
|
131509
131473
|
];
|
@@ -131566,10 +131530,10 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
131566
131530
|
return FsAPI2;
|
131567
131531
|
}();
|
131568
131532
|
|
131569
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
131533
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
131570
131534
|
var import_lodash3 = __toESM(require_lodash3());
|
131571
131535
|
|
131572
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131536
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
131573
131537
|
var toString = Object.prototype.toString;
|
131574
131538
|
var isType = function(type) {
|
131575
131539
|
return function(obj) {
|
@@ -131595,7 +131559,7 @@ var isObj = function(val) {
|
|
131595
131559
|
};
|
131596
131560
|
var isRegExp = isType("RegExp");
|
131597
131561
|
|
131598
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131562
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
131599
131563
|
var toArr = function(val) {
|
131600
131564
|
return isArr(val) ? val : val ? [val] : [];
|
131601
131565
|
};
|
@@ -131646,7 +131610,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
131646
131610
|
return result;
|
131647
131611
|
}
|
131648
131612
|
|
131649
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131613
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
131650
131614
|
function globalSelf() {
|
131651
131615
|
try {
|
131652
131616
|
if (typeof self !== "undefined") {
|
@@ -131670,7 +131634,7 @@ function globalSelf() {
|
|
131670
131634
|
}
|
131671
131635
|
var globalThisPolyfill = globalSelf();
|
131672
131636
|
|
131673
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131637
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
131674
131638
|
var instOf = function(value, cls) {
|
131675
131639
|
if (isFn(cls))
|
131676
131640
|
return value instanceof cls;
|
@@ -131679,7 +131643,7 @@ var instOf = function(value, cls) {
|
|
131679
131643
|
return false;
|
131680
131644
|
};
|
131681
131645
|
|
131682
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131646
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
131683
131647
|
var isArray = isArr;
|
131684
131648
|
var keyList = Object.keys;
|
131685
131649
|
var hasProp = Object.prototype.hasOwnProperty;
|
@@ -131786,7 +131750,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
131786
131750
|
}
|
131787
131751
|
};
|
131788
131752
|
|
131789
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131753
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
131790
131754
|
var clone = function(values) {
|
131791
131755
|
if (Array.isArray(values)) {
|
131792
131756
|
var res_1 = [];
|
@@ -131822,7 +131786,7 @@ var clone = function(values) {
|
|
131822
131786
|
}
|
131823
131787
|
};
|
131824
131788
|
|
131825
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131789
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
131826
131790
|
var has = Object.prototype.hasOwnProperty;
|
131827
131791
|
var toString2 = Object.prototype.toString;
|
131828
131792
|
var isUndef = function(val) {
|
@@ -132026,7 +131990,7 @@ function pascalCase(input, options) {
|
|
132026
131990
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
132027
131991
|
}
|
132028
131992
|
|
132029
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
131993
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
132030
131994
|
var ansiRegex = function() {
|
132031
131995
|
var pattern = [
|
132032
131996
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
@@ -132045,7 +132009,7 @@ var stringLength = function(input) {
|
|
132045
132009
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
132046
132010
|
};
|
132047
132011
|
|
132048
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132012
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
132049
132013
|
var __assign2 = function() {
|
132050
132014
|
__assign2 = Object.assign || function(t) {
|
132051
132015
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -132068,7 +132032,7 @@ var parenContext = ContextType("()");
|
|
132068
132032
|
var braceContext = ContextType("{}");
|
132069
132033
|
var destructorContext = ContextType("{x}");
|
132070
132034
|
|
132071
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132035
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
132072
132036
|
var __assign3 = function() {
|
132073
132037
|
__assign3 = Object.assign || function(t) {
|
132074
132038
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -132236,7 +132200,7 @@ var expandTok = TokenType("expandTok", {
|
|
132236
132200
|
});
|
132237
132201
|
var eofTok = TokenType("eof");
|
132238
132202
|
|
132239
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132203
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
132240
132204
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
132241
132205
|
var fullCharCodeAtPos = function(input, pos) {
|
132242
132206
|
if (String.fromCharCode)
|
@@ -132488,7 +132452,7 @@ var Tokenizer = (
|
|
132488
132452
|
}()
|
132489
132453
|
);
|
132490
132454
|
|
132491
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132455
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
132492
132456
|
var isType2 = function(type) {
|
132493
132457
|
return function(obj) {
|
132494
132458
|
return obj && obj.type === type;
|
@@ -132506,7 +132470,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
132506
132470
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
132507
132471
|
var isArrayPattern = isType2("ArrayPattern");
|
132508
132472
|
|
132509
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132473
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
132510
132474
|
var toString3 = Object.prototype.toString;
|
132511
132475
|
var isType3 = function(type) {
|
132512
132476
|
return function(obj) {
|
@@ -132583,7 +132547,7 @@ var isSegmentEqual = function(a, b) {
|
|
132583
132547
|
return a === b;
|
132584
132548
|
};
|
132585
132549
|
|
132586
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132550
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
132587
132551
|
var DestructorCache = /* @__PURE__ */ new Map();
|
132588
132552
|
var isValid2 = function(val) {
|
132589
132553
|
return val !== void 0 && val !== null;
|
@@ -132701,7 +132665,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
132701
132665
|
});
|
132702
132666
|
};
|
132703
132667
|
|
132704
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
132668
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
132705
132669
|
var __extends = function() {
|
132706
132670
|
var extendStatics = function(d, b) {
|
132707
132671
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -133092,7 +133056,7 @@ var Parser = (
|
|
133092
133056
|
}(Tokenizer)
|
133093
133057
|
);
|
133094
133058
|
|
133095
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
133059
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
133096
133060
|
var Matcher = (
|
133097
133061
|
/** @class */
|
133098
133062
|
function() {
|
@@ -133274,7 +133238,7 @@ var Matcher = (
|
|
133274
133238
|
}()
|
133275
133239
|
);
|
133276
133240
|
|
133277
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
133241
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
133278
133242
|
var __read = function(o, n) {
|
133279
133243
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
133280
133244
|
if (!m)
|
@@ -133828,7 +133792,7 @@ var Path = (
|
|
133828
133792
|
}()
|
133829
133793
|
);
|
133830
133794
|
|
133831
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
133795
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
133832
133796
|
var Subscribable = (
|
133833
133797
|
/** @class */
|
133834
133798
|
function() {
|
@@ -133880,7 +133844,7 @@ var Subscribable = (
|
|
133880
133844
|
}()
|
133881
133845
|
);
|
133882
133846
|
|
133883
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
133847
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
133884
133848
|
function defaultIsMergeableObject(value) {
|
133885
133849
|
return isNonNullObject(value) && !isSpecial(value);
|
133886
133850
|
}
|
@@ -134073,7 +134037,7 @@ var lazyMerge = function(target) {
|
|
134073
134037
|
};
|
134074
134038
|
var merge = deepmerge;
|
134075
134039
|
|
134076
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
134040
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
134077
134041
|
var IDX = 36;
|
134078
134042
|
var HEX = "";
|
134079
134043
|
while (IDX--)
|
@@ -134085,7 +134049,7 @@ function uid(len) {
|
|
134085
134049
|
return str;
|
134086
134050
|
}
|
134087
134051
|
|
134088
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134052
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
134089
134053
|
var toString4 = Object.prototype.toString;
|
134090
134054
|
var isMap = function(val) {
|
134091
134055
|
return val && val instanceof Map;
|
@@ -134116,7 +134080,7 @@ var isNormalType = function(target) {
|
|
134116
134080
|
return isPlainObj3(target) || isArr3(target);
|
134117
134081
|
};
|
134118
134082
|
|
134119
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134083
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
134120
134084
|
var toArray = function(value) {
|
134121
134085
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
134122
134086
|
};
|
@@ -134180,7 +134144,7 @@ var ArraySet = (
|
|
134180
134144
|
}()
|
134181
134145
|
);
|
134182
134146
|
|
134183
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134147
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
134184
134148
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
134185
134149
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
134186
134150
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
@@ -134199,7 +134163,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
134199
134163
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
134200
134164
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
134201
134165
|
|
134202
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134166
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
134203
134167
|
var ITERATION_KEY = Symbol("iteration key");
|
134204
134168
|
var addRawReactionsMap = function(target, key, reaction2) {
|
134205
134169
|
var reactionsMap = RawReactionsMap.get(target);
|
@@ -134429,7 +134393,7 @@ var disposeEffects = function(reaction2) {
|
|
134429
134393
|
}
|
134430
134394
|
};
|
134431
134395
|
|
134432
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134396
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
134433
134397
|
var DataChange = (
|
134434
134398
|
/** @class */
|
134435
134399
|
function() {
|
@@ -134525,7 +134489,7 @@ var buildDataTree = function(target, key, value) {
|
|
134525
134489
|
setDataNode(raw2, new DataNode(target, key, value));
|
134526
134490
|
};
|
134527
134491
|
|
134528
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134492
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
134529
134493
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
134530
134494
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
134531
134495
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
@@ -134627,7 +134591,7 @@ var hasCollected = function(callback) {
|
|
134627
134591
|
return DependencyCollected.value;
|
134628
134592
|
};
|
134629
134593
|
|
134630
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134594
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
134631
134595
|
var __read2 = function(o, n) {
|
134632
134596
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
134633
134597
|
if (!m)
|
@@ -134883,7 +134847,7 @@ var baseHandlers = {
|
|
134883
134847
|
}
|
134884
134848
|
};
|
134885
134849
|
|
134886
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134850
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
134887
134851
|
var createNormalProxy = function(target, shallow2) {
|
134888
134852
|
var proxy = new Proxy(target, baseHandlers);
|
134889
134853
|
ProxyRaw.set(proxy, target);
|
@@ -134998,7 +134962,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
134998
134962
|
return boundary;
|
134999
134963
|
};
|
135000
134964
|
|
135001
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134965
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
135002
134966
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
135003
134967
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
135004
134968
|
batch.endpoint = function(callback) {
|
@@ -135011,7 +134975,7 @@ batch.endpoint = function(callback) {
|
|
135011
134975
|
}
|
135012
134976
|
};
|
135013
134977
|
|
135014
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134978
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
135015
134979
|
var action = createBoundaryAnnotation(function() {
|
135016
134980
|
batchStart();
|
135017
134981
|
untrackStart();
|
@@ -135027,10 +134991,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
135027
134991
|
batchScopeEnd();
|
135028
134992
|
});
|
135029
134993
|
|
135030
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134994
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
135031
134995
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
135032
134996
|
|
135033
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
134997
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
135034
134998
|
var observable = createAnnotation(function(_a2) {
|
135035
134999
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
135036
135000
|
var store = {
|
@@ -135070,7 +135034,7 @@ var observable = createAnnotation(function(_a2) {
|
|
135070
135034
|
return store.value;
|
135071
135035
|
});
|
135072
135036
|
|
135073
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135037
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
135074
135038
|
var box = createAnnotation(function(_a2) {
|
135075
135039
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
135076
135040
|
var store = {
|
@@ -135116,7 +135080,7 @@ var box = createAnnotation(function(_a2) {
|
|
135116
135080
|
return proxy;
|
135117
135081
|
});
|
135118
135082
|
|
135119
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135083
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
135120
135084
|
var ref = createAnnotation(function(_a2) {
|
135121
135085
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
135122
135086
|
var store = {
|
@@ -135164,7 +135128,7 @@ var ref = createAnnotation(function(_a2) {
|
|
135164
135128
|
return proxy;
|
135165
135129
|
});
|
135166
135130
|
|
135167
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135131
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
135168
135132
|
var shallow = createAnnotation(function(_a2) {
|
135169
135133
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
135170
135134
|
var store = {
|
@@ -135204,7 +135168,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
135204
135168
|
return store.value;
|
135205
135169
|
});
|
135206
135170
|
|
135207
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135171
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
135208
135172
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
135209
135173
|
var getProto = Object.getPrototypeOf;
|
135210
135174
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
@@ -135325,7 +135289,7 @@ var computed = createAnnotation(function(_a2) {
|
|
135325
135289
|
return proxy;
|
135326
135290
|
});
|
135327
135291
|
|
135328
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135292
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
135329
135293
|
function observable2(target) {
|
135330
135294
|
return createObservable(null, null, target);
|
135331
135295
|
}
|
@@ -135336,7 +135300,7 @@ observable2.shallow = shallow;
|
|
135336
135300
|
observable2.computed = computed;
|
135337
135301
|
observable2[MakeObModelSymbol] = observable;
|
135338
135302
|
|
135339
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135303
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
135340
135304
|
function define2(target, annotations) {
|
135341
135305
|
if (isObservable(target))
|
135342
135306
|
return target;
|
@@ -135356,7 +135320,7 @@ function define2(target, annotations) {
|
|
135356
135320
|
return target;
|
135357
135321
|
}
|
135358
135322
|
|
135359
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135323
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
135360
135324
|
var __assign4 = function() {
|
135361
135325
|
__assign4 = Object.assign || function(t) {
|
135362
135326
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -135502,7 +135466,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
135502
135466
|
};
|
135503
135467
|
};
|
135504
135468
|
|
135505
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135469
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
135506
135470
|
var Tracker = (
|
135507
135471
|
/** @class */
|
135508
135472
|
function() {
|
@@ -135547,7 +135511,7 @@ var Tracker = (
|
|
135547
135511
|
}()
|
135548
135512
|
);
|
135549
135513
|
|
135550
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
135514
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
135551
135515
|
var observe = function(target, observer, deep) {
|
135552
135516
|
if (deep === void 0) {
|
135553
135517
|
deep = true;
|
@@ -135580,7 +135544,7 @@ var observe = function(target, observer, deep) {
|
|
135580
135544
|
return addListener(target);
|
135581
135545
|
};
|
135582
135546
|
|
135583
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
135547
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
135584
135548
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
135585
135549
|
var SchemaNestedMap = {
|
135586
135550
|
parent: true,
|
@@ -135767,7 +135731,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
135767
135731
|
});
|
135768
135732
|
};
|
135769
135733
|
|
135770
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
135734
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
135771
135735
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
135772
135736
|
var Registry = {
|
135773
135737
|
silent: false,
|
@@ -135871,7 +135835,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
135871
135835
|
});
|
135872
135836
|
};
|
135873
135837
|
|
135874
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
135838
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
135875
135839
|
var LifeCycle = (
|
135876
135840
|
/** @class */
|
135877
135841
|
function() {
|
@@ -135917,7 +135881,7 @@ var LifeCycle = (
|
|
135917
135881
|
}()
|
135918
135882
|
);
|
135919
135883
|
|
135920
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
135884
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
135921
135885
|
var __extends2 = function() {
|
135922
135886
|
var extendStatics = function(d, b) {
|
135923
135887
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -136013,7 +135977,7 @@ var Heart = (
|
|
136013
135977
|
}(Subscribable)
|
136014
135978
|
);
|
136015
135979
|
|
136016
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
135980
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
136017
135981
|
var isForm = function(node) {
|
136018
135982
|
return node instanceof Form;
|
136019
135983
|
};
|
@@ -136059,7 +136023,7 @@ var isQuery = function(query2) {
|
|
136059
136023
|
return query2 && query2 instanceof Query;
|
136060
136024
|
};
|
136061
136025
|
|
136062
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
136026
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
136063
136027
|
var Graph = (
|
136064
136028
|
/** @class */
|
136065
136029
|
function() {
|
@@ -136111,12 +136075,12 @@ var Graph = (
|
|
136111
136075
|
}()
|
136112
136076
|
);
|
136113
136077
|
|
136114
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136078
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
136115
136079
|
var isValidateResult = function(obj) {
|
136116
136080
|
return !!obj["type"] && !!obj["message"];
|
136117
136081
|
};
|
136118
136082
|
|
136119
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136083
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
136120
136084
|
var getIn2 = Path.getIn;
|
136121
136085
|
var self2 = globalThisPolyfill;
|
136122
136086
|
var defaultLanguage = "en";
|
@@ -136187,7 +136151,7 @@ var registerValidateFormats = function(formats) {
|
|
136187
136151
|
});
|
136188
136152
|
};
|
136189
136153
|
|
136190
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136154
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
136191
136155
|
var render = function(result, rules) {
|
136192
136156
|
var message = result.message;
|
136193
136157
|
if (isStr(result.message)) {
|
@@ -136202,7 +136166,7 @@ var render = function(result, rules) {
|
|
136202
136166
|
return result;
|
136203
136167
|
};
|
136204
136168
|
|
136205
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136169
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
136206
136170
|
var __assign5 = function() {
|
136207
136171
|
__assign5 = Object.assign || function(t) {
|
136208
136172
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -136453,7 +136417,7 @@ var parseValidator = function(validator, options) {
|
|
136453
136417
|
}, []);
|
136454
136418
|
};
|
136455
136419
|
|
136456
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136420
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
136457
136421
|
var locale_default = {
|
136458
136422
|
en: {
|
136459
136423
|
pattern: "This field is invalid",
|
@@ -136673,7 +136637,7 @@ var locale_default = {
|
|
136673
136637
|
}
|
136674
136638
|
};
|
136675
136639
|
|
136676
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136640
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
136677
136641
|
var formats_default = {
|
136678
136642
|
url: new RegExp(
|
136679
136643
|
// protocol identifier
|
@@ -136693,7 +136657,7 @@ var formats_default = {
|
|
136693
136657
|
zip: /^[0-9]{6}$/
|
136694
136658
|
};
|
136695
136659
|
|
136696
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136660
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
136697
136661
|
var __assign6 = function() {
|
136698
136662
|
__assign6 = Object.assign || function(t) {
|
136699
136663
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -137008,7 +136972,7 @@ extendSameRules(RULES, {
|
|
137008
136972
|
});
|
137009
136973
|
var rules_default = RULES;
|
137010
136974
|
|
137011
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
136975
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
137012
136976
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
137013
136977
|
function adopt(value) {
|
137014
136978
|
return value instanceof P ? value : new P(function(resolve) {
|
@@ -137153,7 +137117,7 @@ var validate = function(value, validator, options) {
|
|
137153
137117
|
});
|
137154
137118
|
};
|
137155
137119
|
|
137156
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
137120
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
137157
137121
|
var LifeCycleTypes;
|
137158
137122
|
(function(LifeCycleTypes2) {
|
137159
137123
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
@@ -137205,7 +137169,7 @@ var LifeCycleTypes;
|
|
137205
137169
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
137206
137170
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
137207
137171
|
|
137208
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
137172
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
137209
137173
|
var ReservedProperties = {
|
137210
137174
|
form: true,
|
137211
137175
|
parent: true,
|
@@ -137257,7 +137221,7 @@ var GlobalState = {
|
|
137257
137221
|
};
|
137258
137222
|
var NumberIndexReg = /^\.(\d+)/;
|
137259
137223
|
|
137260
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
137224
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
137261
137225
|
var __assign7 = function() {
|
137262
137226
|
__assign7 = Object.assign || function(t) {
|
137263
137227
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -138364,7 +138328,7 @@ var getObjectParent = function(field) {
|
|
138364
138328
|
}
|
138365
138329
|
};
|
138366
138330
|
|
138367
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
138331
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
138368
138332
|
var output = function(field, taker) {
|
138369
138333
|
if (!field)
|
138370
138334
|
return;
|
@@ -138447,7 +138411,7 @@ var Query = (
|
|
138447
138411
|
}()
|
138448
138412
|
);
|
138449
138413
|
|
138450
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
138414
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
138451
138415
|
var __read4 = function(o, n) {
|
138452
138416
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
138453
138417
|
if (!m)
|
@@ -138827,7 +138791,7 @@ var BaseField = (
|
|
138827
138791
|
}()
|
138828
138792
|
);
|
138829
138793
|
|
138830
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
138794
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
138831
138795
|
var __extends3 = function() {
|
138832
138796
|
var extendStatics = function(d, b) {
|
138833
138797
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -139468,7 +139432,7 @@ var Field = (
|
|
139468
139432
|
}(BaseField)
|
139469
139433
|
);
|
139470
139434
|
|
139471
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
139435
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
139472
139436
|
var __read5 = function(o, n) {
|
139473
139437
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
139474
139438
|
if (!m)
|
@@ -139562,7 +139526,7 @@ var runEffects = function(context) {
|
|
139562
139526
|
return GlobalState.lifecycles;
|
139563
139527
|
};
|
139564
139528
|
|
139565
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
139529
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
139566
139530
|
var __extends4 = function() {
|
139567
139531
|
var extendStatics = function(d, b) {
|
139568
139532
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -139752,7 +139716,7 @@ var ArrayField = (
|
|
139752
139716
|
}(Field)
|
139753
139717
|
);
|
139754
139718
|
|
139755
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
139719
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
139756
139720
|
var __extends5 = function() {
|
139757
139721
|
var extendStatics = function(d, b) {
|
139758
139722
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -139813,7 +139777,7 @@ var ObjectField = (
|
|
139813
139777
|
}(Field)
|
139814
139778
|
);
|
139815
139779
|
|
139816
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
139780
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
139817
139781
|
var __extends6 = function() {
|
139818
139782
|
var extendStatics = function(d, b) {
|
139819
139783
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
@@ -139928,7 +139892,7 @@ var VoidField = (
|
|
139928
139892
|
}(BaseField)
|
139929
139893
|
);
|
139930
139894
|
|
139931
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
139895
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
139932
139896
|
var __assign8 = function() {
|
139933
139897
|
__assign8 = Object.assign || function(t) {
|
139934
139898
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -140456,7 +140420,7 @@ var Form = (
|
|
140456
140420
|
}()
|
140457
140421
|
);
|
140458
140422
|
|
140459
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
140423
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
140460
140424
|
function createFormEffect(type) {
|
140461
140425
|
return createEffectHook(type, function(form) {
|
140462
140426
|
return function(callback) {
|
@@ -140489,7 +140453,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
140489
140453
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
140490
140454
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
140491
140455
|
|
140492
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
140456
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
140493
140457
|
function createFieldEffect(type) {
|
140494
140458
|
return createEffectHook(type, function(field, form) {
|
140495
140459
|
return function(pattern, callback) {
|
@@ -140534,7 +140498,7 @@ function onFieldInit(pattern, callback) {
|
|
140534
140498
|
}
|
140535
140499
|
}
|
140536
140500
|
|
140537
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
140501
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
140538
140502
|
var __read7 = function(o, n) {
|
140539
140503
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
140540
140504
|
if (!m)
|
@@ -140759,7 +140723,7 @@ var transformFieldProps = function(schema, options) {
|
|
140759
140723
|
};
|
140760
140724
|
};
|
140761
140725
|
|
140762
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
140726
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
140763
140727
|
var __assign9 = function() {
|
140764
140728
|
__assign9 = Object.assign || function(t) {
|
140765
140729
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -140808,7 +140772,7 @@ var enablePolyfills = function(versions) {
|
|
140808
140772
|
}
|
140809
140773
|
};
|
140810
140774
|
|
140811
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
140775
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
140812
140776
|
var __assign10 = function() {
|
140813
140777
|
__assign10 = Object.assign || function(t) {
|
140814
140778
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -140965,7 +140929,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
140965
140929
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
140966
140930
|
};
|
140967
140931
|
|
140968
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
140932
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
140969
140933
|
var Schema = (
|
140970
140934
|
/** @class */
|
140971
140935
|
function() {
|
@@ -141201,10 +141165,10 @@ var Schema = (
|
|
141201
141165
|
}()
|
141202
141166
|
);
|
141203
141167
|
|
141204
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
141168
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
141205
141169
|
var import_inquirer = __toESM(require_inquirer());
|
141206
141170
|
|
141207
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
141171
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
141208
141172
|
var import_lodash2 = __toESM(require_lodash3());
|
141209
141173
|
function asyncGeneratorStep20(gen, resolve, reject, _next, _throw, key, arg) {
|
141210
141174
|
try {
|
@@ -141551,7 +141515,7 @@ function transformForm(schema) {
|
|
141551
141515
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
141552
141516
|
}
|
141553
141517
|
|
141554
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
141518
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
141555
141519
|
function asyncGeneratorStep21(gen, resolve, reject, _next, _throw, key, arg) {
|
141556
141520
|
try {
|
141557
141521
|
var info = gen[key](arg);
|
@@ -142075,7 +142039,7 @@ function _prompt() {
|
|
142075
142039
|
return _prompt.apply(this, arguments);
|
142076
142040
|
}
|
142077
142041
|
|
142078
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
142042
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
142079
142043
|
function asyncGeneratorStep22(gen, resolve, reject, _next, _throw, key, arg) {
|
142080
142044
|
try {
|
142081
142045
|
var info = gen[key](arg);
|
@@ -142315,7 +142279,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
142315
142279
|
return CLIReader2;
|
142316
142280
|
}();
|
142317
142281
|
|
142318
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
142282
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/index.js
|
142319
142283
|
function asyncGeneratorStep23(gen, resolve, reject, _next, _throw, key, arg) {
|
142320
142284
|
try {
|
142321
142285
|
var info = gen[key](arg);
|
@@ -142533,7 +142497,7 @@ var FormilyAPI = /* @__PURE__ */ function() {
|
|
142533
142497
|
return FormilyAPI2;
|
142534
142498
|
}();
|
142535
142499
|
|
142536
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142500
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
142537
142501
|
var import_inquirer3 = __toESM(require_inquirer2());
|
142538
142502
|
|
142539
142503
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -142612,7 +142576,7 @@ var I18n = class {
|
|
142612
142576
|
}
|
142613
142577
|
};
|
142614
142578
|
|
142615
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142579
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
142616
142580
|
var ZH_LOCALE = {
|
142617
142581
|
environment: {
|
142618
142582
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -142639,7 +142603,7 @@ var ZH_LOCALE = {
|
|
142639
142603
|
}
|
142640
142604
|
};
|
142641
142605
|
|
142642
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142606
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
142643
142607
|
var EN_LOCALE = {
|
142644
142608
|
environment: {
|
142645
142609
|
node_version: "please upgrade node to lts version",
|
@@ -142666,14 +142630,14 @@ var EN_LOCALE = {
|
|
142666
142630
|
}
|
142667
142631
|
};
|
142668
142632
|
|
142669
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142633
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
142670
142634
|
var i18n = new I18n();
|
142671
142635
|
var localeKeys = i18n.init("zh", {
|
142672
142636
|
zh: ZH_LOCALE,
|
142673
142637
|
en: EN_LOCALE
|
142674
142638
|
});
|
142675
142639
|
|
142676
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142640
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
142677
142641
|
var import_lodash6 = __toESM(require_lodash3());
|
142678
142642
|
function asyncGeneratorStep24(gen, resolve, reject, _next, _throw, key, arg) {
|
142679
142643
|
try {
|
@@ -142882,7 +142846,7 @@ function transformInquirerSchema(questions) {
|
|
142882
142846
|
return questions;
|
142883
142847
|
}
|
142884
142848
|
|
142885
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
142849
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
142886
142850
|
var import_path10 = __toESM(require("path"));
|
142887
142851
|
function asyncGeneratorStep25(gen, resolve, reject, _next, _throw, key, arg) {
|
142888
142852
|
try {
|
@@ -143146,7 +143110,7 @@ function _checkUseNvm() {
|
|
143146
143110
|
return _checkUseNvm.apply(this, arguments);
|
143147
143111
|
}
|
143148
143112
|
|
143149
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
143113
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
143150
143114
|
function _array_like_to_array2(arr, len) {
|
143151
143115
|
if (len == null || len > arr.length)
|
143152
143116
|
len = arr.length;
|
@@ -143727,7 +143691,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
143727
143691
|
switch (_state2.label) {
|
143728
143692
|
case 0:
|
143729
143693
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
143730
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
143694
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
143731
143695
|
return [
|
143732
143696
|
4,
|
143733
143697
|
api.renderTemplate(material.get(resourceKey), target, _object_spread8({}, _this.generatorContext.data || {}, parameters || {}))
|
@@ -145289,7 +145253,7 @@ var import_path17 = __toESM(require("path"));
|
|
145289
145253
|
|
145290
145254
|
// ../../generator-utils/dist/esm/index.js
|
145291
145255
|
var import_path11 = __toESM(require("path"));
|
145292
|
-
var
|
145256
|
+
var import_utils26 = __toESM(require_cjs2());
|
145293
145257
|
|
145294
145258
|
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
145295
145259
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
@@ -145334,10 +145298,10 @@ var localeKeys3 = i18n3.init("en", {
|
|
145334
145298
|
});
|
145335
145299
|
|
145336
145300
|
// ../../generator-utils/dist/esm/utils/package.js
|
145337
|
-
var
|
145301
|
+
var import_utils25 = __toESM(require_cjs2());
|
145338
145302
|
function isPackageExist(packageName, registry2) {
|
145339
145303
|
return __async(this, null, function* () {
|
145340
|
-
if (yield (0,
|
145304
|
+
if (yield (0, import_utils25.canUseNpm)()) {
|
145341
145305
|
const args = [
|
145342
145306
|
"view",
|
145343
145307
|
packageName,
|
@@ -145346,15 +145310,15 @@ function isPackageExist(packageName, registry2) {
|
|
145346
145310
|
if (registry2) {
|
145347
145311
|
args.push(`--registry=${registry2}`);
|
145348
145312
|
}
|
145349
|
-
const result = yield (0,
|
145350
|
-
return (0,
|
145313
|
+
const result = yield (0, import_utils25.execa)("npm", args);
|
145314
|
+
return (0, import_utils25.stripAnsi)(result.stdout);
|
145351
145315
|
}
|
145352
145316
|
throw new Error("not found npm, please install npm before");
|
145353
145317
|
});
|
145354
145318
|
}
|
145355
145319
|
function isPackageDeprecated(packageName, registry2) {
|
145356
145320
|
return __async(this, null, function* () {
|
145357
|
-
if (yield (0,
|
145321
|
+
if (yield (0, import_utils25.canUseNpm)()) {
|
145358
145322
|
const args = [
|
145359
145323
|
"view",
|
145360
145324
|
packageName,
|
@@ -145363,14 +145327,14 @@ function isPackageDeprecated(packageName, registry2) {
|
|
145363
145327
|
if (registry2) {
|
145364
145328
|
args.push(`--registry=${registry2}`);
|
145365
145329
|
}
|
145366
|
-
const result = yield (0,
|
145367
|
-
return (0,
|
145330
|
+
const result = yield (0, import_utils25.execa)("npm", args);
|
145331
|
+
return (0, import_utils25.stripAnsi)(result.stdout);
|
145368
145332
|
}
|
145369
145333
|
throw new Error("not found npm, please install npm before");
|
145370
145334
|
});
|
145371
145335
|
}
|
145372
145336
|
function semverDecrease(version) {
|
145373
|
-
const versionObj =
|
145337
|
+
const versionObj = import_utils25.semver.parse(version, {
|
145374
145338
|
loose: true
|
145375
145339
|
});
|
145376
145340
|
if (!versionObj) {
|
@@ -145380,8 +145344,8 @@ function semverDecrease(version) {
|
|
145380
145344
|
versionObj.prerelease = [];
|
145381
145345
|
versionObj.patch--;
|
145382
145346
|
const result = versionObj.format();
|
145383
|
-
if (!
|
145384
|
-
|
145347
|
+
if (!import_utils25.semver.valid(result)) {
|
145348
|
+
import_utils25.logger.debug(`Version ${result} is not valid semver`);
|
145385
145349
|
return version;
|
145386
145350
|
}
|
145387
145351
|
return result;
|
@@ -145392,7 +145356,7 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
145392
145356
|
let version = currentVersion;
|
145393
145357
|
while (times) {
|
145394
145358
|
if (!(yield isPackageExist(`${packageName}@${version}`, registry2)) || (yield isPackageDeprecated(`${packageName}@${version}`, registry2))) {
|
145395
|
-
version =
|
145359
|
+
version = import_utils25.semver.inc(version, "patch");
|
145396
145360
|
times--;
|
145397
145361
|
continue;
|
145398
145362
|
}
|
@@ -145412,14 +145376,14 @@ function getAvailableVersion(packageName, currentVersion, registry2) {
|
|
145412
145376
|
}
|
145413
145377
|
|
145414
145378
|
// ../../generator-utils/dist/esm/index.js
|
145415
|
-
var
|
145379
|
+
var import_utils27 = __toESM(require_cjs2());
|
145416
145380
|
function getPackageVersion(packageName, registry2) {
|
145417
145381
|
return __async(this, null, function* () {
|
145418
|
-
const spinner = (0,
|
145382
|
+
const spinner = (0, import_utils26.ora)({
|
145419
145383
|
text: "Load Generator...",
|
145420
145384
|
spinner: "runner"
|
145421
145385
|
}).start();
|
145422
|
-
if (yield (0,
|
145386
|
+
if (yield (0, import_utils26.canUsePnpm)()) {
|
145423
145387
|
const args = [
|
145424
145388
|
"info",
|
145425
145389
|
packageName,
|
@@ -145428,11 +145392,11 @@ function getPackageVersion(packageName, registry2) {
|
|
145428
145392
|
if (registry2) {
|
145429
145393
|
args.push(`--registry=${registry2}`);
|
145430
145394
|
}
|
145431
|
-
const result = yield (0,
|
145395
|
+
const result = yield (0, import_utils26.execa)("pnpm", args);
|
145432
145396
|
spinner.stop();
|
145433
145397
|
return stripAnsi2(result.stdout);
|
145434
145398
|
}
|
145435
|
-
if (yield (0,
|
145399
|
+
if (yield (0, import_utils26.canUseNpm)()) {
|
145436
145400
|
const args = [
|
145437
145401
|
"view",
|
145438
145402
|
packageName,
|
@@ -145441,7 +145405,7 @@ function getPackageVersion(packageName, registry2) {
|
|
145441
145405
|
if (registry2) {
|
145442
145406
|
args.push(`--registry=${registry2}`);
|
145443
145407
|
}
|
145444
|
-
const result = yield (0,
|
145408
|
+
const result = yield (0, import_utils26.execa)("npm", args);
|
145445
145409
|
spinner.stop();
|
145446
145410
|
return stripAnsi2(result.stdout);
|
145447
145411
|
}
|
@@ -145461,13 +145425,20 @@ function getModernPluginVersion(_0, _1) {
|
|
145461
145425
|
if (!packageName.startsWith("@modern-js") || packageName.includes("electron") || packageName.includes("codesmith") || packageName.includes("easy-form") || packageName.startsWith("@modern-js-reduck")) {
|
145462
145426
|
return getLatetPluginVersion("latest");
|
145463
145427
|
}
|
145464
|
-
|
145428
|
+
let pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
|
145465
145429
|
paths: [
|
145466
145430
|
cwd
|
145467
145431
|
]
|
145468
|
-
}), "
|
145469
|
-
if (
|
145470
|
-
|
145432
|
+
}), "../../..", "package.json");
|
145433
|
+
if (solution === Solution.Module) {
|
145434
|
+
pkgPath = import_path11.default.join(require.resolve(SolutionToolsMap[solution], {
|
145435
|
+
paths: [
|
145436
|
+
cwd
|
145437
|
+
]
|
145438
|
+
}), "../..", "package.json");
|
145439
|
+
}
|
145440
|
+
if (import_utils26.fs.existsSync(pkgPath)) {
|
145441
|
+
const pkgInfo = import_utils26.fs.readJSONSync(pkgPath);
|
145471
145442
|
const modernVersion = pkgInfo.version;
|
145472
145443
|
if (typeof modernVersion !== "string") {
|
145473
145444
|
return getLatetPluginVersion();
|
@@ -145484,11 +145455,11 @@ var import_lodash15 = __toESM(require_lodash2());
|
|
145484
145455
|
// ../../generator-plugin/dist/esm/context/file.js
|
145485
145456
|
var import_path13 = __toESM(require("path"));
|
145486
145457
|
|
145487
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
145458
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
145488
145459
|
var import_comment_json2 = __toESM(require_src2());
|
145489
145460
|
var declarationUpdate = __toESM(require_dist());
|
145490
145461
|
|
145491
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
145462
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
145492
145463
|
function asyncGeneratorStep28(gen, resolve, reject, _next, _throw, key, arg) {
|
145493
145464
|
try {
|
145494
145465
|
var info = gen[key](arg);
|
@@ -145662,7 +145633,7 @@ function _editJson() {
|
|
145662
145633
|
return _editJson.apply(this, arguments);
|
145663
145634
|
}
|
145664
145635
|
|
145665
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
145636
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
145666
145637
|
function asyncGeneratorStep29(gen, resolve, reject, _next, _throw, key, arg) {
|
145667
145638
|
try {
|
145668
145639
|
var info = gen[key](arg);
|
@@ -145958,7 +145929,7 @@ var JsonAPI = /* @__PURE__ */ function() {
|
|
145958
145929
|
|
145959
145930
|
// ../../generator-plugin/dist/esm/utils/file.js
|
145960
145931
|
var import_path12 = __toESM(require("path"));
|
145961
|
-
var
|
145932
|
+
var import_utils29 = __toESM(require_cjs2());
|
145962
145933
|
var FileType;
|
145963
145934
|
(function(FileType22) {
|
145964
145935
|
FileType22["Text"] = "text";
|
@@ -145983,7 +145954,7 @@ function _fileExists() {
|
|
145983
145954
|
]);
|
145984
145955
|
return [
|
145985
145956
|
4,
|
145986
|
-
|
145957
|
+
import_utils27.fs.access(filePath)
|
145987
145958
|
];
|
145988
145959
|
case 1:
|
145989
145960
|
_state.sent();
|
@@ -146017,7 +145988,7 @@ function dropFileRootPath(file, rootPath) {
|
|
146017
145988
|
}
|
146018
145989
|
function isAbsoluteOrRelativeFileTo(relativePath) {
|
146019
145990
|
var isFile = function(file) {
|
146020
|
-
return
|
145991
|
+
return import_utils27.fs.existsSync(file) && import_utils27.fs.lstatSync(file).isFile();
|
146021
145992
|
};
|
146022
145993
|
return function(fileName) {
|
146023
145994
|
return isFile(fileName) || isFile(import_path12.default.join(relativePath, fileName));
|
@@ -146044,7 +146015,7 @@ function _addFile() {
|
|
146044
146015
|
}
|
146045
146016
|
return [
|
146046
146017
|
4,
|
146047
|
-
|
146018
|
+
import_utils27.fs.mkdir(import_path12.default.dirname(fileDestPath), {
|
146048
146019
|
recursive: true
|
146049
146020
|
})
|
146050
146021
|
];
|
@@ -146058,13 +146029,13 @@ function _addFile() {
|
|
146058
146029
|
];
|
146059
146030
|
return [
|
146060
146031
|
4,
|
146061
|
-
|
146032
|
+
import_utils27.fs.readFile(absTemplatePath)
|
146062
146033
|
];
|
146063
146034
|
case 3:
|
146064
146035
|
rawTemplate = _state.sent();
|
146065
146036
|
return [
|
146066
146037
|
4,
|
146067
|
-
|
146038
|
+
import_utils27.fs.writeFile(fileDestPath, rawTemplate)
|
146068
146039
|
];
|
146069
146040
|
case 4:
|
146070
146041
|
_state.sent();
|
@@ -146081,7 +146052,7 @@ function _addFile() {
|
|
146081
146052
|
];
|
146082
146053
|
return [
|
146083
146054
|
4,
|
146084
|
-
|
146055
|
+
import_utils27.fs.readFile(absTemplatePath, "utf8")
|
146085
146056
|
];
|
146086
146057
|
case 6:
|
146087
146058
|
template = _state.sent();
|
@@ -146089,7 +146060,7 @@ function _addFile() {
|
|
146089
146060
|
case 7:
|
146090
146061
|
return [
|
146091
146062
|
4,
|
146092
|
-
|
146063
|
+
import_utils27.fs.writeFile(fileDestPath, renderString3(template, config.data || {}, ((_config_templateFile = config.templateFile) === null || _config_templateFile === void 0 ? void 0 : _config_templateFile.endsWith(".ejs")) ? "ejs" : "handlebars"), "utf8")
|
146093
146064
|
];
|
146094
146065
|
case 8:
|
146095
146066
|
_state.sent();
|
@@ -146123,7 +146094,7 @@ function _addManyFiles() {
|
|
146123
146094
|
return import_path12.default.join(templatePath, templateFile2);
|
146124
146095
|
});
|
146125
146096
|
config.templateBase = ((_config_templateBase = config.templateBase) === null || _config_templateBase === void 0 ? void 0 : _config_templateBase.startsWith(import_path12.default.sep)) ? config.templateBase : "".concat(import_path12.default.sep).concat(config.templateBase || "");
|
146126
|
-
templateFiles =
|
146097
|
+
templateFiles = import_utils29.globby.sync(config.templateFiles, {
|
146127
146098
|
braceExpansion: false
|
146128
146099
|
}).map(function(filePath) {
|
146129
146100
|
return dropFileRootPath(filePath, templatePath);
|
@@ -146447,14 +146418,14 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
146447
146418
|
case 0:
|
146448
146419
|
return [
|
146449
146420
|
4,
|
146450
|
-
|
146421
|
+
import_utils27.fs.readFile(import_path13.default.join(_this.projectPath, fileName), "utf-8")
|
146451
146422
|
];
|
146452
146423
|
case 1:
|
146453
146424
|
content = _state.sent();
|
146454
146425
|
newContent = update(content.split("\n"));
|
146455
146426
|
return [
|
146456
146427
|
4,
|
146457
|
-
|
146428
|
+
import_utils27.fs.writeFile(import_path13.default.join(_this.projectPath, fileName), newContent.join("\n"), "utf-8")
|
146458
146429
|
];
|
146459
146430
|
case 2:
|
146460
146431
|
_state.sent();
|
@@ -146488,7 +146459,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
146488
146459
|
];
|
146489
146460
|
return [
|
146490
146461
|
4,
|
146491
|
-
|
146462
|
+
import_utils27.fs.rm(file)
|
146492
146463
|
];
|
146493
146464
|
case 2:
|
146494
146465
|
_state.sent();
|
@@ -146522,7 +146493,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
146522
146493
|
]);
|
146523
146494
|
return [
|
146524
146495
|
4,
|
146525
|
-
|
146496
|
+
import_utils27.fs.stat(dir)
|
146526
146497
|
];
|
146527
146498
|
case 2:
|
146528
146499
|
stat = _state.sent();
|
@@ -146533,7 +146504,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
146533
146504
|
];
|
146534
146505
|
return [
|
146535
146506
|
4,
|
146536
|
-
|
146507
|
+
import_utils27.fs.rm(dir, {
|
146537
146508
|
recursive: true
|
146538
146509
|
})
|
146539
146510
|
];
|
@@ -146582,7 +146553,7 @@ var PluginFileAPI = /* @__PURE__ */ function() {
|
|
146582
146553
|
return __generator20(this, function(_state) {
|
146583
146554
|
return [
|
146584
146555
|
2,
|
146585
|
-
|
146556
|
+
import_utils27.fs.readdir(import_path13.default.join(_this.projectPath, dir))
|
146586
146557
|
];
|
146587
146558
|
});
|
146588
146559
|
})();
|
@@ -146989,23 +146960,23 @@ var PluginNpmAPI = /* @__PURE__ */ function() {
|
|
146989
146960
|
|
146990
146961
|
// ../../new-action/dist/esm/utils/index.js
|
146991
146962
|
var import_path14 = __toESM(require("path"));
|
146992
|
-
var
|
146963
|
+
var import_utils30 = __toESM(require_cjs2());
|
146993
146964
|
function alreadyRepo(cwd = process.cwd()) {
|
146994
146965
|
try {
|
146995
|
-
return
|
146966
|
+
return import_utils27.fs.existsSync(import_path14.default.resolve(cwd, "package.json"));
|
146996
146967
|
} catch (e) {
|
146997
146968
|
return false;
|
146998
146969
|
}
|
146999
146970
|
}
|
147000
146971
|
var readJson = (jsonPath) => {
|
147001
|
-
if (!
|
146972
|
+
if (!import_utils27.fs.existsSync(jsonPath)) {
|
147002
146973
|
return {};
|
147003
146974
|
}
|
147004
|
-
const jsonStr =
|
146975
|
+
const jsonStr = import_utils27.fs.readFileSync(jsonPath, {
|
147005
146976
|
encoding: "utf8"
|
147006
146977
|
});
|
147007
146978
|
try {
|
147008
|
-
return
|
146979
|
+
return import_utils30.json5.parse(jsonStr);
|
147009
146980
|
} catch (error) {
|
147010
146981
|
throw Error(`${jsonPath} is not a valid json, please check and try again.`);
|
147011
146982
|
}
|
@@ -147096,7 +147067,7 @@ var MWANewAction = (options) => __async(void 0, null, function* () {
|
|
147096
147067
|
const dependency = MWAActionFunctionsDependencies[action2] || MWAActionRefactorDependencies[action2];
|
147097
147068
|
const finalConfig = (0, import_lodash11.merge)(UserConfig, ans, {
|
147098
147069
|
locale: UserConfig.locale || locale,
|
147099
|
-
packageManager: UserConfig.packageManager || (yield (0,
|
147070
|
+
packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
|
147100
147071
|
distTag
|
147101
147072
|
}, {
|
147102
147073
|
devDependencies: devDependency ? {
|
@@ -147184,7 +147155,7 @@ var ModuleNewAction = (options) => __async(void 0, null, function* () {
|
|
147184
147155
|
};
|
147185
147156
|
const finalConfig = (0, import_lodash12.merge)(UserConfig, ans, {
|
147186
147157
|
locale: UserConfig.locale || locale,
|
147187
|
-
packageManager: UserConfig.packageManager || (yield (0,
|
147158
|
+
packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
|
147188
147159
|
distTag
|
147189
147160
|
}, {
|
147190
147161
|
devDependencies: devDependency ? {
|
@@ -147249,7 +147220,7 @@ var MonorepoNewAction = (options) => __async(void 0, null, function* () {
|
|
147249
147220
|
});
|
147250
147221
|
const finalConfig = (0, import_lodash13.merge)(UserConfig, {
|
147251
147222
|
locale: UserConfig.locale || locale,
|
147252
|
-
packageManager: UserConfig.packageManager || (yield (0,
|
147223
|
+
packageManager: UserConfig.packageManager || (yield (0, import_utils27.getPackageManager)(cwd)),
|
147253
147224
|
isMonorepo: true,
|
147254
147225
|
distTag,
|
147255
147226
|
plugins
|
@@ -147551,7 +147522,7 @@ function _getPackageMeta() {
|
|
147551
147522
|
params.push("--registry");
|
147552
147523
|
params.push(registryUrl);
|
147553
147524
|
}
|
147554
|
-
getPkgInfoPromise = (0,
|
147525
|
+
getPkgInfoPromise = (0, import_utils27.execa)("npm", params);
|
147555
147526
|
return [
|
147556
147527
|
4,
|
147557
147528
|
timeoutPromise(getPkgInfoPromise, NPM_API_TIMEOUT2, "Get npm version of '".concat(packageName, "'"))
|
@@ -147723,7 +147694,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
|
|
147723
147694
|
];
|
147724
147695
|
return [
|
147725
147696
|
4,
|
147726
|
-
|
147697
|
+
import_utils27.fs.readJSON(import_path17.default.join(process.cwd(), plugin.slice(5), "package.json"))
|
147727
147698
|
];
|
147728
147699
|
case 1:
|
147729
147700
|
pkgJSON = _state2.sent();
|
@@ -147739,7 +147710,7 @@ var GeneratorPlugin = /* @__PURE__ */ function() {
|
|
147739
147710
|
];
|
147740
147711
|
return [
|
147741
147712
|
4,
|
147742
|
-
|
147713
|
+
import_utils27.fs.readJSON(import_path17.default.join(plugin, "package.json"))
|
147743
147714
|
];
|
147744
147715
|
case 3:
|
147745
147716
|
pkgJSON = _state2.sent();
|