@modern-js/monorepo-generator 3.3.5 → 3.3.7
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 +28 -28
- package/package.json +13 -13
package/dist/index.js
CHANGED
@@ -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.3/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.3/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.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3/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.3/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.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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.3_@modern-js+codesmith@2.3.3_typescript@5.3.3/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")) {
|
@@ -63409,11 +63409,11 @@ var AppAPI = class {
|
|
63409
63409
|
}
|
63410
63410
|
};
|
63411
63411
|
|
63412
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63412
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
63413
63413
|
var import_comment_json2 = __toESM(require_src2());
|
63414
63414
|
var declarationUpdate = __toESM(require_dist());
|
63415
63415
|
|
63416
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63416
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
63417
63417
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
63418
63418
|
const originJsonValue = await resource.value();
|
63419
63419
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
@@ -63426,7 +63426,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
63426
63426
|
return newJsonString;
|
63427
63427
|
}
|
63428
63428
|
|
63429
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
63429
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.3/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
63430
63430
|
var JsonAPI = class {
|
63431
63431
|
async get(resource) {
|
63432
63432
|
const originJsonValue = await resource.value();
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.3.
|
18
|
+
"version": "3.3.7",
|
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.46.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.3",
|
30
|
+
"@modern-js/codesmith-api-app": "2.3.3",
|
31
|
+
"@modern-js/codesmith-api-json": "2.3.3",
|
32
32
|
"@types/jest": "^29",
|
33
33
|
"@types/node": "^14",
|
34
34
|
"jest": "^29",
|
35
35
|
"typescript": "^5",
|
36
|
-
"@modern-js/
|
37
|
-
"@modern-js/generator-
|
38
|
-
"@modern-js/
|
39
|
-
"@modern-js/
|
40
|
-
"@
|
41
|
-
"@
|
42
|
-
"@
|
43
|
-
"@
|
36
|
+
"@modern-js/base-generator": "3.3.7",
|
37
|
+
"@modern-js/generator-common": "3.3.7",
|
38
|
+
"@modern-js/generator-utils": "3.3.7",
|
39
|
+
"@modern-js/changeset-generator": "3.3.7",
|
40
|
+
"@modern-js/plugin-i18n": "2.46.0",
|
41
|
+
"@scripts/jest-config": "2.46.0",
|
42
|
+
"@modern-js/packages-generator": "3.3.7",
|
43
|
+
"@scripts/build": "2.46.0"
|
44
44
|
},
|
45
45
|
"sideEffects": false,
|
46
46
|
"publishConfig": {
|