@modern-js/monorepo-generator 3.2.11 → 3.3.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +58 -59
- package/package.json +13 -13
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@2.3.
|
52701
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
52702
52702
|
var import_path = __toESM(require("path"));
|
52703
52703
|
var import_utils = require("@modern-js/utils");
|
52704
52704
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
52705
52705
|
|
52706
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
52706
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
52707
52707
|
var import_utils2 = require("@modern-js/utils");
|
52708
52708
|
async function fsExists(path7) {
|
52709
52709
|
try {
|
@@ -52714,7 +52714,7 @@ async function fsExists(path7) {
|
|
52714
52714
|
}
|
52715
52715
|
}
|
52716
52716
|
|
52717
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
52717
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.1/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
52718
52718
|
var import_path2 = __toESM(require("path"));
|
52719
52719
|
var import_utils3 = require("@modern-js/utils");
|
52720
52720
|
async function canUseYarn() {
|
@@ -52742,12 +52742,12 @@ async function canUsePnpm() {
|
|
52742
52742
|
}
|
52743
52743
|
}
|
52744
52744
|
|
52745
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
52745
|
+
// ../../../../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
|
52746
52746
|
var import_utils14 = require("@modern-js/utils");
|
52747
52747
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
52748
52748
|
var import_comment_json = __toESM(require_src2());
|
52749
52749
|
|
52750
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
52750
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
52751
52751
|
var import_utils4 = require("@modern-js/utils");
|
52752
52752
|
async function canUseNvm() {
|
52753
52753
|
try {
|
@@ -52797,7 +52797,7 @@ async function canUsePnpm2() {
|
|
52797
52797
|
}
|
52798
52798
|
}
|
52799
52799
|
|
52800
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
52800
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
52801
52801
|
var import_utils5 = require("@modern-js/utils");
|
52802
52802
|
function execaWithStreamLog(command, args, options) {
|
52803
52803
|
const promise = (0, import_utils5.execa)(command, args, {
|
@@ -52893,7 +52893,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
52893
52893
|
throw new Error("please install pnpm first");
|
52894
52894
|
}
|
52895
52895
|
|
52896
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
52896
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.1/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
52897
52897
|
var NpmAPI = class {
|
52898
52898
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
52899
52899
|
return npmInstall({
|
@@ -52922,7 +52922,7 @@ var NpmAPI = class {
|
|
52922
52922
|
}
|
52923
52923
|
};
|
52924
52924
|
|
52925
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
52925
|
+
// ../../../../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
|
52926
52926
|
var import_utils7 = require("@modern-js/utils");
|
52927
52927
|
async function canUseGit() {
|
52928
52928
|
try {
|
@@ -52997,7 +52997,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
52997
52997
|
});
|
52998
52998
|
}
|
52999
52999
|
|
53000
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
53000
|
+
// ../../../../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
|
53001
53001
|
var GitAPI = class {
|
53002
53002
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
53003
53003
|
const canUse = await canUseGit();
|
@@ -53049,7 +53049,7 @@ var GitAPI = class {
|
|
53049
53049
|
}
|
53050
53050
|
};
|
53051
53051
|
|
53052
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
53052
|
+
// ../../../../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
|
53053
53053
|
var import_handlebars = __toESM(require_lib());
|
53054
53054
|
function renderString(template, fullData, registers) {
|
53055
53055
|
const helpers = {
|
@@ -53063,7 +53063,7 @@ function renderString(template, fullData, registers) {
|
|
53063
53063
|
return import_handlebars.default.compile(template)(fullData) || "";
|
53064
53064
|
}
|
53065
53065
|
|
53066
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
53066
|
+
// ../../../../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
|
53067
53067
|
var HandlebarsAPI = class {
|
53068
53068
|
async registerHelp(helpers) {
|
53069
53069
|
this.registers.helpers = {
|
@@ -53113,13 +53113,13 @@ var HandlebarsAPI = class {
|
|
53113
53113
|
}
|
53114
53114
|
};
|
53115
53115
|
|
53116
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
53116
|
+
// ../../../../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
|
53117
53117
|
var import_ejs = __toESM(require_ejs());
|
53118
53118
|
function renderString2(template, fullData) {
|
53119
53119
|
return import_ejs.default.render(template, fullData) || "";
|
53120
53120
|
}
|
53121
53121
|
|
53122
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
53122
|
+
// ../../../../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
|
53123
53123
|
var EjsAPI = class {
|
53124
53124
|
async renderTemplate(templateResource, target, parameters = {}) {
|
53125
53125
|
if (templateResource._type !== FS_RESOURCE) {
|
@@ -53152,7 +53152,7 @@ var EjsAPI = class {
|
|
53152
53152
|
}
|
53153
53153
|
};
|
53154
53154
|
|
53155
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
53155
|
+
// ../../../../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
|
53156
53156
|
var import_path3 = __toESM(require("path"));
|
53157
53157
|
var import_utils11 = require("@modern-js/utils");
|
53158
53158
|
var FsAPI = class {
|
@@ -62736,10 +62736,10 @@ var Schema = (
|
|
62736
62736
|
}()
|
62737
62737
|
);
|
62738
62738
|
|
62739
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
62739
|
+
// ../../../../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
|
62740
62740
|
var import_inquirer = __toESM(require_inquirer());
|
62741
62741
|
|
62742
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
62742
|
+
// ../../../../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
|
62743
62743
|
var import_lodash = require("@modern-js/utils/lodash");
|
62744
62744
|
function validateSchema(schema) {
|
62745
62745
|
const { type, properties } = schema;
|
@@ -62831,7 +62831,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
62831
62831
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
62832
62832
|
}
|
62833
62833
|
|
62834
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
62834
|
+
// ../../../../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
|
62835
62835
|
var compileRule = (rule, scope) => {
|
62836
62836
|
const state = Schema.compile(rule, {
|
62837
62837
|
$self: {},
|
@@ -62935,7 +62935,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
62935
62935
|
return answers;
|
62936
62936
|
}
|
62937
62937
|
|
62938
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
62938
|
+
// ../../../../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
|
62939
62939
|
var CLIReader = class {
|
62940
62940
|
getAnswers() {
|
62941
62941
|
return this.answers;
|
@@ -62966,7 +62966,7 @@ var CLIReader = class {
|
|
62966
62966
|
}
|
62967
62967
|
};
|
62968
62968
|
|
62969
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
62969
|
+
// ../../../../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
|
62970
62970
|
var import_inquirer2 = __toESM(require_inquirer2());
|
62971
62971
|
|
62972
62972
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -63032,7 +63032,7 @@ var I18n = class {
|
|
63032
63032
|
}
|
63033
63033
|
};
|
63034
63034
|
|
63035
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
63035
|
+
// ../../../../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
|
63036
63036
|
var ZH_LOCALE = {
|
63037
63037
|
environment: {
|
63038
63038
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -63059,7 +63059,7 @@ var ZH_LOCALE = {
|
|
63059
63059
|
}
|
63060
63060
|
};
|
63061
63061
|
|
63062
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
63062
|
+
// ../../../../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
|
63063
63063
|
var EN_LOCALE = {
|
63064
63064
|
environment: {
|
63065
63065
|
node_version: "please upgrade node to lts version",
|
@@ -63086,14 +63086,14 @@ var EN_LOCALE = {
|
|
63086
63086
|
}
|
63087
63087
|
};
|
63088
63088
|
|
63089
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
63089
|
+
// ../../../../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
|
63090
63090
|
var i18n = new I18n();
|
63091
63091
|
var localeKeys = i18n.init("zh", {
|
63092
63092
|
zh: ZH_LOCALE,
|
63093
63093
|
en: EN_LOCALE
|
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/transform.js
|
63097
63097
|
var import_lodash4 = require("@modern-js/utils/lodash");
|
63098
63098
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
63099
63099
|
for (const question of questions) {
|
@@ -63121,7 +63121,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
63121
63121
|
return questions;
|
63122
63122
|
}
|
63123
63123
|
|
63124
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
63124
|
+
// ../../../../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
|
63125
63125
|
var import_path5 = __toESM(require("path"));
|
63126
63126
|
var import_utils13 = require("@modern-js/utils");
|
63127
63127
|
var NODE_MAJOR_VERSION_MAP = {
|
@@ -63169,7 +63169,7 @@ async function checkUseNvm(cwd, logger) {
|
|
63169
63169
|
}
|
63170
63170
|
}
|
63171
63171
|
|
63172
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
63172
|
+
// ../../../../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
|
63173
63173
|
var AppAPI = class {
|
63174
63174
|
async checkEnvironment(nodeVersion) {
|
63175
63175
|
if (import_utils14.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
@@ -63258,6 +63258,7 @@ var AppAPI = class {
|
|
63258
63258
|
}
|
63259
63259
|
async forgeTemplate(templatePattern, filter, rename, parameters, type = "handlebars") {
|
63260
63260
|
try {
|
63261
|
+
this.generatorCore.logger.timing(`forgeTemplate`);
|
63261
63262
|
const { material } = this.generatorContext.current;
|
63262
63263
|
const resourceMap = await material.find(templatePattern, {
|
63263
63264
|
nodir: true,
|
@@ -63278,10 +63279,13 @@ var AppAPI = class {
|
|
63278
63279
|
this.generatorCore.logger.debug("base forging failed:", e);
|
63279
63280
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
63280
63281
|
throw new Error("base forging failed");
|
63282
|
+
} finally {
|
63283
|
+
this.generatorCore.logger.timing(`forgeTemplate`, true);
|
63281
63284
|
}
|
63282
63285
|
}
|
63283
63286
|
async renderTemplateByFileType(templatePattern, filter, rename, parameters) {
|
63284
63287
|
try {
|
63288
|
+
this.generatorCore.logger.timing(`renderTemplateByFileType`);
|
63285
63289
|
const { material } = this.generatorContext.current;
|
63286
63290
|
const resourceMap = await material.find(templatePattern, {
|
63287
63291
|
nodir: true,
|
@@ -63312,6 +63316,8 @@ var AppAPI = class {
|
|
63312
63316
|
this.generatorCore.logger.debug("base forging failed:", e);
|
63313
63317
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
63314
63318
|
throw new Error("base forging failed");
|
63319
|
+
} finally {
|
63320
|
+
this.generatorCore.logger.timing(`renderTemplateByFileType`, true);
|
63315
63321
|
}
|
63316
63322
|
}
|
63317
63323
|
async updateWorkspace(folder, workspaceName = "monorepo.code-workspace") {
|
@@ -63399,11 +63405,11 @@ var AppAPI = class {
|
|
63399
63405
|
}
|
63400
63406
|
};
|
63401
63407
|
|
63402
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63408
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
63403
63409
|
var import_comment_json2 = __toESM(require_src2());
|
63404
63410
|
var declarationUpdate = __toESM(require_dist());
|
63405
63411
|
|
63406
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63412
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
63407
63413
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
63408
63414
|
const originJsonValue = await resource.value();
|
63409
63415
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
@@ -63416,7 +63422,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
63416
63422
|
return newJsonString;
|
63417
63423
|
}
|
63418
63424
|
|
63419
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63425
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.1/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
63420
63426
|
var JsonAPI = class {
|
63421
63427
|
async get(resource) {
|
63422
63428
|
const originJsonValue = await resource.value();
|
@@ -63461,6 +63467,15 @@ var JsonAPI = class {
|
|
63461
63467
|
}
|
63462
63468
|
};
|
63463
63469
|
|
63470
|
+
// ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
|
63471
|
+
function _define_property2(obj, key, value) {
|
63472
|
+
if (key in obj) {
|
63473
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
63474
|
+
} else
|
63475
|
+
obj[key] = value;
|
63476
|
+
return obj;
|
63477
|
+
}
|
63478
|
+
|
63464
63479
|
// ../../../cli/plugin-i18n/dist/esm-node/index.js
|
63465
63480
|
var import_lodash7 = require("@modern-js/utils/lodash");
|
63466
63481
|
|
@@ -63519,8 +63534,8 @@ var I18n2 = class {
|
|
63519
63534
|
};
|
63520
63535
|
}
|
63521
63536
|
constructor() {
|
63522
|
-
|
63523
|
-
|
63537
|
+
_define_property2(this, "language", "en");
|
63538
|
+
_define_property2(this, "languageMap", {});
|
63524
63539
|
}
|
63525
63540
|
};
|
63526
63541
|
|
@@ -63561,7 +63576,8 @@ var ZH_LOCALE2 = {
|
|
63561
63576
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
63562
63577
|
proxy: "启用「全局代理」",
|
63563
63578
|
swc: "启用「SWC 编译」",
|
63564
|
-
rspack: "启用「Rspack 构建」(实验性)"
|
63579
|
+
rspack: "启用「Rspack 构建」(实验性)",
|
63580
|
+
module_doc: "启动「模块文档」功能"
|
63565
63581
|
},
|
63566
63582
|
element: {
|
63567
63583
|
self: "创建工程元素",
|
@@ -63659,7 +63675,8 @@ var EN_LOCALE2 = {
|
|
63659
63675
|
polyfill: "Enable UA-based Polyfill Feature",
|
63660
63676
|
proxy: "Enable Global Proxy",
|
63661
63677
|
swc: "Enable SWC Compile",
|
63662
|
-
rspack: "Enable Rspack Build (experimental)"
|
63678
|
+
rspack: "Enable Rspack Build (experimental)",
|
63679
|
+
module_doc: "Enable Module Doc"
|
63663
63680
|
},
|
63664
63681
|
element: {
|
63665
63682
|
self: "Create Element",
|
@@ -63738,31 +63755,13 @@ var SubSolution;
|
|
63738
63755
|
SubSolution2["MWA"] = "mwa";
|
63739
63756
|
SubSolution2["Module"] = "module";
|
63740
63757
|
})(SubSolution || (SubSolution = {}));
|
63741
|
-
var SolutionText = {
|
63742
|
-
[Solution.MWA]: () => i18n2.t(localeKeys2.solution.mwa),
|
63743
|
-
[Solution.Module]: () => i18n2.t(localeKeys2.solution.module),
|
63744
|
-
[Solution.Monorepo]: () => i18n2.t(localeKeys2.solution.monorepo)
|
63745
|
-
};
|
63746
|
-
var SubSolutionText = {
|
63747
|
-
[SubSolution.MWA]: () => i18n2.t(localeKeys2.sub_solution.mwa),
|
63748
|
-
[SubSolution.Module]: () => i18n2.t(localeKeys2.sub_solution.module)
|
63749
|
-
};
|
63750
63758
|
var SolutionToolsMap = {
|
63751
|
-
[
|
63752
|
-
[
|
63753
|
-
[
|
63759
|
+
["mwa"]: "@modern-js/app-tools",
|
63760
|
+
["module"]: "@modern-js/module-tools",
|
63761
|
+
["monorepo"]: "@modern-js/monorepo-tools"
|
63754
63762
|
};
|
63755
63763
|
var BaseGenerator = "@modern-js/base-generator";
|
63756
63764
|
var PackagesGenerator = "@modern-js/packages-generator";
|
63757
|
-
var SolutionGenerator = {
|
63758
|
-
[Solution.MWA]: "@modern-js/mwa-generator",
|
63759
|
-
[Solution.Module]: "@modern-js/module-generator",
|
63760
|
-
[Solution.Monorepo]: "@modern-js/monorepo-generator"
|
63761
|
-
};
|
63762
|
-
var SubSolutionGenerator = {
|
63763
|
-
[SubSolution.MWA]: "@modern-js/mwa-generator",
|
63764
|
-
[SubSolution.Module]: "@modern-js/module-generator"
|
63765
|
-
};
|
63766
63765
|
var ChangesetGenerator = "@modern-js/changeset-generator";
|
63767
63766
|
|
63768
63767
|
// ../../generator-common/dist/esm-node/common/packageManager.js
|
@@ -63773,15 +63772,15 @@ var PackageManager;
|
|
63773
63772
|
PackageManager2["Npm"] = "npm";
|
63774
63773
|
})(PackageManager || (PackageManager = {}));
|
63775
63774
|
var PackageManagerName = {
|
63776
|
-
[
|
63777
|
-
[
|
63778
|
-
[
|
63775
|
+
["pnpm"]: "pnpm",
|
63776
|
+
["yarn"]: "Yarn",
|
63777
|
+
["npm"]: "npm"
|
63779
63778
|
};
|
63780
63779
|
var getPackageManagerSchema = (extra = {}) => {
|
63781
63780
|
return {
|
63782
63781
|
type: "string",
|
63783
63782
|
title: i18n2.t(localeKeys2.packageManager.self),
|
63784
|
-
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !==
|
63783
|
+
enum: Object.values(PackageManager).filter((packageManager) => (extra === null || extra === void 0 ? void 0 : extra.solution) === "monorepo" ? packageManager !== "npm" : true).map((packageManager) => ({
|
63785
63784
|
value: packageManager,
|
63786
63785
|
label: PackageManagerName[packageManager]
|
63787
63786
|
})),
|
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,24 +23,24 @@
|
|
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/base-generator": "3.
|
37
|
-
"@modern-js/
|
38
|
-
"@modern-js/generator
|
39
|
-
"@modern-js/generator-utils": "3.
|
40
|
-
"@modern-js/plugin-i18n": "2.
|
41
|
-
"@modern-js/packages-generator": "3.
|
42
|
-
"@scripts/build": "2.
|
43
|
-
"@scripts/jest-config": "2.
|
36
|
+
"@modern-js/base-generator": "3.3.1",
|
37
|
+
"@modern-js/generator-common": "3.3.1",
|
38
|
+
"@modern-js/changeset-generator": "3.3.1",
|
39
|
+
"@modern-js/generator-utils": "3.3.1",
|
40
|
+
"@modern-js/plugin-i18n": "2.42.0",
|
41
|
+
"@modern-js/packages-generator": "3.3.1",
|
42
|
+
"@scripts/build": "2.42.0",
|
43
|
+
"@scripts/jest-config": "2.42.0"
|
44
44
|
},
|
45
45
|
"sideEffects": false,
|
46
46
|
"publishConfig": {
|