@modern-js/entry-generator 3.3.2 → 3.3.4
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 +39 -35
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -51406,12 +51406,12 @@ function _define_property2(obj, key, value) {
|
|
|
51406
51406
|
return obj;
|
|
51407
51407
|
}
|
|
51408
51408
|
|
|
51409
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
51409
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
51410
51410
|
var import_utils16 = require("@modern-js/utils");
|
|
51411
51411
|
var import_lodash7 = require("@modern-js/utils/lodash");
|
|
51412
51412
|
var import_comment_json = __toESM(require_src2());
|
|
51413
51413
|
|
|
51414
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
51414
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
51415
51415
|
var import_utils4 = require("@modern-js/utils");
|
|
51416
51416
|
async function canUseNvm() {
|
|
51417
51417
|
try {
|
|
@@ -51461,7 +51461,7 @@ async function canUsePnpm3() {
|
|
|
51461
51461
|
}
|
|
51462
51462
|
}
|
|
51463
51463
|
|
|
51464
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
51464
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
51465
51465
|
var import_utils5 = require("@modern-js/utils");
|
|
51466
51466
|
function execaWithStreamLog(command, args, options) {
|
|
51467
51467
|
const promise = (0, import_utils5.execa)(command, args, {
|
|
@@ -51557,7 +51557,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
51557
51557
|
throw new Error("please install pnpm first");
|
|
51558
51558
|
}
|
|
51559
51559
|
|
|
51560
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
51560
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
51561
51561
|
var NpmAPI = class {
|
|
51562
51562
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
51563
51563
|
return npmInstall({
|
|
@@ -51586,7 +51586,7 @@ var NpmAPI = class {
|
|
|
51586
51586
|
}
|
|
51587
51587
|
};
|
|
51588
51588
|
|
|
51589
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
51589
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
51590
51590
|
var import_utils7 = require("@modern-js/utils");
|
|
51591
51591
|
async function canUseGit() {
|
|
51592
51592
|
try {
|
|
@@ -51661,7 +51661,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
51661
51661
|
});
|
|
51662
51662
|
}
|
|
51663
51663
|
|
|
51664
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
51664
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
51665
51665
|
var GitAPI = class {
|
|
51666
51666
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
51667
51667
|
const canUse = await canUseGit();
|
|
@@ -51713,12 +51713,12 @@ var GitAPI = class {
|
|
|
51713
51713
|
}
|
|
51714
51714
|
};
|
|
51715
51715
|
|
|
51716
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
51716
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
51717
51717
|
var import_path2 = __toESM(require("path"));
|
|
51718
51718
|
var import_utils9 = require("@modern-js/utils");
|
|
51719
51719
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
51720
51720
|
|
|
51721
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
51721
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
51722
51722
|
var import_utils10 = require("@modern-js/utils");
|
|
51723
51723
|
async function fsExists(path7) {
|
|
51724
51724
|
try {
|
|
@@ -51729,7 +51729,7 @@ async function fsExists(path7) {
|
|
|
51729
51729
|
}
|
|
51730
51730
|
}
|
|
51731
51731
|
|
|
51732
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
51732
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
51733
51733
|
var import_handlebars = __toESM(require_lib());
|
|
51734
51734
|
function renderString(template, fullData, registers) {
|
|
51735
51735
|
const helpers = {
|
|
@@ -51743,7 +51743,7 @@ function renderString(template, fullData, registers) {
|
|
|
51743
51743
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
51744
51744
|
}
|
|
51745
51745
|
|
|
51746
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
51746
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
51747
51747
|
var HandlebarsAPI = class {
|
|
51748
51748
|
async registerHelp(helpers) {
|
|
51749
51749
|
this.registers.helpers = {
|
|
@@ -51793,13 +51793,13 @@ var HandlebarsAPI = class {
|
|
|
51793
51793
|
}
|
|
51794
51794
|
};
|
|
51795
51795
|
|
|
51796
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
51796
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
51797
51797
|
var import_ejs = __toESM(require_ejs());
|
|
51798
51798
|
function renderString2(template, fullData) {
|
|
51799
51799
|
return import_ejs.default.render(template, fullData) || "";
|
|
51800
51800
|
}
|
|
51801
51801
|
|
|
51802
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
51802
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
51803
51803
|
var EjsAPI = class {
|
|
51804
51804
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
51805
51805
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -51832,7 +51832,7 @@ var EjsAPI = class {
|
|
|
51832
51832
|
}
|
|
51833
51833
|
};
|
|
51834
51834
|
|
|
51835
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
51835
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.2_@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
51836
51836
|
var import_path3 = __toESM(require("path"));
|
|
51837
51837
|
var import_utils13 = require("@modern-js/utils");
|
|
51838
51838
|
var FsAPI = class {
|
|
@@ -52181,7 +52181,7 @@ function isEmpty(val, strict) {
|
|
|
52181
52181
|
return false;
|
|
52182
52182
|
}
|
|
52183
52183
|
|
|
52184
|
-
// ../../../../node_modules/.pnpm/tslib@2.
|
|
52184
|
+
// ../../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
|
|
52185
52185
|
var __assign = function() {
|
|
52186
52186
|
__assign = Object.assign || function __assign11(t) {
|
|
52187
52187
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -55795,7 +55795,7 @@ var observe = function(target, observer, deep) {
|
|
|
55795
55795
|
return addListener(target);
|
|
55796
55796
|
};
|
|
55797
55797
|
|
|
55798
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
55798
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/shared.js
|
|
55799
55799
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
|
55800
55800
|
var SchemaNestedMap = {
|
|
55801
55801
|
parent: true,
|
|
@@ -55982,7 +55982,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
|
55982
55982
|
});
|
|
55983
55983
|
};
|
|
55984
55984
|
|
|
55985
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
55985
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/compiler.js
|
|
55986
55986
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
|
55987
55987
|
var Registry = {
|
|
55988
55988
|
silent: false,
|
|
@@ -60749,7 +60749,7 @@ function onFieldInit(pattern, callback) {
|
|
|
60749
60749
|
}
|
|
60750
60750
|
}
|
|
60751
60751
|
|
|
60752
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
60752
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/transformer.js
|
|
60753
60753
|
var __read7 = function(o, n) {
|
|
60754
60754
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
60755
60755
|
if (!m)
|
|
@@ -60974,7 +60974,7 @@ var transformFieldProps = function(schema, options) {
|
|
|
60974
60974
|
};
|
|
60975
60975
|
};
|
|
60976
60976
|
|
|
60977
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
60977
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/patches.js
|
|
60978
60978
|
var __assign9 = function() {
|
|
60979
60979
|
__assign9 = Object.assign || function(t) {
|
|
60980
60980
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -61023,7 +61023,7 @@ var enablePolyfills = function(versions) {
|
|
|
61023
61023
|
}
|
|
61024
61024
|
};
|
|
61025
61025
|
|
|
61026
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
61026
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
|
61027
61027
|
var __assign10 = function() {
|
|
61028
61028
|
__assign10 = Object.assign || function(t) {
|
|
61029
61029
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -61180,7 +61180,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
|
61180
61180
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
|
61181
61181
|
};
|
|
61182
61182
|
|
|
61183
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
|
61183
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/schema.js
|
|
61184
61184
|
var Schema = (
|
|
61185
61185
|
/** @class */
|
|
61186
61186
|
function() {
|
|
@@ -61416,10 +61416,10 @@ var Schema = (
|
|
|
61416
61416
|
}()
|
|
61417
61417
|
);
|
|
61418
61418
|
|
|
61419
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
61419
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
61420
61420
|
var import_inquirer = __toESM(require_inquirer());
|
|
61421
61421
|
|
|
61422
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
61422
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
61423
61423
|
var import_lodash3 = require("@modern-js/utils/lodash");
|
|
61424
61424
|
function validateSchema(schema) {
|
|
61425
61425
|
const { type, properties } = schema;
|
|
@@ -61511,7 +61511,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
61511
61511
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
61512
61512
|
}
|
|
61513
61513
|
|
|
61514
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
61514
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
61515
61515
|
var compileRule = (rule, scope) => {
|
|
61516
61516
|
const state = Schema.compile(rule, {
|
|
61517
61517
|
$self: {},
|
|
@@ -61615,7 +61615,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
61615
61615
|
return answers;
|
|
61616
61616
|
}
|
|
61617
61617
|
|
|
61618
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
61618
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
61619
61619
|
var CLIReader = class {
|
|
61620
61620
|
getAnswers() {
|
|
61621
61621
|
return this.answers;
|
|
@@ -61646,7 +61646,7 @@ var CLIReader = class {
|
|
|
61646
61646
|
}
|
|
61647
61647
|
};
|
|
61648
61648
|
|
|
61649
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61649
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
61650
61650
|
var import_inquirer2 = __toESM(require_inquirer2());
|
|
61651
61651
|
|
|
61652
61652
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -61712,7 +61712,7 @@ var I18n2 = class {
|
|
|
61712
61712
|
}
|
|
61713
61713
|
};
|
|
61714
61714
|
|
|
61715
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61715
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
61716
61716
|
var ZH_LOCALE2 = {
|
|
61717
61717
|
environment: {
|
|
61718
61718
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -61739,7 +61739,7 @@ var ZH_LOCALE2 = {
|
|
|
61739
61739
|
}
|
|
61740
61740
|
};
|
|
61741
61741
|
|
|
61742
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61742
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
61743
61743
|
var EN_LOCALE2 = {
|
|
61744
61744
|
environment: {
|
|
61745
61745
|
node_version: "please upgrade node to lts version",
|
|
@@ -61766,14 +61766,14 @@ var EN_LOCALE2 = {
|
|
|
61766
61766
|
}
|
|
61767
61767
|
};
|
|
61768
61768
|
|
|
61769
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61769
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
61770
61770
|
var i18n2 = new I18n2();
|
|
61771
61771
|
var localeKeys2 = i18n2.init("zh", {
|
|
61772
61772
|
zh: ZH_LOCALE2,
|
|
61773
61773
|
en: EN_LOCALE2
|
|
61774
61774
|
});
|
|
61775
61775
|
|
|
61776
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61776
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
61777
61777
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
|
61778
61778
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
61779
61779
|
for (const question of questions) {
|
|
@@ -61801,7 +61801,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
61801
61801
|
return questions;
|
|
61802
61802
|
}
|
|
61803
61803
|
|
|
61804
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61804
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
61805
61805
|
var import_path5 = __toESM(require("path"));
|
|
61806
61806
|
var import_utils15 = require("@modern-js/utils");
|
|
61807
61807
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -61849,7 +61849,7 @@ async function checkUseNvm(cwd, logger) {
|
|
|
61849
61849
|
}
|
|
61850
61850
|
}
|
|
61851
61851
|
|
|
61852
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
61852
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.2_@modern-js+codesmith@2.3.2_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
61853
61853
|
var AppAPI = class {
|
|
61854
61854
|
async checkEnvironment(nodeVersion) {
|
|
61855
61855
|
if (import_utils16.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -61938,7 +61938,8 @@ var AppAPI = class {
|
|
|
61938
61938
|
}
|
|
61939
61939
|
async forgeTemplate(templatePattern, filter, rename, parameters, type = "handlebars") {
|
|
61940
61940
|
try {
|
|
61941
|
-
|
|
61941
|
+
var _this_generatorCore_logger_timing, _this_generatorCore_logger;
|
|
61942
|
+
(_this_generatorCore_logger = this.generatorCore.logger) === null || _this_generatorCore_logger === void 0 ? void 0 : (_this_generatorCore_logger_timing = _this_generatorCore_logger.timing) === null || _this_generatorCore_logger_timing === void 0 ? void 0 : _this_generatorCore_logger_timing.call(_this_generatorCore_logger, `forgeTemplate`);
|
|
61942
61943
|
const { material } = this.generatorContext.current;
|
|
61943
61944
|
const resourceMap = await material.find(templatePattern, {
|
|
61944
61945
|
nodir: true,
|
|
@@ -61960,12 +61961,14 @@ var AppAPI = class {
|
|
|
61960
61961
|
this.generatorCore.logger.warn(i18n2.t(localeKeys2.templated.failed));
|
|
61961
61962
|
throw new Error("base forging failed");
|
|
61962
61963
|
} finally {
|
|
61963
|
-
|
|
61964
|
+
var _this_generatorCore_logger_timing1, _this_generatorCore_logger1;
|
|
61965
|
+
(_this_generatorCore_logger1 = this.generatorCore.logger) === null || _this_generatorCore_logger1 === void 0 ? void 0 : (_this_generatorCore_logger_timing1 = _this_generatorCore_logger1.timing) === null || _this_generatorCore_logger_timing1 === void 0 ? void 0 : _this_generatorCore_logger_timing1.call(_this_generatorCore_logger1, `forgeTemplate`, true);
|
|
61964
61966
|
}
|
|
61965
61967
|
}
|
|
61966
61968
|
async renderTemplateByFileType(templatePattern, filter, rename, parameters) {
|
|
61967
61969
|
try {
|
|
61968
|
-
|
|
61970
|
+
var _this_generatorCore_logger_timing, _this_generatorCore_logger;
|
|
61971
|
+
(_this_generatorCore_logger = this.generatorCore.logger) === null || _this_generatorCore_logger === void 0 ? void 0 : (_this_generatorCore_logger_timing = _this_generatorCore_logger.timing) === null || _this_generatorCore_logger_timing === void 0 ? void 0 : _this_generatorCore_logger_timing.call(_this_generatorCore_logger, `renderTemplateByFileType`);
|
|
61969
61972
|
const { material } = this.generatorContext.current;
|
|
61970
61973
|
const resourceMap = await material.find(templatePattern, {
|
|
61971
61974
|
nodir: true,
|
|
@@ -61997,7 +62000,8 @@ var AppAPI = class {
|
|
|
61997
62000
|
this.generatorCore.logger.warn(i18n2.t(localeKeys2.templated.failed));
|
|
61998
62001
|
throw new Error("base forging failed");
|
|
61999
62002
|
} finally {
|
|
62000
|
-
|
|
62003
|
+
var _this_generatorCore_logger_timing1, _this_generatorCore_logger1;
|
|
62004
|
+
(_this_generatorCore_logger1 = this.generatorCore.logger) === null || _this_generatorCore_logger1 === void 0 ? void 0 : (_this_generatorCore_logger_timing1 = _this_generatorCore_logger1.timing) === null || _this_generatorCore_logger_timing1 === void 0 ? void 0 : _this_generatorCore_logger_timing1.call(_this_generatorCore_logger1, `renderTemplateByFileType`, true);
|
|
62001
62005
|
}
|
|
62002
62006
|
}
|
|
62003
62007
|
async updateWorkspace(folder, workspaceName = "monorepo.code-workspace") {
|
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.4",
|
|
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.43.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-handlebars": "2.3.
|
|
29
|
+
"@modern-js/codesmith": "2.3.2",
|
|
30
|
+
"@modern-js/codesmith-api-app": "2.3.2",
|
|
31
|
+
"@modern-js/codesmith-api-handlebars": "2.3.2",
|
|
32
32
|
"@types/jest": "^29",
|
|
33
33
|
"@types/node": "^14",
|
|
34
34
|
"jest": "^29",
|
|
35
35
|
"typescript": "^5",
|
|
36
|
-
"@modern-js/generator-common": "3.3.
|
|
37
|
-
"@modern-js/generator-utils": "3.3.
|
|
38
|
-
"@
|
|
39
|
-
"@scripts/jest-config": "2.
|
|
40
|
-
"@
|
|
36
|
+
"@modern-js/generator-common": "3.3.4",
|
|
37
|
+
"@modern-js/generator-utils": "3.3.4",
|
|
38
|
+
"@modern-js/plugin-i18n": "2.43.0",
|
|
39
|
+
"@scripts/jest-config": "2.43.0",
|
|
40
|
+
"@scripts/build": "2.43.0"
|
|
41
41
|
},
|
|
42
42
|
"sideEffects": false,
|
|
43
43
|
"publishConfig": {
|