@modern-js/entry-generator 3.7.22 → 3.7.24
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 +49 -80
- package/package.json +11 -12
package/dist/index.js
CHANGED
|
@@ -3875,37 +3875,6 @@ var require_ensure = __commonJS({
|
|
|
3875
3875
|
}
|
|
3876
3876
|
});
|
|
3877
3877
|
|
|
3878
|
-
// ../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
|
|
3879
|
-
var require_universalify2 = __commonJS({
|
|
3880
|
-
"../../../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports) {
|
|
3881
|
-
"use strict";
|
|
3882
|
-
exports.fromCallback = function(fn) {
|
|
3883
|
-
return Object.defineProperty(function(...args) {
|
|
3884
|
-
if (typeof args[args.length - 1] === "function")
|
|
3885
|
-
fn.apply(this, args);
|
|
3886
|
-
else {
|
|
3887
|
-
return new Promise((resolve, reject) => {
|
|
3888
|
-
fn.call(
|
|
3889
|
-
this,
|
|
3890
|
-
...args,
|
|
3891
|
-
(err, res) => err != null ? reject(err) : resolve(res)
|
|
3892
|
-
);
|
|
3893
|
-
});
|
|
3894
|
-
}
|
|
3895
|
-
}, "name", { value: fn.name });
|
|
3896
|
-
};
|
|
3897
|
-
exports.fromPromise = function(fn) {
|
|
3898
|
-
return Object.defineProperty(function(...args) {
|
|
3899
|
-
const cb = args[args.length - 1];
|
|
3900
|
-
if (typeof cb !== "function")
|
|
3901
|
-
return fn.apply(this, args);
|
|
3902
|
-
else
|
|
3903
|
-
fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
|
|
3904
|
-
}, "name", { value: fn.name });
|
|
3905
|
-
};
|
|
3906
|
-
}
|
|
3907
|
-
});
|
|
3908
|
-
|
|
3909
3878
|
// ../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js
|
|
3910
3879
|
var require_utils2 = __commonJS({
|
|
3911
3880
|
"../../../../node_modules/.pnpm/jsonfile@6.1.0/node_modules/jsonfile/utils.js"(exports, module2) {
|
|
@@ -3934,7 +3903,7 @@ var require_jsonfile = __commonJS({
|
|
|
3934
3903
|
} catch (_) {
|
|
3935
3904
|
_fs = require("fs");
|
|
3936
3905
|
}
|
|
3937
|
-
var universalify =
|
|
3906
|
+
var universalify = require_universalify();
|
|
3938
3907
|
var { stringify: stringify2, stripBom } = require_utils2();
|
|
3939
3908
|
function _readFile(_0) {
|
|
3940
3909
|
return __async(this, arguments, function* (file, options = {}) {
|
|
@@ -4509,9 +4478,9 @@ var require_path_key = __commonJS({
|
|
|
4509
4478
|
}
|
|
4510
4479
|
});
|
|
4511
4480
|
|
|
4512
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4481
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
4513
4482
|
var require_resolveCommand = __commonJS({
|
|
4514
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4483
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
|
|
4515
4484
|
"use strict";
|
|
4516
4485
|
var path6 = require("path");
|
|
4517
4486
|
var which = require_which();
|
|
@@ -4551,9 +4520,9 @@ var require_resolveCommand = __commonJS({
|
|
|
4551
4520
|
}
|
|
4552
4521
|
});
|
|
4553
4522
|
|
|
4554
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4523
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
4555
4524
|
var require_escape = __commonJS({
|
|
4556
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4525
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
|
|
4557
4526
|
"use strict";
|
|
4558
4527
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
4559
4528
|
function escapeCommand(arg) {
|
|
@@ -4562,8 +4531,8 @@ var require_escape = __commonJS({
|
|
|
4562
4531
|
}
|
|
4563
4532
|
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
4564
4533
|
arg = `${arg}`;
|
|
4565
|
-
arg = arg.replace(/(
|
|
4566
|
-
arg = arg.replace(/(
|
|
4534
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
4535
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
|
|
4567
4536
|
arg = `"${arg}"`;
|
|
4568
4537
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
4569
4538
|
if (doubleEscapeMetaChars) {
|
|
@@ -4604,9 +4573,9 @@ var require_shebang_command = __commonJS({
|
|
|
4604
4573
|
}
|
|
4605
4574
|
});
|
|
4606
4575
|
|
|
4607
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4576
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
4608
4577
|
var require_readShebang = __commonJS({
|
|
4609
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4578
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
|
|
4610
4579
|
"use strict";
|
|
4611
4580
|
var fs2 = require("fs");
|
|
4612
4581
|
var shebangCommand = require_shebang_command();
|
|
@@ -4626,9 +4595,9 @@ var require_readShebang = __commonJS({
|
|
|
4626
4595
|
}
|
|
4627
4596
|
});
|
|
4628
4597
|
|
|
4629
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4598
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
4630
4599
|
var require_parse = __commonJS({
|
|
4631
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4600
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
|
|
4632
4601
|
"use strict";
|
|
4633
4602
|
var path6 = require("path");
|
|
4634
4603
|
var resolveCommand = require_resolveCommand();
|
|
@@ -4688,9 +4657,9 @@ var require_parse = __commonJS({
|
|
|
4688
4657
|
}
|
|
4689
4658
|
});
|
|
4690
4659
|
|
|
4691
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4660
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
4692
4661
|
var require_enoent = __commonJS({
|
|
4693
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4662
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
|
|
4694
4663
|
"use strict";
|
|
4695
4664
|
var isWin = process.platform === "win32";
|
|
4696
4665
|
function notFoundError(original, syscall) {
|
|
@@ -4709,7 +4678,7 @@ var require_enoent = __commonJS({
|
|
|
4709
4678
|
const originalEmit = cp.emit;
|
|
4710
4679
|
cp.emit = function(name, arg1) {
|
|
4711
4680
|
if (name === "exit") {
|
|
4712
|
-
const err = verifyENOENT(arg1, parsed
|
|
4681
|
+
const err = verifyENOENT(arg1, parsed);
|
|
4713
4682
|
if (err) {
|
|
4714
4683
|
return originalEmit.call(cp, "error", err);
|
|
4715
4684
|
}
|
|
@@ -4738,9 +4707,9 @@ var require_enoent = __commonJS({
|
|
|
4738
4707
|
}
|
|
4739
4708
|
});
|
|
4740
4709
|
|
|
4741
|
-
// ../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4710
|
+
// ../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
4742
4711
|
var require_cross_spawn = __commonJS({
|
|
4743
|
-
"../../../../node_modules/.pnpm/cross-spawn@7.0.
|
|
4712
|
+
"../../../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
|
|
4744
4713
|
"use strict";
|
|
4745
4714
|
var cp = require("child_process");
|
|
4746
4715
|
var parse3 = require_parse();
|
|
@@ -63529,13 +63498,13 @@ __export(src_exports, {
|
|
|
63529
63498
|
module.exports = __toCommonJS(src_exports);
|
|
63530
63499
|
var import_path6 = __toESM(require("path"));
|
|
63531
63500
|
|
|
63532
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63501
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/fs-extra.js
|
|
63533
63502
|
var import_fs_extra = __toESM(require_lib());
|
|
63534
63503
|
|
|
63535
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
63504
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
63536
63505
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
63537
63506
|
|
|
63538
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.
|
|
63507
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
63539
63508
|
function fsExists(path6) {
|
|
63540
63509
|
return __async(this, null, function* () {
|
|
63541
63510
|
try {
|
|
@@ -63547,19 +63516,19 @@ function fsExists(path6) {
|
|
|
63547
63516
|
});
|
|
63548
63517
|
}
|
|
63549
63518
|
|
|
63550
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63519
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/execa.js
|
|
63551
63520
|
var import_execa = __toESM(require_execa());
|
|
63552
63521
|
|
|
63553
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63522
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/semver.js
|
|
63554
63523
|
var import_semver = __toESM(require_semver2());
|
|
63555
63524
|
|
|
63556
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
63525
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
63557
63526
|
var import_ejs = __toESM(require_ejs());
|
|
63558
63527
|
function renderString(template, fullData) {
|
|
63559
63528
|
return import_ejs.default.render(template, fullData) || "";
|
|
63560
63529
|
}
|
|
63561
63530
|
|
|
63562
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.
|
|
63531
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
63563
63532
|
var EjsAPI = class {
|
|
63564
63533
|
renderTemplate(_0, _1) {
|
|
63565
63534
|
return __async(this, arguments, function* (templateResource, target, parameters = {}) {
|
|
@@ -63594,7 +63563,7 @@ var EjsAPI = class {
|
|
|
63594
63563
|
}
|
|
63595
63564
|
};
|
|
63596
63565
|
|
|
63597
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.
|
|
63566
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
63598
63567
|
var import_path = __toESM(require("path"));
|
|
63599
63568
|
var FsAPI = class {
|
|
63600
63569
|
renderFile(resource, target) {
|
|
@@ -63623,7 +63592,7 @@ var FsAPI = class {
|
|
|
63623
63592
|
}
|
|
63624
63593
|
};
|
|
63625
63594
|
|
|
63626
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
63595
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
63627
63596
|
function canUseGit() {
|
|
63628
63597
|
return __async(this, null, function* () {
|
|
63629
63598
|
try {
|
|
@@ -63707,7 +63676,7 @@ function gitCommit(cwd, commitMessage) {
|
|
|
63707
63676
|
});
|
|
63708
63677
|
}
|
|
63709
63678
|
|
|
63710
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.
|
|
63679
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
63711
63680
|
var GitAPI = class {
|
|
63712
63681
|
isInGitRepo() {
|
|
63713
63682
|
return __async(this, arguments, function* (cwd = this.generatorCore.outputPath) {
|
|
@@ -63763,7 +63732,7 @@ var GitAPI = class {
|
|
|
63763
63732
|
}
|
|
63764
63733
|
};
|
|
63765
63734
|
|
|
63766
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
63735
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
63767
63736
|
var import_handlebars = __toESM(require_lib2());
|
|
63768
63737
|
function renderString2(template, fullData, registers) {
|
|
63769
63738
|
const helpers = __spreadValues({}, registers === null || registers === void 0 ? void 0 : registers.helpers);
|
|
@@ -63773,7 +63742,7 @@ function renderString2(template, fullData, registers) {
|
|
|
63773
63742
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
63774
63743
|
}
|
|
63775
63744
|
|
|
63776
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.
|
|
63745
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
63777
63746
|
var HandlebarsAPI = class {
|
|
63778
63747
|
registerHelp(helpers) {
|
|
63779
63748
|
return __async(this, null, function* () {
|
|
@@ -63930,7 +63899,7 @@ function __generator(thisArg, body) {
|
|
|
63930
63899
|
}
|
|
63931
63900
|
}
|
|
63932
63901
|
|
|
63933
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
63902
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/npm.js
|
|
63934
63903
|
var import_execa3 = __toESM(require_execa());
|
|
63935
63904
|
function canUseNvm() {
|
|
63936
63905
|
return _canUseNvm.apply(this, arguments);
|
|
@@ -64151,7 +64120,7 @@ function _canUsePnpm() {
|
|
|
64151
64120
|
return _canUsePnpm.apply(this, arguments);
|
|
64152
64121
|
}
|
|
64153
64122
|
|
|
64154
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
64123
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
64155
64124
|
function execaWithStreamLog(command, args, options) {
|
|
64156
64125
|
const promise = (0, import_execa.default)(command, args, __spreadProps(__spreadValues({}, options), {
|
|
64157
64126
|
stdin: "inherit",
|
|
@@ -64252,7 +64221,7 @@ function pnpmInstall(_0) {
|
|
|
64252
64221
|
});
|
|
64253
64222
|
}
|
|
64254
64223
|
|
|
64255
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.
|
|
64224
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.6.7_@modern-js+codesmith@2.6.7/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
64256
64225
|
var NpmAPI = class {
|
|
64257
64226
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
64258
64227
|
return npmInstall({
|
|
@@ -64280,7 +64249,7 @@ var NpmAPI = class {
|
|
|
64280
64249
|
}
|
|
64281
64250
|
};
|
|
64282
64251
|
|
|
64283
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.
|
|
64252
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-utils@2.6.7/node_modules/@modern-js/codesmith-utils/dist/esm/lodash.js
|
|
64284
64253
|
var import_lodash = __toESM(require_lodash());
|
|
64285
64254
|
var import_lodash2 = __toESM(require_lodash2());
|
|
64286
64255
|
var import_lodash3 = __toESM(require_lodash3());
|
|
@@ -67831,7 +67800,7 @@ autorun.effect = function(callback, dependencies) {
|
|
|
67831
67800
|
}
|
|
67832
67801
|
};
|
|
67833
67802
|
|
|
67834
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
67803
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/shared.js
|
|
67835
67804
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
67836
67805
|
var SchemaNestedMap = {
|
|
67837
67806
|
parent: true,
|
|
@@ -68018,7 +67987,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
68018
67987
|
});
|
|
68019
67988
|
};
|
|
68020
67989
|
|
|
68021
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
67990
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/compiler.js
|
|
68022
67991
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
68023
67992
|
var Registry = {
|
|
68024
67993
|
silent: false,
|
|
@@ -69380,7 +69349,7 @@ function onFieldInit(pattern, callback) {
|
|
|
69380
69349
|
}
|
|
69381
69350
|
}
|
|
69382
69351
|
|
|
69383
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69352
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/transformer.js
|
|
69384
69353
|
var __read5 = function(o, n) {
|
|
69385
69354
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
69386
69355
|
if (!m)
|
|
@@ -69605,7 +69574,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
69605
69574
|
};
|
|
69606
69575
|
};
|
|
69607
69576
|
|
|
69608
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69577
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/patches.js
|
|
69609
69578
|
var __assign5 = function() {
|
|
69610
69579
|
__assign5 = Object.assign || function(t) {
|
|
69611
69580
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -69654,7 +69623,7 @@ var enablePolyfills = function(versions) {
|
|
|
69654
69623
|
}
|
|
69655
69624
|
};
|
|
69656
69625
|
|
|
69657
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69626
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
69658
69627
|
var __assign6 = function() {
|
|
69659
69628
|
__assign6 = Object.assign || function(t) {
|
|
69660
69629
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -69811,7 +69780,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
69811
69780
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
69812
69781
|
};
|
|
69813
69782
|
|
|
69814
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
69783
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.6.3/node_modules/@formily/json-schema/esm/schema.js
|
|
69815
69784
|
var Schema = (
|
|
69816
69785
|
/** @class */
|
|
69817
69786
|
function() {
|
|
@@ -70047,10 +70016,10 @@ var Schema = (
|
|
|
70047
70016
|
}()
|
|
70048
70017
|
);
|
|
70049
70018
|
|
|
70050
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70019
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
70051
70020
|
var import_inquirer = __toESM(require_inquirer());
|
|
70052
70021
|
|
|
70053
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70022
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
70054
70023
|
function validateSchema(schema) {
|
|
70055
70024
|
const { type, properties } = schema;
|
|
70056
70025
|
if (type !== "object") {
|
|
@@ -70137,7 +70106,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
70137
70106
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
70138
70107
|
}
|
|
70139
70108
|
|
|
70140
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70109
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
70141
70110
|
var compileRule = (rule, scope) => {
|
|
70142
70111
|
const state = Schema.compile(rule, __spreadValues({
|
|
70143
70112
|
$self: {},
|
|
@@ -70237,7 +70206,7 @@ function prompt(_0) {
|
|
|
70237
70206
|
});
|
|
70238
70207
|
}
|
|
70239
70208
|
|
|
70240
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.
|
|
70209
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
70241
70210
|
var CLIReader = class {
|
|
70242
70211
|
getAnswers() {
|
|
70243
70212
|
return this.answers;
|
|
@@ -70265,7 +70234,7 @@ var CLIReader = class {
|
|
|
70265
70234
|
}
|
|
70266
70235
|
};
|
|
70267
70236
|
|
|
70268
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70237
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
70269
70238
|
var import_comment_json = __toESM(require_src2());
|
|
70270
70239
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
70271
70240
|
|
|
@@ -70332,7 +70301,7 @@ var I18n = class {
|
|
|
70332
70301
|
}
|
|
70333
70302
|
};
|
|
70334
70303
|
|
|
70335
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70304
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
70336
70305
|
var EN_LOCALE = {
|
|
70337
70306
|
environment: {
|
|
70338
70307
|
node_version: "The version of Node.js is too low. Please upgrade to the LTS version: https://nodejs.org/",
|
|
@@ -70359,7 +70328,7 @@ var EN_LOCALE = {
|
|
|
70359
70328
|
}
|
|
70360
70329
|
};
|
|
70361
70330
|
|
|
70362
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70331
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
70363
70332
|
var ZH_LOCALE = {
|
|
70364
70333
|
environment: {
|
|
70365
70334
|
node_version: "Node.js 版本太低,请升级至 LTS 版本: https://nodejs.org/",
|
|
@@ -70386,14 +70355,14 @@ var ZH_LOCALE = {
|
|
|
70386
70355
|
}
|
|
70387
70356
|
};
|
|
70388
70357
|
|
|
70389
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70358
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
70390
70359
|
var i18n = new I18n();
|
|
70391
70360
|
var localeKeys = i18n.init("zh", {
|
|
70392
70361
|
zh: ZH_LOCALE,
|
|
70393
70362
|
en: EN_LOCALE
|
|
70394
70363
|
});
|
|
70395
70364
|
|
|
70396
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70365
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
70397
70366
|
var import_path3 = __toESM(require("path"));
|
|
70398
70367
|
var NODE_MAJOR_VERSION_MAP = {
|
|
70399
70368
|
"lts/*": 18,
|
|
@@ -70444,7 +70413,7 @@ function checkUseNvm(cwd, logger) {
|
|
|
70444
70413
|
});
|
|
70445
70414
|
}
|
|
70446
70415
|
|
|
70447
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70416
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
70448
70417
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
70449
70418
|
for (const question of questions) {
|
|
70450
70419
|
question.default = initValue[question.name] || question.default;
|
|
@@ -70471,7 +70440,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
70471
70440
|
return questions;
|
|
70472
70441
|
}
|
|
70473
70442
|
|
|
70474
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.
|
|
70443
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.6.7_@modern-js+codesmith@2.6.7_typescript@5.6.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
70475
70444
|
var AppAPI = class {
|
|
70476
70445
|
checkEnvironment(nodeVersion) {
|
|
70477
70446
|
return __async(this, null, function* () {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.7.
|
|
18
|
+
"version": "3.7.24",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,25 +23,24 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@modern-js/codesmith": "2.6.
|
|
27
|
-
"@modern-js/codesmith-api-app": "2.6.
|
|
28
|
-
"@modern-js/codesmith-api-handlebars": "2.6.
|
|
29
|
-
"@modern-js/codesmith-utils": "2.6.
|
|
26
|
+
"@modern-js/codesmith": "2.6.7",
|
|
27
|
+
"@modern-js/codesmith-api-app": "2.6.7",
|
|
28
|
+
"@modern-js/codesmith-api-handlebars": "2.6.7",
|
|
29
|
+
"@modern-js/codesmith-utils": "2.6.7",
|
|
30
30
|
"@types/jest": "^29",
|
|
31
31
|
"@types/node": "^14",
|
|
32
32
|
"jest": "^29",
|
|
33
33
|
"typescript": "^5",
|
|
34
|
-
"@modern-js/generator-common": "3.7.
|
|
35
|
-
"@modern-js/generator-utils": "3.7.
|
|
36
|
-
"@modern-js/plugin-i18n": "2.
|
|
37
|
-
"@scripts/build": "2.
|
|
38
|
-
"@scripts/jest-config": "2.
|
|
34
|
+
"@modern-js/generator-common": "3.7.24",
|
|
35
|
+
"@modern-js/generator-utils": "3.7.24",
|
|
36
|
+
"@modern-js/plugin-i18n": "2.66.0",
|
|
37
|
+
"@scripts/build": "2.66.0",
|
|
38
|
+
"@scripts/jest-config": "2.66.0"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"registry": "https://registry.npmjs.org/",
|
|
43
|
-
"access": "public"
|
|
44
|
-
"provenance": true
|
|
43
|
+
"access": "public"
|
|
45
44
|
},
|
|
46
45
|
"types": "./src/index.ts",
|
|
47
46
|
"scripts": {
|