@modern-js/upgrade-generator 3.2.11 → 3.3.1
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 +56 -57
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -14527,9 +14527,9 @@ var require_ejs = __commonJS({
|
|
|
14527
14527
|
}
|
|
14528
14528
|
});
|
|
14529
14529
|
|
|
14530
|
-
// ../../../../node_modules/.pnpm/@modern-js+utils@2.
|
|
14530
|
+
// ../../../../node_modules/.pnpm/@modern-js+utils@2.39.2/node_modules/@modern-js/utils/dist/compiled/chalk/index.js
|
|
14531
14531
|
var require_chalk = __commonJS({
|
|
14532
|
-
"../../../../node_modules/.pnpm/@modern-js+utils@2.
|
|
14532
|
+
"../../../../node_modules/.pnpm/@modern-js+utils@2.39.2/node_modules/@modern-js/utils/dist/compiled/chalk/index.js"(exports, module2) {
|
|
14533
14533
|
"use strict";
|
|
14534
14534
|
(() => {
|
|
14535
14535
|
var e = { 44: (e2, t2, n2) => {
|
|
@@ -52698,12 +52698,12 @@ function _define_property(obj, key, value) {
|
|
|
52698
52698
|
return obj;
|
|
52699
52699
|
}
|
|
52700
52700
|
|
|
52701
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
52701
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
52702
52702
|
var import_utils13 = require("@modern-js/utils");
|
|
52703
52703
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
|
52704
52704
|
var import_comment_json = __toESM(require_src2());
|
|
52705
52705
|
|
|
52706
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
52706
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
52707
52707
|
var import_utils = require("@modern-js/utils");
|
|
52708
52708
|
async function canUseNvm() {
|
|
52709
52709
|
try {
|
|
@@ -52753,7 +52753,7 @@ async function canUsePnpm() {
|
|
|
52753
52753
|
}
|
|
52754
52754
|
}
|
|
52755
52755
|
|
|
52756
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
52756
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
52757
52757
|
var import_utils2 = require("@modern-js/utils");
|
|
52758
52758
|
function execaWithStreamLog(command, args, options) {
|
|
52759
52759
|
const promise = (0, import_utils2.execa)(command, args, {
|
|
@@ -52849,7 +52849,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
52849
52849
|
throw new Error("please install pnpm first");
|
|
52850
52850
|
}
|
|
52851
52851
|
|
|
52852
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
52852
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
52853
52853
|
var NpmAPI = class {
|
|
52854
52854
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
52855
52855
|
return npmInstall({
|
|
@@ -52878,7 +52878,7 @@ var NpmAPI = class {
|
|
|
52878
52878
|
}
|
|
52879
52879
|
};
|
|
52880
52880
|
|
|
52881
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
52881
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
52882
52882
|
var import_utils4 = require("@modern-js/utils");
|
|
52883
52883
|
async function canUseGit() {
|
|
52884
52884
|
try {
|
|
@@ -52953,7 +52953,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
52953
52953
|
});
|
|
52954
52954
|
}
|
|
52955
52955
|
|
|
52956
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
52956
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
52957
52957
|
var GitAPI = class {
|
|
52958
52958
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
52959
52959
|
const canUse = await canUseGit();
|
|
@@ -53005,12 +53005,12 @@ var GitAPI = class {
|
|
|
53005
53005
|
}
|
|
53006
53006
|
};
|
|
53007
53007
|
|
|
53008
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
53008
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
53009
53009
|
var import_path = __toESM(require("path"));
|
|
53010
53010
|
var import_utils6 = require("@modern-js/utils");
|
|
53011
53011
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
53012
53012
|
|
|
53013
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
53013
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
53014
53014
|
var import_utils7 = require("@modern-js/utils");
|
|
53015
53015
|
async function fsExists(path6) {
|
|
53016
53016
|
try {
|
|
@@ -53021,7 +53021,7 @@ async function fsExists(path6) {
|
|
|
53021
53021
|
}
|
|
53022
53022
|
}
|
|
53023
53023
|
|
|
53024
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
53024
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
53025
53025
|
var import_handlebars = __toESM(require_lib());
|
|
53026
53026
|
function renderString(template, fullData, registers) {
|
|
53027
53027
|
const helpers = {
|
|
@@ -53035,7 +53035,7 @@ function renderString(template, fullData, registers) {
|
|
|
53035
53035
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
53036
53036
|
}
|
|
53037
53037
|
|
|
53038
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
53038
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
53039
53039
|
var HandlebarsAPI = class {
|
|
53040
53040
|
async registerHelp(helpers) {
|
|
53041
53041
|
this.registers.helpers = {
|
|
@@ -53085,13 +53085,13 @@ var HandlebarsAPI = class {
|
|
|
53085
53085
|
}
|
|
53086
53086
|
};
|
|
53087
53087
|
|
|
53088
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
53088
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
53089
53089
|
var import_ejs = __toESM(require_ejs());
|
|
53090
53090
|
function renderString2(template, fullData) {
|
|
53091
53091
|
return import_ejs.default.render(template, fullData) || "";
|
|
53092
53092
|
}
|
|
53093
53093
|
|
|
53094
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
53094
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
53095
53095
|
var EjsAPI = class {
|
|
53096
53096
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
53097
53097
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -53124,7 +53124,7 @@ var EjsAPI = class {
|
|
|
53124
53124
|
}
|
|
53125
53125
|
};
|
|
53126
53126
|
|
|
53127
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
53127
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.1_@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
53128
53128
|
var import_path2 = __toESM(require("path"));
|
|
53129
53129
|
var import_utils10 = require("@modern-js/utils");
|
|
53130
53130
|
var FsAPI = class {
|
|
@@ -62708,10 +62708,10 @@ var Schema = (
|
|
|
62708
62708
|
}()
|
|
62709
62709
|
);
|
|
62710
62710
|
|
|
62711
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
62711
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
62712
62712
|
var import_inquirer = __toESM(require_inquirer());
|
|
62713
62713
|
|
|
62714
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
62714
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
62715
62715
|
var import_lodash = require("@modern-js/utils/lodash");
|
|
62716
62716
|
function validateSchema(schema) {
|
|
62717
62717
|
const { type, properties } = schema;
|
|
@@ -62803,7 +62803,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
62803
62803
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
62804
62804
|
}
|
|
62805
62805
|
|
|
62806
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
62806
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
62807
62807
|
var compileRule = (rule, scope) => {
|
|
62808
62808
|
const state = Schema.compile(rule, {
|
|
62809
62809
|
$self: {},
|
|
@@ -62907,7 +62907,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
62907
62907
|
return answers;
|
|
62908
62908
|
}
|
|
62909
62909
|
|
|
62910
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
62910
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
62911
62911
|
var CLIReader = class {
|
|
62912
62912
|
getAnswers() {
|
|
62913
62913
|
return this.answers;
|
|
@@ -62938,7 +62938,7 @@ var CLIReader = class {
|
|
|
62938
62938
|
}
|
|
62939
62939
|
};
|
|
62940
62940
|
|
|
62941
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
62941
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
62942
62942
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
62943
62943
|
|
|
62944
62944
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -63004,7 +63004,7 @@ var I18n = class {
|
|
|
63004
63004
|
}
|
|
63005
63005
|
};
|
|
63006
63006
|
|
|
63007
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63007
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
63008
63008
|
var ZH_LOCALE = {
|
|
63009
63009
|
environment: {
|
|
63010
63010
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -63031,7 +63031,7 @@ var ZH_LOCALE = {
|
|
|
63031
63031
|
}
|
|
63032
63032
|
};
|
|
63033
63033
|
|
|
63034
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63034
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
63035
63035
|
var EN_LOCALE = {
|
|
63036
63036
|
environment: {
|
|
63037
63037
|
node_version: "please upgrade node to lts version",
|
|
@@ -63058,14 +63058,14 @@ var EN_LOCALE = {
|
|
|
63058
63058
|
}
|
|
63059
63059
|
};
|
|
63060
63060
|
|
|
63061
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63061
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
63062
63062
|
var i18n = new I18n();
|
|
63063
63063
|
var localeKeys = i18n.init("zh", {
|
|
63064
63064
|
zh: ZH_LOCALE,
|
|
63065
63065
|
en: EN_LOCALE
|
|
63066
63066
|
});
|
|
63067
63067
|
|
|
63068
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63068
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
63069
63069
|
var import_lodash4 = require("@modern-js/utils/lodash");
|
|
63070
63070
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
63071
63071
|
for (const question of questions) {
|
|
@@ -63093,7 +63093,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
63093
63093
|
return questions;
|
|
63094
63094
|
}
|
|
63095
63095
|
|
|
63096
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63096
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
63097
63097
|
var import_path4 = __toESM(require("path"));
|
|
63098
63098
|
var import_utils12 = require("@modern-js/utils");
|
|
63099
63099
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -63141,7 +63141,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
63141
63141
|
}
|
|
63142
63142
|
}
|
|
63143
63143
|
|
|
63144
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
63144
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.1_@modern-js+codesmith@2.3.1_typescript@5.0.4/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
63145
63145
|
var AppAPI = class {
|
|
63146
63146
|
async checkEnvironment(nodeVersion) {
|
|
63147
63147
|
if (import_utils13.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -63230,6 +63230,7 @@ var AppAPI = class {
|
|
|
63230
63230
|
}
|
|
63231
63231
|
async forgeTemplate(templatePattern, filter, rename, parameters, type = "handlebars") {
|
|
63232
63232
|
try {
|
|
63233
|
+
this.generatorCore.logger.timing(`forgeTemplate`);
|
|
63233
63234
|
const { material } = this.generatorContext.current;
|
|
63234
63235
|
const resourceMap = await material.find(templatePattern, {
|
|
63235
63236
|
nodir: true,
|
|
@@ -63250,10 +63251,13 @@ var AppAPI = class {
|
|
|
63250
63251
|
this.generatorCore.logger.debug("base forging failed:", e);
|
|
63251
63252
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
|
63252
63253
|
throw new Error("base forging failed");
|
|
63254
|
+
} finally {
|
|
63255
|
+
this.generatorCore.logger.timing(`forgeTemplate`, true);
|
|
63253
63256
|
}
|
|
63254
63257
|
}
|
|
63255
63258
|
async renderTemplateByFileType(templatePattern, filter, rename, parameters) {
|
|
63256
63259
|
try {
|
|
63260
|
+
this.generatorCore.logger.timing(`renderTemplateByFileType`);
|
|
63257
63261
|
const { material } = this.generatorContext.current;
|
|
63258
63262
|
const resourceMap = await material.find(templatePattern, {
|
|
63259
63263
|
nodir: true,
|
|
@@ -63284,6 +63288,8 @@ var AppAPI = class {
|
|
|
63284
63288
|
this.generatorCore.logger.debug("base forging failed:", e);
|
|
63285
63289
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
|
63286
63290
|
throw new Error("base forging failed");
|
|
63291
|
+
} finally {
|
|
63292
|
+
this.generatorCore.logger.timing(`renderTemplateByFileType`, true);
|
|
63287
63293
|
}
|
|
63288
63294
|
}
|
|
63289
63295
|
async updateWorkspace(folder, workspaceName = "monorepo.code-workspace") {
|
|
@@ -63371,11 +63377,11 @@ var AppAPI = class {
|
|
|
63371
63377
|
}
|
|
63372
63378
|
};
|
|
63373
63379
|
|
|
63374
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
63380
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
63375
63381
|
var import_comment_json2 = __toESM(require_src2());
|
|
63376
63382
|
var declarationUpdate = __toESM(require_dist());
|
|
63377
63383
|
|
|
63378
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
63384
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
63379
63385
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
63380
63386
|
const originJsonValue = await resource.value();
|
|
63381
63387
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
|
@@ -63388,7 +63394,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
63388
63394
|
return newJsonString;
|
|
63389
63395
|
}
|
|
63390
63396
|
|
|
63391
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
63397
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
63392
63398
|
var JsonAPI = class {
|
|
63393
63399
|
async get(resource) {
|
|
63394
63400
|
const originJsonValue = await resource.value();
|
|
@@ -63437,6 +63443,15 @@ var JsonAPI = class {
|
|
|
63437
63443
|
var import_path5 = __toESM(require("path"));
|
|
63438
63444
|
var import_utils17 = require("@modern-js/utils");
|
|
63439
63445
|
|
|
63446
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
|
63447
|
+
function _define_property2(obj, key, value) {
|
|
63448
|
+
if (key in obj) {
|
|
63449
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
63450
|
+
} else
|
|
63451
|
+
obj[key] = value;
|
|
63452
|
+
return obj;
|
|
63453
|
+
}
|
|
63454
|
+
|
|
63440
63455
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
|
63441
63456
|
var import_lodash7 = require("@modern-js/utils/lodash");
|
|
63442
63457
|
|
|
@@ -63495,8 +63510,8 @@ var I18n2 = class {
|
|
|
63495
63510
|
};
|
|
63496
63511
|
}
|
|
63497
63512
|
constructor() {
|
|
63498
|
-
|
|
63499
|
-
|
|
63513
|
+
_define_property2(this, "language", "en");
|
|
63514
|
+
_define_property2(this, "languageMap", {});
|
|
63500
63515
|
}
|
|
63501
63516
|
};
|
|
63502
63517
|
|
|
@@ -63537,7 +63552,8 @@ var ZH_LOCALE2 = {
|
|
|
63537
63552
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
63538
63553
|
proxy: "启用「全局代理」",
|
|
63539
63554
|
swc: "启用「SWC 编译」",
|
|
63540
|
-
rspack: "启用「Rspack 构建」(实验性)"
|
|
63555
|
+
rspack: "启用「Rspack 构建」(实验性)",
|
|
63556
|
+
module_doc: "启动「模块文档」功能"
|
|
63541
63557
|
},
|
|
63542
63558
|
element: {
|
|
63543
63559
|
self: "创建工程元素",
|
|
@@ -63635,7 +63651,8 @@ var EN_LOCALE2 = {
|
|
|
63635
63651
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
63636
63652
|
proxy: "Enable Global Proxy",
|
|
63637
63653
|
swc: "Enable SWC Compile",
|
|
63638
|
-
rspack: "Enable Rspack Build (experimental)"
|
|
63654
|
+
rspack: "Enable Rspack Build (experimental)",
|
|
63655
|
+
module_doc: "Enable Module Doc"
|
|
63639
63656
|
},
|
|
63640
63657
|
element: {
|
|
63641
63658
|
self: "Create Element",
|
|
@@ -63715,27 +63732,14 @@ var SubSolution;
|
|
|
63715
63732
|
SubSolution2["Module"] = "module";
|
|
63716
63733
|
})(SubSolution || (SubSolution = {}));
|
|
63717
63734
|
var SolutionText = {
|
|
63718
|
-
[
|
|
63719
|
-
[
|
|
63720
|
-
[
|
|
63721
|
-
};
|
|
63722
|
-
var SubSolutionText = {
|
|
63723
|
-
[SubSolution.MWA]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
|
63724
|
-
[SubSolution.Module]: () => i18n2.t(localeKeys2.sub_solution.module)
|
|
63735
|
+
["mwa"]: () => i18n2.t(localeKeys2.solution.mwa),
|
|
63736
|
+
["module"]: () => i18n2.t(localeKeys2.solution.module),
|
|
63737
|
+
["monorepo"]: () => i18n2.t(localeKeys2.solution.monorepo)
|
|
63725
63738
|
};
|
|
63726
63739
|
var SolutionToolsMap = {
|
|
63727
|
-
[
|
|
63728
|
-
[
|
|
63729
|
-
[
|
|
63730
|
-
};
|
|
63731
|
-
var SolutionGenerator = {
|
|
63732
|
-
[Solution.MWA]: "@modern-js/mwa-generator",
|
|
63733
|
-
[Solution.Module]: "@modern-js/module-generator",
|
|
63734
|
-
[Solution.Monorepo]: "@modern-js/monorepo-generator"
|
|
63735
|
-
};
|
|
63736
|
-
var SubSolutionGenerator = {
|
|
63737
|
-
[SubSolution.MWA]: "@modern-js/mwa-generator",
|
|
63738
|
-
[SubSolution.Module]: "@modern-js/module-generator"
|
|
63740
|
+
["mwa"]: "@modern-js/app-tools",
|
|
63741
|
+
["module"]: "@modern-js/module-tools",
|
|
63742
|
+
["monorepo"]: "@modern-js/monorepo-tools"
|
|
63739
63743
|
};
|
|
63740
63744
|
|
|
63741
63745
|
// ../../generator-common/dist/esm-node/common/packageManager.js
|
|
@@ -63745,11 +63749,6 @@ var PackageManager;
|
|
|
63745
63749
|
PackageManager2["Yarn"] = "yarn";
|
|
63746
63750
|
PackageManager2["Npm"] = "npm";
|
|
63747
63751
|
})(PackageManager || (PackageManager = {}));
|
|
63748
|
-
var PackageManagerName = {
|
|
63749
|
-
[PackageManager.Pnpm]: "pnpm",
|
|
63750
|
-
[PackageManager.Yarn]: "Yarn",
|
|
63751
|
-
[PackageManager.Npm]: "npm"
|
|
63752
|
-
};
|
|
63753
63752
|
|
|
63754
63753
|
// ../../generator-utils/dist/esm/utils/stripAnsi.js
|
|
63755
63754
|
function ansiRegex2({ onlyFirst = false } = {}) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.
|
|
18
|
+
"version": "3.3.1",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
"/dist/index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@modern-js/utils": "2.
|
|
26
|
+
"@modern-js/utils": "2.42.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@modern-js/codesmith": "2.3.
|
|
30
|
-
"@modern-js/codesmith-api-app": "2.3.
|
|
31
|
-
"@modern-js/codesmith-api-json": "2.3.
|
|
29
|
+
"@modern-js/codesmith": "2.3.1",
|
|
30
|
+
"@modern-js/codesmith-api-app": "2.3.1",
|
|
31
|
+
"@modern-js/codesmith-api-json": "2.3.1",
|
|
32
32
|
"@types/jest": "^29",
|
|
33
33
|
"@types/node": "^14",
|
|
34
34
|
"jest": "^29",
|
|
35
35
|
"typescript": "^5",
|
|
36
|
-
"@modern-js/generator-common": "3.
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@modern-js/
|
|
39
|
-
"@scripts/build": "2.
|
|
40
|
-
"@scripts/jest-config": "2.
|
|
36
|
+
"@modern-js/generator-common": "3.3.1",
|
|
37
|
+
"@modern-js/plugin-i18n": "2.42.0",
|
|
38
|
+
"@modern-js/generator-utils": "3.3.1",
|
|
39
|
+
"@scripts/build": "2.42.0",
|
|
40
|
+
"@scripts/jest-config": "2.42.0"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|