@modern-js/dependence-generator 3.1.16 → 3.1.18
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 +326 -498
- package/package.json +10 -11
package/dist/index.js
CHANGED
|
@@ -85951,6 +85951,79 @@ var require_lodash3 = __commonJS({
|
|
|
85951
85951
|
}
|
|
85952
85952
|
});
|
|
85953
85953
|
|
|
85954
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs
|
|
85955
|
+
var require_export_star = __commonJS({
|
|
85956
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_export_star.cjs"(exports) {
|
|
85957
|
+
"use strict";
|
|
85958
|
+
exports._ = exports._export_star = _export_star;
|
|
85959
|
+
function _export_star(from, to) {
|
|
85960
|
+
Object.keys(from).forEach(function(k) {
|
|
85961
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
85962
|
+
Object.defineProperty(to, k, {
|
|
85963
|
+
enumerable: true,
|
|
85964
|
+
get: function() {
|
|
85965
|
+
return from[k];
|
|
85966
|
+
}
|
|
85967
|
+
});
|
|
85968
|
+
}
|
|
85969
|
+
});
|
|
85970
|
+
return from;
|
|
85971
|
+
}
|
|
85972
|
+
}
|
|
85973
|
+
});
|
|
85974
|
+
|
|
85975
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs
|
|
85976
|
+
var require_interop_require_default = __commonJS({
|
|
85977
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_default.cjs"(exports) {
|
|
85978
|
+
"use strict";
|
|
85979
|
+
exports._ = exports._interop_require_default = _interop_require_default;
|
|
85980
|
+
function _interop_require_default(obj) {
|
|
85981
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
85982
|
+
}
|
|
85983
|
+
}
|
|
85984
|
+
});
|
|
85985
|
+
|
|
85986
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs
|
|
85987
|
+
var require_interop_require_wildcard = __commonJS({
|
|
85988
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"(exports) {
|
|
85989
|
+
"use strict";
|
|
85990
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
85991
|
+
if (typeof WeakMap !== "function")
|
|
85992
|
+
return null;
|
|
85993
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
85994
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
85995
|
+
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
85996
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
85997
|
+
})(nodeInterop);
|
|
85998
|
+
}
|
|
85999
|
+
exports._ = exports._interop_require_wildcard = _interop_require_wildcard;
|
|
86000
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
86001
|
+
if (!nodeInterop && obj && obj.__esModule)
|
|
86002
|
+
return obj;
|
|
86003
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function")
|
|
86004
|
+
return { default: obj };
|
|
86005
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
86006
|
+
if (cache && cache.has(obj))
|
|
86007
|
+
return cache.get(obj);
|
|
86008
|
+
var newObj = {};
|
|
86009
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
86010
|
+
for (var key in obj) {
|
|
86011
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
86012
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
86013
|
+
if (desc && (desc.get || desc.set))
|
|
86014
|
+
Object.defineProperty(newObj, key, desc);
|
|
86015
|
+
else
|
|
86016
|
+
newObj[key] = obj[key];
|
|
86017
|
+
}
|
|
86018
|
+
}
|
|
86019
|
+
newObj.default = obj;
|
|
86020
|
+
if (cache)
|
|
86021
|
+
cache.set(obj, newObj);
|
|
86022
|
+
return newObj;
|
|
86023
|
+
}
|
|
86024
|
+
}
|
|
86025
|
+
});
|
|
86026
|
+
|
|
85954
86027
|
// ../../../toolkit/utils/dist/compiled/import-lazy/index.js
|
|
85955
86028
|
var require_import_lazy2 = __commonJS({
|
|
85956
86029
|
"../../../toolkit/utils/dist/compiled/import-lazy/index.js"(exports, module2) {
|
|
@@ -115102,80 +115175,37 @@ var require_compiled = __commonJS({
|
|
|
115102
115175
|
chokidar: () => chokidar2,
|
|
115103
115176
|
inquirer: () => inquirer4
|
|
115104
115177
|
});
|
|
115178
|
+
var _interop_require_default = require_interop_require_default();
|
|
115179
|
+
var _interop_require_wildcard = require_interop_require_wildcard();
|
|
115105
115180
|
var _import = require_import();
|
|
115106
|
-
var _fsextra = /* @__PURE__ */ _interop_require_default(require_fs_extra2());
|
|
115107
|
-
var _ora = /* @__PURE__ */ _interop_require_default(require_ora3());
|
|
115108
|
-
var _glob = /* @__PURE__ */ _interop_require_default(require_glob2());
|
|
115109
|
-
var _jsyaml = /* @__PURE__ */ _interop_require_default(require_js_yaml2());
|
|
115110
|
-
var _chalk = /* @__PURE__ */ _interop_require_default(require_chalk2());
|
|
115111
|
-
var _debug = /* @__PURE__ */ _interop_require_default(require_debug2());
|
|
115112
|
-
var _slash = /* @__PURE__ */ _interop_require_default(require_slash2());
|
|
115113
|
-
var _execa = /* @__PURE__ */ _interop_require_default(require_execa2());
|
|
115114
|
-
var _json5 = /* @__PURE__ */ _interop_require_default(require_json52());
|
|
115115
|
-
var _upath = /* @__PURE__ */ _interop_require_default(require_upath2());
|
|
115116
|
-
var _pkgup = /* @__PURE__ */ _interop_require_default(require_pkg_up2());
|
|
115181
|
+
var _fsextra = /* @__PURE__ */ _interop_require_default._(require_fs_extra2());
|
|
115182
|
+
var _ora = /* @__PURE__ */ _interop_require_default._(require_ora3());
|
|
115183
|
+
var _glob = /* @__PURE__ */ _interop_require_default._(require_glob2());
|
|
115184
|
+
var _jsyaml = /* @__PURE__ */ _interop_require_default._(require_js_yaml2());
|
|
115185
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
115186
|
+
var _debug = /* @__PURE__ */ _interop_require_default._(require_debug2());
|
|
115187
|
+
var _slash = /* @__PURE__ */ _interop_require_default._(require_slash2());
|
|
115188
|
+
var _execa = /* @__PURE__ */ _interop_require_default._(require_execa2());
|
|
115189
|
+
var _json5 = /* @__PURE__ */ _interop_require_default._(require_json52());
|
|
115190
|
+
var _upath = /* @__PURE__ */ _interop_require_default._(require_upath2());
|
|
115191
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
|
115117
115192
|
var _nanoid = require_nanoid2();
|
|
115118
|
-
var _semver = /* @__PURE__ */ _interop_require_default(require_semver2());
|
|
115119
|
-
var _dotenv = /* @__PURE__ */ _interop_require_default(require_dotenv2());
|
|
115120
|
-
var _lodash = /* @__PURE__ */ _interop_require_default(require_lodash4());
|
|
115121
|
-
var _globby = /* @__PURE__ */ _interop_require_default(require_globby2());
|
|
115122
|
-
var _address = /* @__PURE__ */ _interop_require_default(require_address2());
|
|
115123
|
-
var _signale = /* @__PURE__ */ _interop_require_wildcard(require_signale2());
|
|
115124
|
-
var _urljoin = /* @__PURE__ */ _interop_require_default(require_url_join2());
|
|
115125
|
-
var _minimist = /* @__PURE__ */ _interop_require_default(require_minimist2());
|
|
115126
|
-
var _fastglob = /* @__PURE__ */ _interop_require_default(require_fast_glob2());
|
|
115127
|
-
var _filesize = /* @__PURE__ */ _interop_require_default(require_filesize2());
|
|
115128
|
-
var _gzipsize = /* @__PURE__ */ _interop_require_default(require_gzip_size2());
|
|
115129
|
-
var _stripansi = /* @__PURE__ */ _interop_require_default(require_strip_ansi3());
|
|
115130
|
-
var _dotenvexpand = /* @__PURE__ */ _interop_require_default(require_dotenv_expand2());
|
|
115131
|
-
var _browserslist = /* @__PURE__ */ _interop_require_default(require_browserslist2());
|
|
115132
|
-
var _recursivereaddir = /* @__PURE__ */ _interop_require_default(require_recursive_readdir2());
|
|
115193
|
+
var _semver = /* @__PURE__ */ _interop_require_default._(require_semver2());
|
|
115194
|
+
var _dotenv = /* @__PURE__ */ _interop_require_default._(require_dotenv2());
|
|
115195
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash4());
|
|
115196
|
+
var _globby = /* @__PURE__ */ _interop_require_default._(require_globby2());
|
|
115197
|
+
var _address = /* @__PURE__ */ _interop_require_default._(require_address2());
|
|
115198
|
+
var _signale = /* @__PURE__ */ _interop_require_wildcard._(require_signale2());
|
|
115199
|
+
var _urljoin = /* @__PURE__ */ _interop_require_default._(require_url_join2());
|
|
115200
|
+
var _minimist = /* @__PURE__ */ _interop_require_default._(require_minimist2());
|
|
115201
|
+
var _fastglob = /* @__PURE__ */ _interop_require_default._(require_fast_glob2());
|
|
115202
|
+
var _filesize = /* @__PURE__ */ _interop_require_default._(require_filesize2());
|
|
115203
|
+
var _gzipsize = /* @__PURE__ */ _interop_require_default._(require_gzip_size2());
|
|
115204
|
+
var _stripansi = /* @__PURE__ */ _interop_require_default._(require_strip_ansi3());
|
|
115205
|
+
var _dotenvexpand = /* @__PURE__ */ _interop_require_default._(require_dotenv_expand2());
|
|
115206
|
+
var _browserslist = /* @__PURE__ */ _interop_require_default._(require_browserslist2());
|
|
115207
|
+
var _recursivereaddir = /* @__PURE__ */ _interop_require_default._(require_recursive_readdir2());
|
|
115133
115208
|
var _commander = require_commander2();
|
|
115134
|
-
function _interop_require_default(obj) {
|
|
115135
|
-
return obj && obj.__esModule ? obj : {
|
|
115136
|
-
default: obj
|
|
115137
|
-
};
|
|
115138
|
-
}
|
|
115139
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
115140
|
-
if (typeof WeakMap !== "function")
|
|
115141
|
-
return null;
|
|
115142
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
115143
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
115144
|
-
return (_getRequireWildcardCache = function(nodeInterop2) {
|
|
115145
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
115146
|
-
})(nodeInterop);
|
|
115147
|
-
}
|
|
115148
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
115149
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
115150
|
-
return obj;
|
|
115151
|
-
}
|
|
115152
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
115153
|
-
return {
|
|
115154
|
-
default: obj
|
|
115155
|
-
};
|
|
115156
|
-
}
|
|
115157
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
115158
|
-
if (cache && cache.has(obj)) {
|
|
115159
|
-
return cache.get(obj);
|
|
115160
|
-
}
|
|
115161
|
-
var newObj = {};
|
|
115162
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
115163
|
-
for (var key in obj) {
|
|
115164
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
115165
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
115166
|
-
if (desc && (desc.get || desc.set)) {
|
|
115167
|
-
Object.defineProperty(newObj, key, desc);
|
|
115168
|
-
} else {
|
|
115169
|
-
newObj[key] = obj[key];
|
|
115170
|
-
}
|
|
115171
|
-
}
|
|
115172
|
-
}
|
|
115173
|
-
newObj.default = obj;
|
|
115174
|
-
if (cache) {
|
|
115175
|
-
cache.set(obj, newObj);
|
|
115176
|
-
}
|
|
115177
|
-
return newObj;
|
|
115178
|
-
}
|
|
115179
115209
|
var mime2 = _import.Import.lazy("../compiled/mime-types", require);
|
|
115180
115210
|
var chokidar2 = _import.Import.lazy("../compiled/chokidar", require);
|
|
115181
115211
|
var inquirer4 = _import.Import.lazy("../compiled/inquirer", require);
|
|
@@ -115325,6 +115355,8 @@ var require_chainId = __commonJS({
|
|
|
115325
115355
|
BOTTOM_TEMPLATE: "bottom-template",
|
|
115326
115356
|
/** HtmlCrossOriginPlugin */
|
|
115327
115357
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
115358
|
+
/** HtmlNoncePlugin */
|
|
115359
|
+
HTML_NONCE: "html-nonce",
|
|
115328
115360
|
/** MiniCssExtractPlugin */
|
|
115329
115361
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
115330
115362
|
/** ReactFastRefreshPlugin */
|
|
@@ -115413,20 +115445,8 @@ var require_constants = __commonJS({
|
|
|
115413
115445
|
PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
|
|
115414
115446
|
DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
|
|
115415
115447
|
});
|
|
115416
|
-
_export_star(
|
|
115417
|
-
|
|
115418
|
-
Object.keys(from).forEach(function(k) {
|
|
115419
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
115420
|
-
Object.defineProperty(to, k, {
|
|
115421
|
-
enumerable: true,
|
|
115422
|
-
get: function() {
|
|
115423
|
-
return from[k];
|
|
115424
|
-
}
|
|
115425
|
-
});
|
|
115426
|
-
}
|
|
115427
|
-
});
|
|
115428
|
-
return from;
|
|
115429
|
-
}
|
|
115448
|
+
var _export_star = require_export_star();
|
|
115449
|
+
_export_star._(require_chainId(), exports);
|
|
115430
115450
|
var ROUTE_SPEC_FILE = "route.json";
|
|
115431
115451
|
var MAIN_ENTRY_NAME = "main";
|
|
115432
115452
|
var SERVER_BUNDLE_DIRECTORY = "bundles";
|
|
@@ -116039,12 +116059,8 @@ var require_ensure = __commonJS({
|
|
|
116039
116059
|
ensureAbsolutePath: () => ensureAbsolutePath,
|
|
116040
116060
|
ensureArray: () => ensureArray
|
|
116041
116061
|
});
|
|
116042
|
-
var
|
|
116043
|
-
|
|
116044
|
-
return obj && obj.__esModule ? obj : {
|
|
116045
|
-
default: obj
|
|
116046
|
-
};
|
|
116047
|
-
}
|
|
116062
|
+
var _interop_require_default = require_interop_require_default();
|
|
116063
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116048
116064
|
var ensureAbsolutePath = (base, filePath) => _path.default.isAbsolute(filePath) ? filePath : _path.default.resolve(base, filePath);
|
|
116049
116065
|
var ensureArray = (params) => {
|
|
116050
116066
|
if (Array.isArray(params)) {
|
|
@@ -116080,16 +116096,12 @@ var require_project = __commonJS({
|
|
|
116080
116096
|
isReact18: () => isReact182,
|
|
116081
116097
|
isTypescript: () => isTypescript
|
|
116082
116098
|
});
|
|
116083
|
-
var
|
|
116099
|
+
var _interop_require_default = require_interop_require_default();
|
|
116100
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116084
116101
|
var _commands = require_commands();
|
|
116085
116102
|
var _compiled = require_compiled();
|
|
116086
116103
|
var _common = require_common3();
|
|
116087
116104
|
var _ensure = require_ensure();
|
|
116088
|
-
function _interop_require_default(obj) {
|
|
116089
|
-
return obj && obj.__esModule ? obj : {
|
|
116090
|
-
default: obj
|
|
116091
|
-
};
|
|
116092
|
-
}
|
|
116093
116105
|
var debug = (0, _common.createDebugger)("judge-depExists");
|
|
116094
116106
|
var isDepExists = (appDirectory, name) => {
|
|
116095
116107
|
const pkgPath = _path.default.resolve(appDirectory, "./package.json");
|
|
@@ -116156,24 +116168,12 @@ var require_is = __commonJS({
|
|
|
116156
116168
|
Object.defineProperty(exports, "__esModule", {
|
|
116157
116169
|
value: true
|
|
116158
116170
|
});
|
|
116159
|
-
_export_star(
|
|
116160
|
-
_export_star(
|
|
116161
|
-
_export_star(
|
|
116162
|
-
_export_star(
|
|
116163
|
-
_export_star(
|
|
116164
|
-
|
|
116165
|
-
Object.keys(from).forEach(function(k) {
|
|
116166
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116167
|
-
Object.defineProperty(to, k, {
|
|
116168
|
-
enumerable: true,
|
|
116169
|
-
get: function() {
|
|
116170
|
-
return from[k];
|
|
116171
|
-
}
|
|
116172
|
-
});
|
|
116173
|
-
}
|
|
116174
|
-
});
|
|
116175
|
-
return from;
|
|
116176
|
-
}
|
|
116171
|
+
var _export_star = require_export_star();
|
|
116172
|
+
_export_star._(require_env(), exports);
|
|
116173
|
+
_export_star._(require_platform(), exports);
|
|
116174
|
+
_export_star._(require_type(), exports);
|
|
116175
|
+
_export_star._(require_config2(), exports);
|
|
116176
|
+
_export_star._(require_project(), exports);
|
|
116177
116177
|
}
|
|
116178
116178
|
});
|
|
116179
116179
|
|
|
@@ -116275,17 +116275,13 @@ var require_data = __commonJS({
|
|
|
116275
116275
|
readTsConfig: () => readTsConfig,
|
|
116276
116276
|
readTsConfigByFile: () => readTsConfigByFile2
|
|
116277
116277
|
});
|
|
116278
|
-
var
|
|
116279
|
-
var
|
|
116278
|
+
var _interop_require_default = require_interop_require_default();
|
|
116279
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116280
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116280
116281
|
var _compiled = require_compiled();
|
|
116281
116282
|
var _constants = require_constants();
|
|
116282
116283
|
var _is = require_is();
|
|
116283
116284
|
var _package = require_package4();
|
|
116284
|
-
function _interop_require_default(obj) {
|
|
116285
|
-
return obj && obj.__esModule ? obj : {
|
|
116286
|
-
default: obj
|
|
116287
|
-
};
|
|
116288
|
-
}
|
|
116289
116285
|
var MAX_TIMES = 5;
|
|
116290
116286
|
function getPackageManager2() {
|
|
116291
116287
|
return __async(this, arguments, function* (cwd = process.cwd()) {
|
|
@@ -116417,29 +116413,13 @@ var require_get2 = __commonJS({
|
|
|
116417
116413
|
getServerConfig: () => getServerConfig,
|
|
116418
116414
|
getTargetDir: () => getTargetDir
|
|
116419
116415
|
});
|
|
116420
|
-
var
|
|
116416
|
+
var _export_star = require_export_star();
|
|
116417
|
+
var _interop_require_default = require_interop_require_default();
|
|
116418
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116421
116419
|
var _constants = require_constants();
|
|
116422
116420
|
var _fs = require_fs();
|
|
116423
|
-
_export_star(require_data(), exports);
|
|
116424
|
-
_export_star(require_config3(), exports);
|
|
116425
|
-
function _export_star(from, to) {
|
|
116426
|
-
Object.keys(from).forEach(function(k) {
|
|
116427
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
116428
|
-
Object.defineProperty(to, k, {
|
|
116429
|
-
enumerable: true,
|
|
116430
|
-
get: function() {
|
|
116431
|
-
return from[k];
|
|
116432
|
-
}
|
|
116433
|
-
});
|
|
116434
|
-
}
|
|
116435
|
-
});
|
|
116436
|
-
return from;
|
|
116437
|
-
}
|
|
116438
|
-
function _interop_require_default(obj) {
|
|
116439
|
-
return obj && obj.__esModule ? obj : {
|
|
116440
|
-
default: obj
|
|
116441
|
-
};
|
|
116442
|
-
}
|
|
116421
|
+
_export_star._(require_data(), exports);
|
|
116422
|
+
_export_star._(require_config3(), exports);
|
|
116443
116423
|
var getServerConfig = (appDirectory, configFile) => __async(exports, null, function* () {
|
|
116444
116424
|
const configFilePath = (0, _fs.findExists)(_constants.CONFIG_FILE_EXTENSIONS.map((extension) => _path.default.resolve(appDirectory, `${configFile}${extension}`)));
|
|
116445
116425
|
return configFilePath;
|
|
@@ -116451,6 +116431,21 @@ var require_get2 = __commonJS({
|
|
|
116451
116431
|
}
|
|
116452
116432
|
});
|
|
116453
116433
|
|
|
116434
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs
|
|
116435
|
+
var require_define_property = __commonJS({
|
|
116436
|
+
"../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/cjs/_define_property.cjs"(exports) {
|
|
116437
|
+
"use strict";
|
|
116438
|
+
exports._ = exports._define_property = _define_property15;
|
|
116439
|
+
function _define_property15(obj, key, value) {
|
|
116440
|
+
if (key in obj) {
|
|
116441
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
116442
|
+
} else
|
|
116443
|
+
obj[key] = value;
|
|
116444
|
+
return obj;
|
|
116445
|
+
}
|
|
116446
|
+
}
|
|
116447
|
+
});
|
|
116448
|
+
|
|
116454
116449
|
// ../../../toolkit/utils/dist/cjs/cli/logger.js
|
|
116455
116450
|
var require_logger2 = __commonJS({
|
|
116456
116451
|
"../../../toolkit/utils/dist/cjs/cli/logger.js"(exports) {
|
|
@@ -116469,25 +116464,9 @@ var require_logger2 = __commonJS({
|
|
|
116469
116464
|
Logger: () => Logger,
|
|
116470
116465
|
logger: () => logger
|
|
116471
116466
|
});
|
|
116472
|
-
var
|
|
116473
|
-
|
|
116474
|
-
|
|
116475
|
-
Object.defineProperty(obj, key, {
|
|
116476
|
-
value,
|
|
116477
|
-
enumerable: true,
|
|
116478
|
-
configurable: true,
|
|
116479
|
-
writable: true
|
|
116480
|
-
});
|
|
116481
|
-
} else {
|
|
116482
|
-
obj[key] = value;
|
|
116483
|
-
}
|
|
116484
|
-
return obj;
|
|
116485
|
-
}
|
|
116486
|
-
function _interop_require_default(obj) {
|
|
116487
|
-
return obj && obj.__esModule ? obj : {
|
|
116488
|
-
default: obj
|
|
116489
|
-
};
|
|
116490
|
-
}
|
|
116467
|
+
var _define_property15 = require_define_property();
|
|
116468
|
+
var _interop_require_default = require_interop_require_default();
|
|
116469
|
+
var _chalk = /* @__PURE__ */ _interop_require_default._(require_chalk2());
|
|
116491
116470
|
var LOG_LEVEL = {
|
|
116492
116471
|
error: 0,
|
|
116493
116472
|
warn: 1,
|
|
@@ -116571,10 +116550,10 @@ ${_chalk.default.grey(rest.join("\n"))}`;
|
|
|
116571
116550
|
return longestLabel;
|
|
116572
116551
|
}
|
|
116573
116552
|
constructor(options = {}) {
|
|
116574
|
-
_define_property15(this, "level", void 0);
|
|
116575
|
-
_define_property15(this, "config", void 0);
|
|
116576
|
-
_define_property15(this, "types", void 0);
|
|
116577
|
-
_define_property15(this, "longestLabel", void 0);
|
|
116553
|
+
_define_property15._(this, "level", void 0);
|
|
116554
|
+
_define_property15._(this, "config", void 0);
|
|
116555
|
+
_define_property15._(this, "types", void 0);
|
|
116556
|
+
_define_property15._(this, "longestLabel", void 0);
|
|
116578
116557
|
this.level = options.level || LOG_TYPES.log.level;
|
|
116579
116558
|
this.config = __spreadValues(__spreadValues({}, DEFAULT_CONFIG), options.config || {});
|
|
116580
116559
|
this.types = __spreadValues(__spreadValues({}, LOG_TYPES), options.types || {});
|
|
@@ -116647,16 +116626,12 @@ var require_alias = __commonJS({
|
|
|
116647
116626
|
getAliasConfig: () => getAliasConfig,
|
|
116648
116627
|
getUserAlias: () => getUserAlias
|
|
116649
116628
|
});
|
|
116650
|
-
var
|
|
116651
|
-
var
|
|
116629
|
+
var _interop_require_default = require_interop_require_default();
|
|
116630
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116631
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116652
116632
|
var _compiled = require_compiled();
|
|
116653
116633
|
var _get = require_get2();
|
|
116654
116634
|
var _applyOptionsChain = require_applyOptionsChain();
|
|
116655
|
-
function _interop_require_default(obj) {
|
|
116656
|
-
return obj && obj.__esModule ? obj : {
|
|
116657
|
-
default: obj
|
|
116658
|
-
};
|
|
116659
|
-
}
|
|
116660
116635
|
var validAlias = (modernConfig, { tsconfigPath }) => {
|
|
116661
116636
|
const { source: { alias } } = modernConfig;
|
|
116662
116637
|
if (!alias) {
|
|
@@ -116732,15 +116707,11 @@ var require_path = __commonJS({
|
|
|
116732
116707
|
removeTailSlash: () => removeTailSlash,
|
|
116733
116708
|
removeSlash: () => removeSlash
|
|
116734
116709
|
});
|
|
116735
|
-
var
|
|
116736
|
-
var
|
|
116737
|
-
var
|
|
116710
|
+
var _interop_require_default = require_interop_require_default();
|
|
116711
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116712
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116713
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116738
116714
|
var _compiled = require_compiled();
|
|
116739
|
-
function _interop_require_default(obj) {
|
|
116740
|
-
return obj && obj.__esModule ? obj : {
|
|
116741
|
-
default: obj
|
|
116742
|
-
};
|
|
116743
|
-
}
|
|
116744
116715
|
var isPathString = (test) => _path.default.posix.basename(test) !== test || _path.default.win32.basename(test) !== test;
|
|
116745
116716
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
|
116746
116717
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
|
@@ -116904,54 +116875,6 @@ var require_babel = __commonJS({
|
|
|
116904
116875
|
}
|
|
116905
116876
|
});
|
|
116906
116877
|
|
|
116907
|
-
// ../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js
|
|
116908
|
-
var require_generateMetaTags = __commonJS({
|
|
116909
|
-
"../../../toolkit/utils/dist/cjs/cli/generateMetaTags.js"(exports) {
|
|
116910
|
-
"use strict";
|
|
116911
|
-
Object.defineProperty(exports, "__esModule", {
|
|
116912
|
-
value: true
|
|
116913
|
-
});
|
|
116914
|
-
Object.defineProperty(exports, "generateMetaTags", {
|
|
116915
|
-
enumerable: true,
|
|
116916
|
-
get: () => generateMetaTags
|
|
116917
|
-
});
|
|
116918
|
-
var tagObjectToString = (tagDefinition) => {
|
|
116919
|
-
const attributes = Object.keys(tagDefinition.attributes || {}).filter((attributeName) => tagDefinition.attributes[attributeName] !== false).map((attributeName) => {
|
|
116920
|
-
if (tagDefinition.attributes[attributeName] === true) {
|
|
116921
|
-
return attributeName;
|
|
116922
|
-
}
|
|
116923
|
-
return `${attributeName}="${tagDefinition.attributes[attributeName]}"`;
|
|
116924
|
-
});
|
|
116925
|
-
return `<${[
|
|
116926
|
-
tagDefinition.tagName
|
|
116927
|
-
].concat(attributes).join(" ")}>${tagDefinition.innerHTML || ""}${tagDefinition.voidTag ? "" : `</${tagDefinition.tagName}>`}`;
|
|
116928
|
-
};
|
|
116929
|
-
var generateMetaTags = (metaOptions) => {
|
|
116930
|
-
if (!metaOptions) {
|
|
116931
|
-
return "";
|
|
116932
|
-
}
|
|
116933
|
-
const metaTagAttributeObjects = Object.keys(metaOptions).map((metaName) => {
|
|
116934
|
-
const metaTagContent = metaOptions[metaName];
|
|
116935
|
-
return typeof metaTagContent === "string" ? {
|
|
116936
|
-
name: metaName,
|
|
116937
|
-
content: metaTagContent
|
|
116938
|
-
} : metaTagContent;
|
|
116939
|
-
}).filter((attribute) => attribute !== false);
|
|
116940
|
-
return metaTagAttributeObjects.map((metaTagAttributes) => {
|
|
116941
|
-
if (metaTagAttributes === false) {
|
|
116942
|
-
throw new Error("Invalid meta tag");
|
|
116943
|
-
}
|
|
116944
|
-
return {
|
|
116945
|
-
tagName: "meta",
|
|
116946
|
-
voidTag: true,
|
|
116947
|
-
attributes: metaTagAttributes
|
|
116948
|
-
};
|
|
116949
|
-
}).reduce((memo, tagObject) => `${memo}
|
|
116950
|
-
${tagObjectToString(tagObject)}`, "");
|
|
116951
|
-
};
|
|
116952
|
-
}
|
|
116953
|
-
});
|
|
116954
|
-
|
|
116955
116878
|
// ../../../toolkit/utils/dist/cjs/cli/monorepo.js
|
|
116956
116879
|
var require_monorepo = __commonJS({
|
|
116957
116880
|
"../../../toolkit/utils/dist/cjs/cli/monorepo.js"(exports) {
|
|
@@ -116975,14 +116898,10 @@ var require_monorepo = __commonJS({
|
|
|
116975
116898
|
findMonorepoRoot: () => findMonorepoRoot,
|
|
116976
116899
|
getMonorepoPackages: () => getMonorepoPackages2
|
|
116977
116900
|
});
|
|
116978
|
-
var
|
|
116979
|
-
var
|
|
116901
|
+
var _interop_require_default = require_interop_require_default();
|
|
116902
|
+
var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
|
|
116903
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
116980
116904
|
var _compiled = require_compiled();
|
|
116981
|
-
function _interop_require_default(obj) {
|
|
116982
|
-
return obj && obj.__esModule ? obj : {
|
|
116983
|
-
default: obj
|
|
116984
|
-
};
|
|
116985
|
-
}
|
|
116986
116905
|
var PACKAGE_MAX_DEPTH = 5;
|
|
116987
116906
|
var WORKSPACE_FILES = {
|
|
116988
116907
|
YARN: "package.json",
|
|
@@ -117070,14 +116989,10 @@ var require_pathSerializer = __commonJS({
|
|
|
117070
116989
|
applyMatcherReplacement: () => applyMatcherReplacement,
|
|
117071
116990
|
createDefaultPathMatchers: () => createDefaultPathMatchers
|
|
117072
116991
|
});
|
|
117073
|
-
var
|
|
117074
|
-
var
|
|
116992
|
+
var _interop_require_default = require_interop_require_default();
|
|
116993
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
116994
|
+
var _lodash = /* @__PURE__ */ _interop_require_default._(require_lodash4());
|
|
117075
116995
|
var _path = require_path();
|
|
117076
|
-
function _interop_require_default(obj) {
|
|
117077
|
-
return obj && obj.__esModule ? obj : {
|
|
117078
|
-
default: obj
|
|
117079
|
-
};
|
|
117080
|
-
}
|
|
117081
116996
|
var matchUpwardPathsAsUnknown = (p) => (0, _lodash.default)((0, _path.upwardPaths)((0, _path.normalizeToPosixPath)(p))).map((match) => ({
|
|
117082
116997
|
match,
|
|
117083
116998
|
mark: "unknown"
|
|
@@ -117135,14 +117050,10 @@ var require_port = __commonJS({
|
|
|
117135
117050
|
enumerable: true,
|
|
117136
117051
|
get: () => getPort
|
|
117137
117052
|
});
|
|
117138
|
-
var
|
|
117053
|
+
var _interop_require_default = require_interop_require_default();
|
|
117054
|
+
var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
|
|
117139
117055
|
var _compiled = require_compiled();
|
|
117140
117056
|
var _logger = require_logger2();
|
|
117141
|
-
function _interop_require_default(obj) {
|
|
117142
|
-
return obj && obj.__esModule ? obj : {
|
|
117143
|
-
default: obj
|
|
117144
|
-
};
|
|
117145
|
-
}
|
|
117146
117057
|
var getPort = (_0, ..._1) => __async(exports, [_0, ..._1], function* (port, { tryLimits = 20, strictPort = false } = {}) {
|
|
117147
117058
|
if (typeof port === "string") {
|
|
117148
117059
|
port = parseInt(port, 10);
|
|
@@ -117205,15 +117116,11 @@ var require_prettyInstructions = __commonJS({
|
|
|
117205
117116
|
getAddressUrls: () => getAddressUrls,
|
|
117206
117117
|
prettyInstructions: () => prettyInstructions
|
|
117207
117118
|
});
|
|
117208
|
-
var
|
|
117119
|
+
var _interop_require_default = require_interop_require_default();
|
|
117120
|
+
var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
|
|
117209
117121
|
var _compiled = require_compiled();
|
|
117210
117122
|
var _is = require_is();
|
|
117211
117123
|
var _constants = require_constants();
|
|
117212
|
-
function _interop_require_default(obj) {
|
|
117213
|
-
return obj && obj.__esModule ? obj : {
|
|
117214
|
-
default: obj
|
|
117215
|
-
};
|
|
117216
|
-
}
|
|
117217
117124
|
var normalizeUrl = (url) => url.replace(/([^:]\/)\/+/g, "$1");
|
|
117218
117125
|
var getIpv4Interfaces = () => {
|
|
117219
117126
|
const interfaces = _os.default.networkInterfaces();
|
|
@@ -117417,14 +117324,10 @@ var require_routes = __commonJS({
|
|
|
117417
117324
|
enumerable: true,
|
|
117418
117325
|
get: () => getRouteId
|
|
117419
117326
|
});
|
|
117420
|
-
var
|
|
117327
|
+
var _interop_require_default = require_interop_require_default();
|
|
117328
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117421
117329
|
var _constants = require_constants();
|
|
117422
117330
|
var _path1 = require_path();
|
|
117423
|
-
function _interop_require_default(obj) {
|
|
117424
|
-
return obj && obj.__esModule ? obj : {
|
|
117425
|
-
default: obj
|
|
117426
|
-
};
|
|
117427
|
-
}
|
|
117428
117331
|
var getPathWithoutExt = (filename) => {
|
|
117429
117332
|
const extname = _path.default.extname(filename);
|
|
117430
117333
|
return filename.slice(0, -extname.length);
|
|
@@ -117454,14 +117357,10 @@ var require_runtimeExports = __commonJS({
|
|
|
117454
117357
|
enumerable: true,
|
|
117455
117358
|
get: () => createRuntimeExportsUtils
|
|
117456
117359
|
});
|
|
117457
|
-
var
|
|
117360
|
+
var _interop_require_default = require_interop_require_default();
|
|
117361
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117458
117362
|
var _compiled = require_compiled();
|
|
117459
117363
|
var _path1 = require_path();
|
|
117460
|
-
function _interop_require_default(obj) {
|
|
117461
|
-
return obj && obj.__esModule ? obj : {
|
|
117462
|
-
default: obj
|
|
117463
|
-
};
|
|
117464
|
-
}
|
|
117465
117364
|
var memo = (fn) => {
|
|
117466
117365
|
const cache = /* @__PURE__ */ new Map();
|
|
117467
117366
|
return (...params) => {
|
|
@@ -117538,13 +117437,9 @@ var require_watch = __commonJS({
|
|
|
117538
117437
|
WatchChangeType: () => WatchChangeType,
|
|
117539
117438
|
watch: () => watch
|
|
117540
117439
|
});
|
|
117541
|
-
var
|
|
117440
|
+
var _interop_require_default = require_interop_require_default();
|
|
117441
|
+
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117542
117442
|
var _compiled = require_compiled();
|
|
117543
|
-
function _interop_require_default(obj) {
|
|
117544
|
-
return obj && obj.__esModule ? obj : {
|
|
117545
|
-
default: obj
|
|
117546
|
-
};
|
|
117547
|
-
}
|
|
117548
117443
|
var WatchChangeType = {
|
|
117549
117444
|
ADD: "add",
|
|
117550
117445
|
UNLINK: "unlink",
|
|
@@ -117594,43 +117489,30 @@ var require_cli = __commonJS({
|
|
|
117594
117489
|
Object.defineProperty(exports, "__esModule", {
|
|
117595
117490
|
value: true
|
|
117596
117491
|
});
|
|
117597
|
-
_export_star(
|
|
117598
|
-
_export_star(
|
|
117599
|
-
_export_star(
|
|
117600
|
-
_export_star(
|
|
117601
|
-
_export_star(
|
|
117602
|
-
_export_star(
|
|
117603
|
-
_export_star(
|
|
117604
|
-
_export_star(
|
|
117605
|
-
_export_star(
|
|
117606
|
-
_export_star(
|
|
117607
|
-
_export_star(
|
|
117608
|
-
_export_star(require_logger2(), exports);
|
|
117609
|
-
_export_star(require_monorepo(), exports);
|
|
117610
|
-
_export_star(require_package4(), exports);
|
|
117611
|
-
_export_star(require_path(), exports);
|
|
117612
|
-
_export_star(require_pathSerializer(), exports);
|
|
117613
|
-
_export_star(require_port(), exports);
|
|
117614
|
-
_export_star(require_prettyInstructions(), exports);
|
|
117615
|
-
_export_star(require_print(), exports);
|
|
117616
|
-
_export_star(require_require(), exports);
|
|
117617
|
-
_export_star(require_routes(), exports);
|
|
117618
|
-
_export_star(require_runtimeExports(), exports);
|
|
117619
|
-
_export_star(require_test(), exports);
|
|
117620
|
-
_export_star(require_watch(), exports);
|
|
117621
|
-
function _export_star(from, to) {
|
|
117622
|
-
Object.keys(from).forEach(function(k) {
|
|
117623
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117624
|
-
Object.defineProperty(to, k, {
|
|
117625
|
-
enumerable: true,
|
|
117626
|
-
get: function() {
|
|
117627
|
-
return from[k];
|
|
117628
|
-
}
|
|
117629
|
-
});
|
|
117630
|
-
}
|
|
117631
|
-
});
|
|
117632
|
-
return from;
|
|
117633
|
-
}
|
|
117492
|
+
var _export_star = require_export_star();
|
|
117493
|
+
_export_star._(require_constants(), exports);
|
|
117494
|
+
_export_star._(require_get2(), exports);
|
|
117495
|
+
_export_star._(require_is(), exports);
|
|
117496
|
+
_export_star._(require_alias(), exports);
|
|
117497
|
+
_export_star._(require_applyOptionsChain(), exports);
|
|
117498
|
+
_export_star._(require_babel(), exports);
|
|
117499
|
+
_export_star._(require_commands(), exports);
|
|
117500
|
+
_export_star._(require_common3(), exports);
|
|
117501
|
+
_export_star._(require_ensure(), exports);
|
|
117502
|
+
_export_star._(require_fs(), exports);
|
|
117503
|
+
_export_star._(require_logger2(), exports);
|
|
117504
|
+
_export_star._(require_monorepo(), exports);
|
|
117505
|
+
_export_star._(require_package4(), exports);
|
|
117506
|
+
_export_star._(require_path(), exports);
|
|
117507
|
+
_export_star._(require_pathSerializer(), exports);
|
|
117508
|
+
_export_star._(require_port(), exports);
|
|
117509
|
+
_export_star._(require_prettyInstructions(), exports);
|
|
117510
|
+
_export_star._(require_print(), exports);
|
|
117511
|
+
_export_star._(require_require(), exports);
|
|
117512
|
+
_export_star._(require_routes(), exports);
|
|
117513
|
+
_export_star._(require_runtimeExports(), exports);
|
|
117514
|
+
_export_star._(require_test(), exports);
|
|
117515
|
+
_export_star._(require_watch(), exports);
|
|
117634
117516
|
}
|
|
117635
117517
|
});
|
|
117636
117518
|
|
|
@@ -117641,22 +117523,10 @@ var require_cjs2 = __commonJS({
|
|
|
117641
117523
|
Object.defineProperty(exports, "__esModule", {
|
|
117642
117524
|
value: true
|
|
117643
117525
|
});
|
|
117644
|
-
_export_star(
|
|
117645
|
-
_export_star(
|
|
117646
|
-
_export_star(
|
|
117647
|
-
|
|
117648
|
-
Object.keys(from).forEach(function(k) {
|
|
117649
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
117650
|
-
Object.defineProperty(to, k, {
|
|
117651
|
-
enumerable: true,
|
|
117652
|
-
get: function() {
|
|
117653
|
-
return from[k];
|
|
117654
|
-
}
|
|
117655
|
-
});
|
|
117656
|
-
}
|
|
117657
|
-
});
|
|
117658
|
-
return from;
|
|
117659
|
-
}
|
|
117526
|
+
var _export_star = require_export_star();
|
|
117527
|
+
_export_star._(require_compiled(), exports);
|
|
117528
|
+
_export_star._(require_cli(), exports);
|
|
117529
|
+
_export_star._(require_import(), exports);
|
|
117660
117530
|
}
|
|
117661
117531
|
});
|
|
117662
117532
|
|
|
@@ -117712,11 +117582,11 @@ var mime = Import.lazy("../compiled/mime-types", require);
|
|
|
117712
117582
|
var chokidar = Import.lazy("../compiled/chokidar", require);
|
|
117713
117583
|
var inquirer = Import.lazy("../compiled/inquirer", require);
|
|
117714
117584
|
|
|
117715
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
117585
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
117716
117586
|
var import_lodash6 = __toESM(require_lodash2());
|
|
117717
117587
|
var import_comment_json = __toESM(require_src2());
|
|
117718
117588
|
|
|
117719
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117589
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/env.js
|
|
117720
117590
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
117721
117591
|
try {
|
|
117722
117592
|
var info = gen[key](arg);
|
|
@@ -118024,7 +117894,7 @@ function _canUsePnpm() {
|
|
|
118024
117894
|
return _canUsePnpm.apply(this, arguments);
|
|
118025
117895
|
}
|
|
118026
117896
|
|
|
118027
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
117897
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/utils/install.js
|
|
118028
117898
|
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118029
117899
|
try {
|
|
118030
117900
|
var info = gen[key](arg);
|
|
@@ -118391,7 +118261,7 @@ function _pnpmInstall() {
|
|
|
118391
118261
|
return _pnpmInstall.apply(this, arguments);
|
|
118392
118262
|
}
|
|
118393
118263
|
|
|
118394
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.
|
|
118264
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.2.3/node_modules/@modern-js/codesmith-api-npm/dist/esm/index.js
|
|
118395
118265
|
function _class_call_check(instance, Constructor) {
|
|
118396
118266
|
if (!(instance instanceof Constructor)) {
|
|
118397
118267
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -118472,7 +118342,7 @@ var NpmAPI = /* @__PURE__ */ function() {
|
|
|
118472
118342
|
return NpmAPI2;
|
|
118473
118343
|
}();
|
|
118474
118344
|
|
|
118475
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118345
|
+
// ../../../../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
|
|
118476
118346
|
function asyncGeneratorStep3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118477
118347
|
try {
|
|
118478
118348
|
var info = gen[key](arg);
|
|
@@ -118814,7 +118684,7 @@ function _gitCommit() {
|
|
|
118814
118684
|
return _gitCommit.apply(this, arguments);
|
|
118815
118685
|
}
|
|
118816
118686
|
|
|
118817
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.2.
|
|
118687
|
+
// ../../../../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
|
|
118818
118688
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
118819
118689
|
try {
|
|
118820
118690
|
var info = gen[key](arg);
|
|
@@ -119145,11 +119015,11 @@ var GitAPI = /* @__PURE__ */ function() {
|
|
|
119145
119015
|
return GitAPI2;
|
|
119146
119016
|
}();
|
|
119147
119017
|
|
|
119148
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119018
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/materials/FsResource.js
|
|
119149
119019
|
var import_path = __toESM(require("path"));
|
|
119150
119020
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
119151
119021
|
|
|
119152
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.
|
|
119022
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.2.3/node_modules/@modern-js/codesmith/dist/esm/utils/fsExists.js
|
|
119153
119023
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119154
119024
|
try {
|
|
119155
119025
|
var info = gen[key](arg);
|
|
@@ -119322,7 +119192,7 @@ function _fsExists() {
|
|
|
119322
119192
|
return _fsExists.apply(this, arguments);
|
|
119323
119193
|
}
|
|
119324
119194
|
|
|
119325
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119195
|
+
// ../../../../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
|
|
119326
119196
|
var import_handlebars = __toESM(require_lib());
|
|
119327
119197
|
function _define_property4(obj, key, value) {
|
|
119328
119198
|
if (key in obj) {
|
|
@@ -119364,7 +119234,7 @@ function renderString(template, fullData, registers) {
|
|
|
119364
119234
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
119365
119235
|
}
|
|
119366
119236
|
|
|
119367
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.2.
|
|
119237
|
+
// ../../../../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
|
|
119368
119238
|
function asyncGeneratorStep6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119369
119239
|
try {
|
|
119370
119240
|
var info = gen[key](arg);
|
|
@@ -119682,13 +119552,13 @@ var HandlebarsAPI = /* @__PURE__ */ function() {
|
|
|
119682
119552
|
return HandlebarsAPI2;
|
|
119683
119553
|
}();
|
|
119684
119554
|
|
|
119685
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119555
|
+
// ../../../../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
|
|
119686
119556
|
var import_ejs = __toESM(require_ejs());
|
|
119687
119557
|
function renderString2(template, fullData) {
|
|
119688
119558
|
return import_ejs.default.render(template, fullData) || "";
|
|
119689
119559
|
}
|
|
119690
119560
|
|
|
119691
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.2.
|
|
119561
|
+
// ../../../../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
|
|
119692
119562
|
function asyncGeneratorStep7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119693
119563
|
try {
|
|
119694
119564
|
var info = gen[key](arg);
|
|
@@ -119958,24 +119828,8 @@ var EjsAPI = /* @__PURE__ */ function() {
|
|
|
119958
119828
|
return EjsAPI2;
|
|
119959
119829
|
}();
|
|
119960
119830
|
|
|
119961
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.2.
|
|
119831
|
+
// ../../../../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
|
|
119962
119832
|
var import_path2 = __toESM(require("path"));
|
|
119963
|
-
|
|
119964
|
-
// ../../../../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
|
|
119965
|
-
var imageExtNameList = [
|
|
119966
|
-
".jpg",
|
|
119967
|
-
".jpeg",
|
|
119968
|
-
".png",
|
|
119969
|
-
".gif",
|
|
119970
|
-
".bmp",
|
|
119971
|
-
".ico",
|
|
119972
|
-
".icon",
|
|
119973
|
-
".mpt",
|
|
119974
|
-
".psd",
|
|
119975
|
-
".wmf"
|
|
119976
|
-
];
|
|
119977
|
-
|
|
119978
|
-
// ../../../../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
|
|
119979
119833
|
function asyncGeneratorStep8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
119980
119834
|
try {
|
|
119981
119835
|
var info = gen[key](arg);
|
|
@@ -120155,48 +120009,26 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120155
120009
|
value: function renderFile(resource, target) {
|
|
120156
120010
|
var _this = this;
|
|
120157
120011
|
return _async_to_generator8(function() {
|
|
120158
|
-
var
|
|
120012
|
+
var filePath;
|
|
120159
120013
|
return __generator8(this, function(_state) {
|
|
120160
120014
|
switch (_state.label) {
|
|
120161
120015
|
case 0:
|
|
120162
120016
|
if (resource._type !== FS_RESOURCE) {
|
|
120163
120017
|
throw new Error("resource not match");
|
|
120164
120018
|
}
|
|
120019
|
+
filePath = import_path2.default.resolve(_this.generatorCore.outputPath, target.toString());
|
|
120165
120020
|
return [
|
|
120166
120021
|
4,
|
|
120167
|
-
|
|
120022
|
+
import_fs_extra.default.mkdirp(import_path2.default.dirname(filePath))
|
|
120168
120023
|
];
|
|
120169
120024
|
case 1:
|
|
120170
|
-
resourceValue = _state.sent();
|
|
120171
|
-
resourceFileExt = import_path2.default.extname(resource.filePath);
|
|
120172
|
-
if (!imageExtNameList.includes(resourceFileExt))
|
|
120173
|
-
return [
|
|
120174
|
-
3,
|
|
120175
|
-
3
|
|
120176
|
-
];
|
|
120177
|
-
return [
|
|
120178
|
-
4,
|
|
120179
|
-
_this.generatorCore.output.fs(target, resourceValue.content, {
|
|
120180
|
-
encoding: "binary"
|
|
120181
|
-
})
|
|
120182
|
-
];
|
|
120183
|
-
case 2:
|
|
120184
120025
|
_state.sent();
|
|
120185
|
-
return [
|
|
120186
|
-
3,
|
|
120187
|
-
5
|
|
120188
|
-
];
|
|
120189
|
-
case 3:
|
|
120190
120026
|
return [
|
|
120191
120027
|
4,
|
|
120192
|
-
|
|
120193
|
-
encoding: "utf-8"
|
|
120194
|
-
})
|
|
120028
|
+
import_fs_extra.default.copyFile(resource.filePath, filePath)
|
|
120195
120029
|
];
|
|
120196
|
-
case
|
|
120030
|
+
case 2:
|
|
120197
120031
|
_state.sent();
|
|
120198
|
-
_state.label = 5;
|
|
120199
|
-
case 5:
|
|
120200
120032
|
return [
|
|
120201
120033
|
2
|
|
120202
120034
|
];
|
|
@@ -120259,7 +120091,7 @@ var FsAPI = /* @__PURE__ */ function() {
|
|
|
120259
120091
|
return FsAPI2;
|
|
120260
120092
|
}();
|
|
120261
120093
|
|
|
120262
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120094
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
120263
120095
|
var toString = Object.prototype.toString;
|
|
120264
120096
|
var isType = function(type) {
|
|
120265
120097
|
return function(obj) {
|
|
@@ -120285,7 +120117,7 @@ var isObj = function(val) {
|
|
|
120285
120117
|
};
|
|
120286
120118
|
var isRegExp = isType("RegExp");
|
|
120287
120119
|
|
|
120288
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120120
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/array.js
|
|
120289
120121
|
var toArr = function(val) {
|
|
120290
120122
|
return isArr(val) ? val : val ? [val] : [];
|
|
120291
120123
|
};
|
|
@@ -120336,7 +120168,7 @@ function reduce(val, iterator, accumulator, revert) {
|
|
|
120336
120168
|
return result;
|
|
120337
120169
|
}
|
|
120338
120170
|
|
|
120339
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120171
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/global.js
|
|
120340
120172
|
function globalSelf() {
|
|
120341
120173
|
try {
|
|
120342
120174
|
if (typeof self !== "undefined") {
|
|
@@ -120360,7 +120192,7 @@ function globalSelf() {
|
|
|
120360
120192
|
}
|
|
120361
120193
|
var globalThisPolyfill = globalSelf();
|
|
120362
120194
|
|
|
120363
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120195
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/instanceof.js
|
|
120364
120196
|
var instOf = function(value, cls) {
|
|
120365
120197
|
if (isFn(cls))
|
|
120366
120198
|
return value instanceof cls;
|
|
@@ -120369,7 +120201,7 @@ var instOf = function(value, cls) {
|
|
|
120369
120201
|
return false;
|
|
120370
120202
|
};
|
|
120371
120203
|
|
|
120372
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120204
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/compare.js
|
|
120373
120205
|
var isArray = isArr;
|
|
120374
120206
|
var keyList = Object.keys;
|
|
120375
120207
|
var hasProp = Object.prototype.hasOwnProperty;
|
|
@@ -120476,7 +120308,7 @@ var isEqual = function exportedEqual(a, b) {
|
|
|
120476
120308
|
}
|
|
120477
120309
|
};
|
|
120478
120310
|
|
|
120479
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120311
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/clone.js
|
|
120480
120312
|
var clone = function(values) {
|
|
120481
120313
|
if (Array.isArray(values)) {
|
|
120482
120314
|
var res_1 = [];
|
|
@@ -120512,7 +120344,7 @@ var clone = function(values) {
|
|
|
120512
120344
|
}
|
|
120513
120345
|
};
|
|
120514
120346
|
|
|
120515
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120347
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/isEmpty.js
|
|
120516
120348
|
var has = Object.prototype.hasOwnProperty;
|
|
120517
120349
|
var toString2 = Object.prototype.toString;
|
|
120518
120350
|
var isUndef = function(val) {
|
|
@@ -120640,7 +120472,7 @@ function pascalCase(input, options) {
|
|
|
120640
120472
|
return noCase(input, __assign({ delimiter: "", transform: pascalCaseTransform }, options));
|
|
120641
120473
|
}
|
|
120642
120474
|
|
|
120643
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
120475
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/string.js
|
|
120644
120476
|
var ansiRegex = function() {
|
|
120645
120477
|
var pattern = [
|
|
120646
120478
|
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)",
|
|
@@ -120659,7 +120491,7 @@ var stringLength = function(input) {
|
|
|
120659
120491
|
return stripAnsi(input).replace(astralRegex(), " ").length;
|
|
120660
120492
|
};
|
|
120661
120493
|
|
|
120662
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120494
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/contexts.js
|
|
120663
120495
|
var __assign2 = function() {
|
|
120664
120496
|
__assign2 = Object.assign || function(t) {
|
|
120665
120497
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120682,7 +120514,7 @@ var parenContext = ContextType("()");
|
|
|
120682
120514
|
var braceContext = ContextType("{}");
|
|
120683
120515
|
var destructorContext = ContextType("{x}");
|
|
120684
120516
|
|
|
120685
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120517
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokens.js
|
|
120686
120518
|
var __assign3 = function() {
|
|
120687
120519
|
__assign3 = Object.assign || function(t) {
|
|
120688
120520
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -120850,7 +120682,7 @@ var expandTok = TokenType("expandTok", {
|
|
|
120850
120682
|
});
|
|
120851
120683
|
var eofTok = TokenType("eof");
|
|
120852
120684
|
|
|
120853
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120685
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/tokenizer.js
|
|
120854
120686
|
var nonASCIIWhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
120855
120687
|
var fullCharCodeAtPos = function(input, pos) {
|
|
120856
120688
|
if (String.fromCharCode)
|
|
@@ -121102,7 +120934,7 @@ var Tokenizer = (
|
|
|
121102
120934
|
}()
|
|
121103
120935
|
);
|
|
121104
120936
|
|
|
121105
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120937
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/types.js
|
|
121106
120938
|
var isType2 = function(type) {
|
|
121107
120939
|
return function(obj) {
|
|
121108
120940
|
return obj && obj.type === type;
|
|
@@ -121120,7 +120952,7 @@ var isObjectPattern = isType2("ObjectPattern");
|
|
|
121120
120952
|
var isObjectPatternProperty = isType2("ObjectPatternProperty");
|
|
121121
120953
|
var isArrayPattern = isType2("ArrayPattern");
|
|
121122
120954
|
|
|
121123
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
120955
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/shared.js
|
|
121124
120956
|
var toString3 = Object.prototype.toString;
|
|
121125
120957
|
var isType3 = function(type) {
|
|
121126
120958
|
return function(obj) {
|
|
@@ -121197,7 +121029,7 @@ var isSegmentEqual = function(a, b) {
|
|
|
121197
121029
|
return a === b;
|
|
121198
121030
|
};
|
|
121199
121031
|
|
|
121200
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121032
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/destructor.js
|
|
121201
121033
|
var DestructorCache = /* @__PURE__ */ new Map();
|
|
121202
121034
|
var isValid2 = function(val) {
|
|
121203
121035
|
return val !== void 0 && val !== null;
|
|
@@ -121315,7 +121147,7 @@ var existInByDestructor = function(source, rules, start, mutators) {
|
|
|
121315
121147
|
});
|
|
121316
121148
|
};
|
|
121317
121149
|
|
|
121318
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121150
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/parser.js
|
|
121319
121151
|
var __extends = function() {
|
|
121320
121152
|
var extendStatics = function(d, b) {
|
|
121321
121153
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -121706,7 +121538,7 @@ var Parser = (
|
|
|
121706
121538
|
}(Tokenizer)
|
|
121707
121539
|
);
|
|
121708
121540
|
|
|
121709
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121541
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/matcher.js
|
|
121710
121542
|
var Matcher = (
|
|
121711
121543
|
/** @class */
|
|
121712
121544
|
function() {
|
|
@@ -121888,7 +121720,7 @@ var Matcher = (
|
|
|
121888
121720
|
}()
|
|
121889
121721
|
);
|
|
121890
121722
|
|
|
121891
|
-
// ../../../../node_modules/.pnpm/@formily+path@2.2.
|
|
121723
|
+
// ../../../../node_modules/.pnpm/@formily+path@2.2.24/node_modules/@formily/path/esm/index.js
|
|
121892
121724
|
var __read = function(o, n) {
|
|
121893
121725
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
121894
121726
|
if (!m)
|
|
@@ -122442,7 +122274,7 @@ var Path = (
|
|
|
122442
122274
|
}()
|
|
122443
122275
|
);
|
|
122444
122276
|
|
|
122445
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122277
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/subscribable.js
|
|
122446
122278
|
var Subscribable = (
|
|
122447
122279
|
/** @class */
|
|
122448
122280
|
function() {
|
|
@@ -122494,7 +122326,7 @@ var Subscribable = (
|
|
|
122494
122326
|
}()
|
|
122495
122327
|
);
|
|
122496
122328
|
|
|
122497
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122329
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/merge.js
|
|
122498
122330
|
function defaultIsMergeableObject(value) {
|
|
122499
122331
|
return isNonNullObject(value) && !isSpecial(value);
|
|
122500
122332
|
}
|
|
@@ -122687,7 +122519,7 @@ var lazyMerge = function(target) {
|
|
|
122687
122519
|
};
|
|
122688
122520
|
var merge = deepmerge;
|
|
122689
122521
|
|
|
122690
|
-
// ../../../../node_modules/.pnpm/@formily+shared@2.2.
|
|
122522
|
+
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/uid.js
|
|
122691
122523
|
var IDX = 36;
|
|
122692
122524
|
var HEX = "";
|
|
122693
122525
|
while (IDX--)
|
|
@@ -122699,7 +122531,7 @@ function uid(len) {
|
|
|
122699
122531
|
return str;
|
|
122700
122532
|
}
|
|
122701
122533
|
|
|
122702
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122534
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/checkers.js
|
|
122703
122535
|
var toString4 = Object.prototype.toString;
|
|
122704
122536
|
var isMap = function(val) {
|
|
122705
122537
|
return val && val instanceof Map;
|
|
@@ -122730,7 +122562,7 @@ var isNormalType = function(target) {
|
|
|
122730
122562
|
return isPlainObj3(target) || isArr3(target);
|
|
122731
122563
|
};
|
|
122732
122564
|
|
|
122733
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122565
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/array.js
|
|
122734
122566
|
var toArray = function(value) {
|
|
122735
122567
|
return Array.isArray(value) ? value : value !== void 0 && value !== null ? [value] : [];
|
|
122736
122568
|
};
|
|
@@ -122794,7 +122626,7 @@ var ArraySet = (
|
|
|
122794
122626
|
}()
|
|
122795
122627
|
);
|
|
122796
122628
|
|
|
122797
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122629
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/environment.js
|
|
122798
122630
|
var ProxyRaw = /* @__PURE__ */ new WeakMap();
|
|
122799
122631
|
var RawProxy = /* @__PURE__ */ new WeakMap();
|
|
122800
122632
|
var RawShallowProxy = /* @__PURE__ */ new WeakMap();
|
|
@@ -122813,7 +122645,7 @@ var MakeObModelSymbol = Symbol("MakeObModelSymbol");
|
|
|
122813
122645
|
var ObModelSymbol = Symbol("ObModelSymbol");
|
|
122814
122646
|
var ObModelNodeSymbol = Symbol("ObModelNodeSymbol");
|
|
122815
122647
|
|
|
122816
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122648
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/reaction.js
|
|
122817
122649
|
var ITERATION_KEY = Symbol("iteration key");
|
|
122818
122650
|
var addRawReactionsMap = function(target, key, reaction2) {
|
|
122819
122651
|
var reactionsMap = RawReactionsMap.get(target);
|
|
@@ -123043,7 +122875,7 @@ var disposeEffects = function(reaction2) {
|
|
|
123043
122875
|
}
|
|
123044
122876
|
};
|
|
123045
122877
|
|
|
123046
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122878
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tree.js
|
|
123047
122879
|
var DataChange = (
|
|
123048
122880
|
/** @class */
|
|
123049
122881
|
function() {
|
|
@@ -123139,7 +122971,7 @@ var buildDataTree = function(target, key, value) {
|
|
|
123139
122971
|
setDataNode(raw2, new DataNode(target, key, value));
|
|
123140
122972
|
};
|
|
123141
122973
|
|
|
123142
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
122974
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/externals.js
|
|
123143
122975
|
var RAW_TYPE = Symbol("RAW_TYPE");
|
|
123144
122976
|
var OBSERVABLE_TYPE = Symbol("OBSERVABLE_TYPE");
|
|
123145
122977
|
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
@@ -123241,7 +123073,7 @@ var hasCollected = function(callback) {
|
|
|
123241
123073
|
return DependencyCollected.value;
|
|
123242
123074
|
};
|
|
123243
123075
|
|
|
123244
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123076
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/handlers.js
|
|
123245
123077
|
var __read2 = function(o, n) {
|
|
123246
123078
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
123247
123079
|
if (!m)
|
|
@@ -123497,7 +123329,7 @@ var baseHandlers = {
|
|
|
123497
123329
|
}
|
|
123498
123330
|
};
|
|
123499
123331
|
|
|
123500
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123332
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/internals.js
|
|
123501
123333
|
var createNormalProxy = function(target, shallow2) {
|
|
123502
123334
|
var proxy = new Proxy(target, baseHandlers);
|
|
123503
123335
|
ProxyRaw.set(proxy, target);
|
|
@@ -123612,7 +123444,7 @@ var createBoundaryAnnotation = function(start, end) {
|
|
|
123612
123444
|
return boundary;
|
|
123613
123445
|
};
|
|
123614
123446
|
|
|
123615
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123447
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/batch.js
|
|
123616
123448
|
var batch = createBoundaryAnnotation(batchStart, batchEnd);
|
|
123617
123449
|
batch.scope = createBoundaryAnnotation(batchScopeStart, batchScopeEnd);
|
|
123618
123450
|
batch.endpoint = function(callback) {
|
|
@@ -123625,7 +123457,7 @@ batch.endpoint = function(callback) {
|
|
|
123625
123457
|
}
|
|
123626
123458
|
};
|
|
123627
123459
|
|
|
123628
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123460
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/action.js
|
|
123629
123461
|
var action = createBoundaryAnnotation(function() {
|
|
123630
123462
|
batchStart();
|
|
123631
123463
|
untrackStart();
|
|
@@ -123641,10 +123473,10 @@ action.scope = createBoundaryAnnotation(function() {
|
|
|
123641
123473
|
batchScopeEnd();
|
|
123642
123474
|
});
|
|
123643
123475
|
|
|
123644
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123476
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/untracked.js
|
|
123645
123477
|
var untracked = createBoundaryFunction(untrackStart, untrackEnd);
|
|
123646
123478
|
|
|
123647
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123479
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/observable.js
|
|
123648
123480
|
var observable = createAnnotation(function(_a2) {
|
|
123649
123481
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123650
123482
|
var store = {
|
|
@@ -123684,7 +123516,7 @@ var observable = createAnnotation(function(_a2) {
|
|
|
123684
123516
|
return store.value;
|
|
123685
123517
|
});
|
|
123686
123518
|
|
|
123687
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123519
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/box.js
|
|
123688
123520
|
var box = createAnnotation(function(_a2) {
|
|
123689
123521
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123690
123522
|
var store = {
|
|
@@ -123730,7 +123562,7 @@ var box = createAnnotation(function(_a2) {
|
|
|
123730
123562
|
return proxy;
|
|
123731
123563
|
});
|
|
123732
123564
|
|
|
123733
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123565
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/ref.js
|
|
123734
123566
|
var ref = createAnnotation(function(_a2) {
|
|
123735
123567
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123736
123568
|
var store = {
|
|
@@ -123778,7 +123610,7 @@ var ref = createAnnotation(function(_a2) {
|
|
|
123778
123610
|
return proxy;
|
|
123779
123611
|
});
|
|
123780
123612
|
|
|
123781
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123613
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/shallow.js
|
|
123782
123614
|
var shallow = createAnnotation(function(_a2) {
|
|
123783
123615
|
var target = _a2.target, key = _a2.key, value = _a2.value;
|
|
123784
123616
|
var store = {
|
|
@@ -123818,7 +123650,7 @@ var shallow = createAnnotation(function(_a2) {
|
|
|
123818
123650
|
return store.value;
|
|
123819
123651
|
});
|
|
123820
123652
|
|
|
123821
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123653
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/annotations/computed.js
|
|
123822
123654
|
var getDescriptor = Object.getOwnPropertyDescriptor;
|
|
123823
123655
|
var getProto = Object.getPrototypeOf;
|
|
123824
123656
|
var ClassDescriptorSymbol = Symbol("ClassDescriptorSymbol");
|
|
@@ -123939,7 +123771,7 @@ var computed = createAnnotation(function(_a2) {
|
|
|
123939
123771
|
return proxy;
|
|
123940
123772
|
});
|
|
123941
123773
|
|
|
123942
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123774
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observable.js
|
|
123943
123775
|
function observable2(target) {
|
|
123944
123776
|
return createObservable(null, null, target);
|
|
123945
123777
|
}
|
|
@@ -123950,7 +123782,7 @@ observable2.shallow = shallow;
|
|
|
123950
123782
|
observable2.computed = computed;
|
|
123951
123783
|
observable2[MakeObModelSymbol] = observable;
|
|
123952
123784
|
|
|
123953
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123785
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/model.js
|
|
123954
123786
|
function define2(target, annotations) {
|
|
123955
123787
|
if (isObservable(target))
|
|
123956
123788
|
return target;
|
|
@@ -123970,7 +123802,7 @@ function define2(target, annotations) {
|
|
|
123970
123802
|
return target;
|
|
123971
123803
|
}
|
|
123972
123804
|
|
|
123973
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123805
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/autorun.js
|
|
123974
123806
|
var __assign4 = function() {
|
|
123975
123807
|
__assign4 = Object.assign || function(t) {
|
|
123976
123808
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -124116,7 +123948,7 @@ var reaction = function(tracker, subscriber, options) {
|
|
|
124116
123948
|
};
|
|
124117
123949
|
};
|
|
124118
123950
|
|
|
124119
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123951
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/tracker.js
|
|
124120
123952
|
var Tracker = (
|
|
124121
123953
|
/** @class */
|
|
124122
123954
|
function() {
|
|
@@ -124161,7 +123993,7 @@ var Tracker = (
|
|
|
124161
123993
|
}()
|
|
124162
123994
|
);
|
|
124163
123995
|
|
|
124164
|
-
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.
|
|
123996
|
+
// ../../../../node_modules/.pnpm/@formily+reactive@2.2.24/node_modules/@formily/reactive/esm/observe.js
|
|
124165
123997
|
var observe = function(target, observer, deep) {
|
|
124166
123998
|
if (deep === void 0) {
|
|
124167
123999
|
deep = true;
|
|
@@ -124194,7 +124026,7 @@ var observe = function(target, observer, deep) {
|
|
|
124194
124026
|
return addListener(target);
|
|
124195
124027
|
};
|
|
124196
124028
|
|
|
124197
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124029
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/shared.js
|
|
124198
124030
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
124199
124031
|
var SchemaNestedMap = {
|
|
124200
124032
|
parent: true,
|
|
@@ -124381,7 +124213,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
124381
124213
|
});
|
|
124382
124214
|
};
|
|
124383
124215
|
|
|
124384
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
124216
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/compiler.js
|
|
124385
124217
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
124386
124218
|
var Registry = {
|
|
124387
124219
|
silent: false,
|
|
@@ -124485,7 +124317,7 @@ var patchSchemaCompile = function(targetState, sourceSchema, scope, demand) {
|
|
|
124485
124317
|
});
|
|
124486
124318
|
};
|
|
124487
124319
|
|
|
124488
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124320
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/LifeCycle.js
|
|
124489
124321
|
var LifeCycle = (
|
|
124490
124322
|
/** @class */
|
|
124491
124323
|
function() {
|
|
@@ -124531,7 +124363,7 @@ var LifeCycle = (
|
|
|
124531
124363
|
}()
|
|
124532
124364
|
);
|
|
124533
124365
|
|
|
124534
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124366
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Heart.js
|
|
124535
124367
|
var __extends2 = function() {
|
|
124536
124368
|
var extendStatics = function(d, b) {
|
|
124537
124369
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -124627,7 +124459,7 @@ var Heart = (
|
|
|
124627
124459
|
}(Subscribable)
|
|
124628
124460
|
);
|
|
124629
124461
|
|
|
124630
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124462
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/checkers.js
|
|
124631
124463
|
var isForm = function(node) {
|
|
124632
124464
|
return node instanceof Form;
|
|
124633
124465
|
};
|
|
@@ -124673,7 +124505,7 @@ var isQuery = function(query2) {
|
|
|
124673
124505
|
return query2 && query2 instanceof Query;
|
|
124674
124506
|
};
|
|
124675
124507
|
|
|
124676
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
124508
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Graph.js
|
|
124677
124509
|
var Graph = (
|
|
124678
124510
|
/** @class */
|
|
124679
124511
|
function() {
|
|
@@ -124725,12 +124557,12 @@ var Graph = (
|
|
|
124725
124557
|
}()
|
|
124726
124558
|
);
|
|
124727
124559
|
|
|
124728
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124560
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/types.js
|
|
124729
124561
|
var isValidateResult = function(obj) {
|
|
124730
124562
|
return !!obj["type"] && !!obj["message"];
|
|
124731
124563
|
};
|
|
124732
124564
|
|
|
124733
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124565
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/registry.js
|
|
124734
124566
|
var getIn2 = Path.getIn;
|
|
124735
124567
|
var self2 = globalThisPolyfill;
|
|
124736
124568
|
var defaultLanguage = "en";
|
|
@@ -124801,7 +124633,7 @@ var registerValidateFormats = function(formats) {
|
|
|
124801
124633
|
});
|
|
124802
124634
|
};
|
|
124803
124635
|
|
|
124804
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124636
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/template.js
|
|
124805
124637
|
var render = function(result, rules) {
|
|
124806
124638
|
var message = result.message;
|
|
124807
124639
|
if (isStr(result.message)) {
|
|
@@ -124816,7 +124648,7 @@ var render = function(result, rules) {
|
|
|
124816
124648
|
return result;
|
|
124817
124649
|
};
|
|
124818
124650
|
|
|
124819
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124651
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/parser.js
|
|
124820
124652
|
var __assign5 = function() {
|
|
124821
124653
|
__assign5 = Object.assign || function(t) {
|
|
124822
124654
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125067,7 +124899,7 @@ var parseValidator = function(validator, options) {
|
|
|
125067
124899
|
}, []);
|
|
125068
124900
|
};
|
|
125069
124901
|
|
|
125070
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
124902
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/locale.js
|
|
125071
124903
|
var locale_default = {
|
|
125072
124904
|
en: {
|
|
125073
124905
|
pattern: "This field is invalid",
|
|
@@ -125287,7 +125119,7 @@ var locale_default = {
|
|
|
125287
125119
|
}
|
|
125288
125120
|
};
|
|
125289
125121
|
|
|
125290
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125122
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/formats.js
|
|
125291
125123
|
var formats_default = {
|
|
125292
125124
|
url: new RegExp(
|
|
125293
125125
|
// protocol identifier
|
|
@@ -125307,7 +125139,7 @@ var formats_default = {
|
|
|
125307
125139
|
zip: /^[0-9]{6}$/
|
|
125308
125140
|
};
|
|
125309
125141
|
|
|
125310
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125142
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/rules.js
|
|
125311
125143
|
var __assign6 = function() {
|
|
125312
125144
|
__assign6 = Object.assign || function(t) {
|
|
125313
125145
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -125622,7 +125454,7 @@ extendSameRules(RULES, {
|
|
|
125622
125454
|
});
|
|
125623
125455
|
var rules_default = RULES;
|
|
125624
125456
|
|
|
125625
|
-
// ../../../../node_modules/.pnpm/@formily+validator@2.2.
|
|
125457
|
+
// ../../../../node_modules/.pnpm/@formily+validator@2.2.24/node_modules/@formily/validator/esm/validator.js
|
|
125626
125458
|
var __awaiter3 = function(thisArg, _arguments, P, generator) {
|
|
125627
125459
|
function adopt(value) {
|
|
125628
125460
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -125767,7 +125599,7 @@ var validate = function(value, validator, options) {
|
|
|
125767
125599
|
});
|
|
125768
125600
|
};
|
|
125769
125601
|
|
|
125770
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125602
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/types.js
|
|
125771
125603
|
var LifeCycleTypes;
|
|
125772
125604
|
(function(LifeCycleTypes2) {
|
|
125773
125605
|
LifeCycleTypes2["ON_FORM_INIT"] = "onFormInit";
|
|
@@ -125819,7 +125651,7 @@ var LifeCycleTypes;
|
|
|
125819
125651
|
LifeCycleTypes2["ON_FIELD_UNMOUNT"] = "onFieldUnmount";
|
|
125820
125652
|
})(LifeCycleTypes || (LifeCycleTypes = {}));
|
|
125821
125653
|
|
|
125822
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125654
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/constants.js
|
|
125823
125655
|
var ReservedProperties = {
|
|
125824
125656
|
form: true,
|
|
125825
125657
|
parent: true,
|
|
@@ -125871,7 +125703,7 @@ var GlobalState = {
|
|
|
125871
125703
|
};
|
|
125872
125704
|
var NumberIndexReg = /^\.(\d+)/;
|
|
125873
125705
|
|
|
125874
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
125706
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/internals.js
|
|
125875
125707
|
var __assign7 = function() {
|
|
125876
125708
|
__assign7 = Object.assign || function(t) {
|
|
125877
125709
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -126978,7 +126810,7 @@ var getObjectParent = function(field) {
|
|
|
126978
126810
|
}
|
|
126979
126811
|
};
|
|
126980
126812
|
|
|
126981
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126813
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Query.js
|
|
126982
126814
|
var output = function(field, taker) {
|
|
126983
126815
|
if (!field)
|
|
126984
126816
|
return;
|
|
@@ -127061,7 +126893,7 @@ var Query = (
|
|
|
127061
126893
|
}()
|
|
127062
126894
|
);
|
|
127063
126895
|
|
|
127064
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
126896
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/BaseField.js
|
|
127065
126897
|
var __read4 = function(o, n) {
|
|
127066
126898
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
127067
126899
|
if (!m)
|
|
@@ -127441,7 +127273,7 @@ var BaseField = (
|
|
|
127441
127273
|
}()
|
|
127442
127274
|
);
|
|
127443
127275
|
|
|
127444
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127276
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Field.js
|
|
127445
127277
|
var __extends3 = function() {
|
|
127446
127278
|
var extendStatics = function(d, b) {
|
|
127447
127279
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128082,7 +127914,7 @@ var Field = (
|
|
|
128082
127914
|
}(BaseField)
|
|
128083
127915
|
);
|
|
128084
127916
|
|
|
128085
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
127917
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/shared/effective.js
|
|
128086
127918
|
var __read5 = function(o, n) {
|
|
128087
127919
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
128088
127920
|
if (!m)
|
|
@@ -128176,7 +128008,7 @@ var runEffects = function(context) {
|
|
|
128176
128008
|
return GlobalState.lifecycles;
|
|
128177
128009
|
};
|
|
128178
128010
|
|
|
128179
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128011
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ArrayField.js
|
|
128180
128012
|
var __extends4 = function() {
|
|
128181
128013
|
var extendStatics = function(d, b) {
|
|
128182
128014
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128366,7 +128198,7 @@ var ArrayField = (
|
|
|
128366
128198
|
}(Field)
|
|
128367
128199
|
);
|
|
128368
128200
|
|
|
128369
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128201
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/ObjectField.js
|
|
128370
128202
|
var __extends5 = function() {
|
|
128371
128203
|
var extendStatics = function(d, b) {
|
|
128372
128204
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128427,7 +128259,7 @@ var ObjectField = (
|
|
|
128427
128259
|
}(Field)
|
|
128428
128260
|
);
|
|
128429
128261
|
|
|
128430
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128262
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/VoidField.js
|
|
128431
128263
|
var __extends6 = function() {
|
|
128432
128264
|
var extendStatics = function(d, b) {
|
|
128433
128265
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -128542,7 +128374,7 @@ var VoidField = (
|
|
|
128542
128374
|
}(BaseField)
|
|
128543
128375
|
);
|
|
128544
128376
|
|
|
128545
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128377
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/models/Form.js
|
|
128546
128378
|
var __assign8 = function() {
|
|
128547
128379
|
__assign8 = Object.assign || function(t) {
|
|
128548
128380
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129070,7 +128902,7 @@ var Form = (
|
|
|
129070
128902
|
}()
|
|
129071
128903
|
);
|
|
129072
128904
|
|
|
129073
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128905
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFormEffects.js
|
|
129074
128906
|
function createFormEffect(type) {
|
|
129075
128907
|
return createEffectHook(type, function(form) {
|
|
129076
128908
|
return function(callback) {
|
|
@@ -129103,7 +128935,7 @@ var onFormValidateEnd = createFormEffect(LifeCycleTypes.ON_FORM_VALIDATE_END);
|
|
|
129103
128935
|
var onFormGraphChange = createFormEffect(LifeCycleTypes.ON_FORM_GRAPH_CHANGE);
|
|
129104
128936
|
var onFormLoading = createFormEffect(LifeCycleTypes.ON_FORM_LOADING);
|
|
129105
128937
|
|
|
129106
|
-
// ../../../../node_modules/.pnpm/@formily+core@2.2.
|
|
128938
|
+
// ../../../../node_modules/.pnpm/@formily+core@2.2.24/node_modules/@formily/core/esm/effects/onFieldEffects.js
|
|
129107
128939
|
function createFieldEffect(type) {
|
|
129108
128940
|
return createEffectHook(type, function(field, form) {
|
|
129109
128941
|
return function(pattern, callback) {
|
|
@@ -129148,7 +128980,7 @@ function onFieldInit(pattern, callback) {
|
|
|
129148
128980
|
}
|
|
129149
128981
|
}
|
|
129150
128982
|
|
|
129151
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
128983
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/transformer.js
|
|
129152
128984
|
var __read7 = function(o, n) {
|
|
129153
128985
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
129154
128986
|
if (!m)
|
|
@@ -129373,7 +129205,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
129373
129205
|
};
|
|
129374
129206
|
};
|
|
129375
129207
|
|
|
129376
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129208
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/patches.js
|
|
129377
129209
|
var __assign9 = function() {
|
|
129378
129210
|
__assign9 = Object.assign || function(t) {
|
|
129379
129211
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129422,7 +129254,7 @@ var enablePolyfills = function(versions) {
|
|
|
129422
129254
|
}
|
|
129423
129255
|
};
|
|
129424
129256
|
|
|
129425
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129257
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
129426
129258
|
var __assign10 = function() {
|
|
129427
129259
|
__assign10 = Object.assign || function(t) {
|
|
129428
129260
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -129579,7 +129411,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
129579
129411
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
129580
129412
|
};
|
|
129581
129413
|
|
|
129582
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.
|
|
129414
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.0.4/node_modules/@formily/json-schema/esm/schema.js
|
|
129583
129415
|
var Schema = (
|
|
129584
129416
|
/** @class */
|
|
129585
129417
|
function() {
|
|
@@ -129815,10 +129647,10 @@ var Schema = (
|
|
|
129815
129647
|
}()
|
|
129816
129648
|
);
|
|
129817
129649
|
|
|
129818
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129650
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
129819
129651
|
var import_inquirer = __toESM(require_inquirer());
|
|
129820
129652
|
|
|
129821
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
129653
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/transform.js
|
|
129822
129654
|
var import_lodash2 = __toESM(require_lodash2());
|
|
129823
129655
|
function asyncGeneratorStep9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
129824
129656
|
try {
|
|
@@ -130165,7 +129997,7 @@ function transformForm(schema) {
|
|
|
130165
129997
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
130166
129998
|
}
|
|
130167
129999
|
|
|
130168
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130000
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/prompt.js
|
|
130169
130001
|
function asyncGeneratorStep10(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130170
130002
|
try {
|
|
130171
130003
|
var info = gen[key](arg);
|
|
@@ -130689,7 +130521,7 @@ function _prompt() {
|
|
|
130689
130521
|
return _prompt.apply(this, arguments);
|
|
130690
130522
|
}
|
|
130691
130523
|
|
|
130692
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.
|
|
130524
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-formily/dist/esm/inquirer.js
|
|
130693
130525
|
function asyncGeneratorStep11(gen, resolve, reject, _next, _throw, key, arg) {
|
|
130694
130526
|
try {
|
|
130695
130527
|
var info = gen[key](arg);
|
|
@@ -130929,7 +130761,7 @@ var CLIReader = /* @__PURE__ */ function() {
|
|
|
130929
130761
|
return CLIReader2;
|
|
130930
130762
|
}();
|
|
130931
130763
|
|
|
130932
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130764
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
130933
130765
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
130934
130766
|
|
|
130935
130767
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.18.0/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -131008,7 +130840,7 @@ var I18n = class {
|
|
|
131008
130840
|
}
|
|
131009
130841
|
};
|
|
131010
130842
|
|
|
131011
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130843
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/zh.js
|
|
131012
130844
|
var ZH_LOCALE = {
|
|
131013
130845
|
environment: {
|
|
131014
130846
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -131035,7 +130867,7 @@ var ZH_LOCALE = {
|
|
|
131035
130867
|
}
|
|
131036
130868
|
};
|
|
131037
130869
|
|
|
131038
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130870
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/en.js
|
|
131039
130871
|
var EN_LOCALE = {
|
|
131040
130872
|
environment: {
|
|
131041
130873
|
node_version: "please upgrade node to lts version",
|
|
@@ -131062,14 +130894,14 @@ var EN_LOCALE = {
|
|
|
131062
130894
|
}
|
|
131063
130895
|
};
|
|
131064
130896
|
|
|
131065
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130897
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/locale/index.js
|
|
131066
130898
|
var i18n = new I18n();
|
|
131067
130899
|
var localeKeys = i18n.init("zh", {
|
|
131068
130900
|
zh: ZH_LOCALE,
|
|
131069
130901
|
en: EN_LOCALE
|
|
131070
130902
|
});
|
|
131071
130903
|
|
|
131072
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
130904
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/transform.js
|
|
131073
130905
|
var import_lodash5 = __toESM(require_lodash2());
|
|
131074
130906
|
function asyncGeneratorStep12(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131075
130907
|
try {
|
|
@@ -131278,7 +131110,7 @@ function transformInquirerSchema(questions) {
|
|
|
131278
131110
|
return questions;
|
|
131279
131111
|
}
|
|
131280
131112
|
|
|
131281
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131113
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/utils/checkUseNvm.js
|
|
131282
131114
|
var import_path4 = __toESM(require("path"));
|
|
131283
131115
|
function asyncGeneratorStep13(gen, resolve, reject, _next, _throw, key, arg) {
|
|
131284
131116
|
try {
|
|
@@ -131542,7 +131374,7 @@ function _checkUseNvm() {
|
|
|
131542
131374
|
return _checkUseNvm.apply(this, arguments);
|
|
131543
131375
|
}
|
|
131544
131376
|
|
|
131545
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.
|
|
131377
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.2.3_bho3aw2byq52erp6eaxmeboo7i/node_modules/@modern-js/codesmith-api-app/dist/esm/index.js
|
|
131546
131378
|
function _array_like_to_array(arr, len) {
|
|
131547
131379
|
if (len == null || len > arr.length)
|
|
131548
131380
|
len = arr.length;
|
|
@@ -132123,7 +131955,7 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132123
131955
|
switch (_state2.label) {
|
|
132124
131956
|
case 0:
|
|
132125
131957
|
_this.generatorCore.logger.debug("[renderDir] resourceKey=".concat(resourceKey));
|
|
132126
|
-
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "");
|
|
131958
|
+
target = rename ? rename(resourceKey) : resourceKey.replace("templates/", "").replace(".handlebars", "").replace(".ejs", "");
|
|
132127
131959
|
return [
|
|
132128
131960
|
4,
|
|
132129
131961
|
api.renderTemplate(material.get(resourceKey), target, _object_spread7({}, _this.generatorContext.data || {}, parameters || {}))
|
|
@@ -132472,11 +132304,11 @@ var AppAPI = /* @__PURE__ */ function() {
|
|
|
132472
132304
|
return AppAPI2;
|
|
132473
132305
|
}();
|
|
132474
132306
|
|
|
132475
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132307
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132476
132308
|
var import_comment_json2 = __toESM(require_src2());
|
|
132477
132309
|
var declarationUpdate = __toESM(require_dist());
|
|
132478
132310
|
|
|
132479
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132311
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/utils/index.js
|
|
132480
132312
|
function asyncGeneratorStep15(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132481
132313
|
try {
|
|
132482
132314
|
var info = gen[key](arg);
|
|
@@ -132650,7 +132482,7 @@ function _editJson() {
|
|
|
132650
132482
|
return _editJson.apply(this, arguments);
|
|
132651
132483
|
}
|
|
132652
132484
|
|
|
132653
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.
|
|
132485
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.2.3/node_modules/@modern-js/codesmith-api-json/dist/esm/index.js
|
|
132654
132486
|
function asyncGeneratorStep16(gen, resolve, reject, _next, _throw, key, arg) {
|
|
132655
132487
|
try {
|
|
132656
132488
|
var info = gen[key](arg);
|
|
@@ -132944,6 +132776,15 @@ var JsonAPI = /* @__PURE__ */ function() {
|
|
|
132944
132776
|
return JsonAPI2;
|
|
132945
132777
|
}();
|
|
132946
132778
|
|
|
132779
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
|
|
132780
|
+
function _define_property14(obj, key, value) {
|
|
132781
|
+
if (key in obj) {
|
|
132782
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
132783
|
+
} else
|
|
132784
|
+
obj[key] = value;
|
|
132785
|
+
return obj;
|
|
132786
|
+
}
|
|
132787
|
+
|
|
132947
132788
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
132948
132789
|
var import_lodash8 = __toESM(require_lodash3());
|
|
132949
132790
|
|
|
@@ -132962,19 +132803,6 @@ function getObjKeyMap2(obj, prefix = "") {
|
|
|
132962
132803
|
}
|
|
132963
132804
|
|
|
132964
132805
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
132965
|
-
function _define_property14(obj, key, value) {
|
|
132966
|
-
if (key in obj) {
|
|
132967
|
-
Object.defineProperty(obj, key, {
|
|
132968
|
-
value,
|
|
132969
|
-
enumerable: true,
|
|
132970
|
-
configurable: true,
|
|
132971
|
-
writable: true
|
|
132972
|
-
});
|
|
132973
|
-
} else {
|
|
132974
|
-
obj[key] = value;
|
|
132975
|
-
}
|
|
132976
|
-
return obj;
|
|
132977
|
-
}
|
|
132978
132806
|
var I18n2 = class {
|
|
132979
132807
|
format(msg, vars) {
|
|
132980
132808
|
return msg.replace(/\{(\w+)\}/g, (_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture);
|
|
@@ -133224,14 +133052,14 @@ var localeKeys2 = i18n2.init("en", {
|
|
|
133224
133052
|
|
|
133225
133053
|
// ../../generator-utils/dist/esm/index.js
|
|
133226
133054
|
var import_path5 = __toESM(require("path"));
|
|
133227
|
-
var
|
|
133055
|
+
var import_utils16 = __toESM(require_cjs2());
|
|
133228
133056
|
|
|
133229
133057
|
// ../../generator-utils/dist/esm/utils/fsExist.js
|
|
133230
|
-
var
|
|
133058
|
+
var import_utils15 = __toESM(require_cjs2());
|
|
133231
133059
|
function fileExist(filePath) {
|
|
133232
133060
|
return __async(this, null, function* () {
|
|
133233
133061
|
try {
|
|
133234
|
-
const stat = yield
|
|
133062
|
+
const stat = yield import_utils15.fs.stat(filePath);
|
|
133235
133063
|
if (stat.isFile()) {
|
|
133236
133064
|
return true;
|
|
133237
133065
|
}
|
|
@@ -133243,9 +133071,9 @@ function fileExist(filePath) {
|
|
|
133243
133071
|
}
|
|
133244
133072
|
|
|
133245
133073
|
// ../../generator-utils/dist/esm/index.js
|
|
133246
|
-
var
|
|
133074
|
+
var import_utils17 = __toESM(require_cjs2());
|
|
133247
133075
|
function isTsProject(appDir) {
|
|
133248
|
-
return
|
|
133076
|
+
return import_utils16.fs.existsSync(import_path5.default.join(appDir, "tsconfig.json"));
|
|
133249
133077
|
}
|
|
133250
133078
|
function getModernConfigFile(appDir) {
|
|
133251
133079
|
return __async(this, null, function* () {
|
|
@@ -133308,7 +133136,7 @@ var handleTemplateFile = (context, generator) => __async(void 0, null, function*
|
|
|
133308
133136
|
);
|
|
133309
133137
|
}
|
|
133310
133138
|
const appDir = context.materials.default.basePath;
|
|
133311
|
-
const isTs =
|
|
133139
|
+
const isTs = import_utils17.fs.existsSync(
|
|
133312
133140
|
import_path6.default.join(appDir, projectPath || "", "tsconfig.json")
|
|
133313
133141
|
);
|
|
133314
133142
|
if (appendTypeContent && isTs) {
|
|
@@ -133318,15 +133146,15 @@ var handleTemplateFile = (context, generator) => __async(void 0, null, function*
|
|
|
133318
133146
|
"src",
|
|
133319
133147
|
sourceTypeFile || "modern-app-env.d.ts"
|
|
133320
133148
|
);
|
|
133321
|
-
if (
|
|
133322
|
-
const npmrc =
|
|
133149
|
+
if (import_utils17.fs.existsSync(typePath)) {
|
|
133150
|
+
const npmrc = import_utils17.fs.readFileSync(typePath, "utf-8");
|
|
133323
133151
|
if (!npmrc.includes(appendTypeContent)) {
|
|
133324
|
-
|
|
133152
|
+
import_utils17.fs.writeFileSync(typePath, `${appendTypeContent}
|
|
133325
133153
|
${npmrc}`, "utf-8");
|
|
133326
133154
|
}
|
|
133327
133155
|
} else {
|
|
133328
|
-
|
|
133329
|
-
|
|
133156
|
+
import_utils17.fs.ensureFileSync(typePath);
|
|
133157
|
+
import_utils17.fs.writeFileSync(typePath, appendTypeContent, "utf-8");
|
|
133330
133158
|
}
|
|
133331
133159
|
}
|
|
133332
133160
|
});
|
|
@@ -133354,28 +133182,28 @@ var src_default = (context, generator) => __async(void 0, null, function* () {
|
|
|
133354
133182
|
const isTS = configFile.endsWith("ts");
|
|
133355
133183
|
const { pluginName, pluginDependence } = context.config;
|
|
133356
133184
|
console.info(
|
|
133357
|
-
|
|
133185
|
+
import_utils17.chalk.green(`
|
|
133358
133186
|
[INFO]`),
|
|
133359
133187
|
`${i18n3.t(localeKeys3.success)}`,
|
|
133360
|
-
|
|
133188
|
+
import_utils17.chalk.yellow.bold(`${configFile}`),
|
|
133361
133189
|
":",
|
|
133362
133190
|
"\n"
|
|
133363
133191
|
);
|
|
133364
133192
|
console.info(
|
|
133365
|
-
|
|
133193
|
+
import_utils17.chalk.yellow.bold(`import ${pluginName} from '${pluginDependence}';`)
|
|
133366
133194
|
);
|
|
133367
133195
|
if (isTS) {
|
|
133368
133196
|
console.info(`
|
|
133369
133197
|
export default defineConfig({
|
|
133370
133198
|
...,
|
|
133371
|
-
plugins: [..., ${
|
|
133199
|
+
plugins: [..., ${import_utils17.chalk.yellow.bold(`${pluginName}()`)}],
|
|
133372
133200
|
});
|
|
133373
133201
|
`);
|
|
133374
133202
|
} else {
|
|
133375
133203
|
console.info(`
|
|
133376
133204
|
module.exports = {
|
|
133377
133205
|
...,
|
|
133378
|
-
plugins: [..., ${
|
|
133206
|
+
plugins: [..., ${import_utils17.chalk.yellow.bold(`${pluginName}()`)}],
|
|
133379
133207
|
};
|
|
133380
133208
|
`);
|
|
133381
133209
|
}
|