@modern-js/repo-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 +87 -77
- package/package.json +13 -13
package/dist/index.js
CHANGED
@@ -60919,12 +60919,12 @@ function _define_property(obj, key, value) {
|
|
60919
60919
|
return obj;
|
60920
60920
|
}
|
60921
60921
|
|
60922
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
60922
|
+
// ../../../../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
|
60923
60923
|
var import_utils23 = require("@modern-js/utils");
|
60924
60924
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
60925
60925
|
var import_comment_json = __toESM(require_src2());
|
60926
60926
|
|
60927
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
60927
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
60928
60928
|
var import_utils = require("@modern-js/utils");
|
60929
60929
|
async function canUseNvm() {
|
60930
60930
|
try {
|
@@ -60974,7 +60974,7 @@ async function canUsePnpm() {
|
|
60974
60974
|
}
|
60975
60975
|
}
|
60976
60976
|
|
60977
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
60977
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
60978
60978
|
var import_utils2 = require("@modern-js/utils");
|
60979
60979
|
function execaWithStreamLog(command, args, options) {
|
60980
60980
|
const promise = (0, import_utils2.execa)(command, args, {
|
@@ -61070,7 +61070,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
61070
61070
|
throw new Error("please install pnpm first");
|
61071
61071
|
}
|
61072
61072
|
|
61073
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
61073
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.2/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
61074
61074
|
var NpmAPI = class {
|
61075
61075
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
61076
61076
|
return npmInstall({
|
@@ -61099,7 +61099,7 @@ var NpmAPI = class {
|
|
61099
61099
|
}
|
61100
61100
|
};
|
61101
61101
|
|
61102
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
61102
|
+
// ../../../../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
|
61103
61103
|
var import_utils4 = require("@modern-js/utils");
|
61104
61104
|
async function canUseGit() {
|
61105
61105
|
try {
|
@@ -61174,7 +61174,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
61174
61174
|
});
|
61175
61175
|
}
|
61176
61176
|
|
61177
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
61177
|
+
// ../../../../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
|
61178
61178
|
var GitAPI = class {
|
61179
61179
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
61180
61180
|
const canUse = await canUseGit();
|
@@ -61226,7 +61226,7 @@ var GitAPI = class {
|
|
61226
61226
|
}
|
61227
61227
|
};
|
61228
61228
|
|
61229
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61229
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
61230
61230
|
var LoggerLevel;
|
61231
61231
|
(function(LoggerLevel2) {
|
61232
61232
|
LoggerLevel2["Error"] = "error";
|
@@ -61247,7 +61247,7 @@ var LevelPriority = [
|
|
61247
61247
|
LoggerLevel.Stream
|
61248
61248
|
];
|
61249
61249
|
|
61250
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61250
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
61251
61251
|
var import_utils6 = require("@modern-js/utils");
|
61252
61252
|
var Logger = class {
|
61253
61253
|
get currentLevelIndex() {
|
@@ -61308,23 +61308,23 @@ var Logger = class {
|
|
61308
61308
|
}
|
61309
61309
|
};
|
61310
61310
|
|
61311
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61311
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
61312
61312
|
var import_path7 = __toESM(require("path"));
|
61313
61313
|
|
61314
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61314
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
61315
61315
|
var import_path4 = __toESM(require("path"));
|
61316
61316
|
var import_events = require("events");
|
61317
61317
|
var import_utils11 = require("@modern-js/utils");
|
61318
61318
|
|
61319
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61319
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
61320
61320
|
var import_path2 = __toESM(require("path"));
|
61321
61321
|
var import_utils8 = require("@modern-js/utils");
|
61322
61322
|
|
61323
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61323
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
61324
61324
|
var import_path = __toESM(require("path"));
|
61325
61325
|
var import_utils7 = require("@modern-js/utils");
|
61326
61326
|
|
61327
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61327
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
61328
61328
|
var IMAGE_EXT_LIST = [
|
61329
61329
|
".jpg",
|
61330
61330
|
".jpeg",
|
@@ -61338,7 +61338,7 @@ var IMAGE_EXT_LIST = [
|
|
61338
61338
|
".wmf"
|
61339
61339
|
];
|
61340
61340
|
|
61341
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61341
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
61342
61342
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
61343
61343
|
var FsResource = class {
|
61344
61344
|
async value() {
|
@@ -61364,7 +61364,7 @@ var FsResource = class {
|
|
61364
61364
|
}
|
61365
61365
|
};
|
61366
61366
|
|
61367
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61367
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
61368
61368
|
var promisifyGlob = function(pattern, options) {
|
61369
61369
|
return new Promise((resolve, reject) => {
|
61370
61370
|
(0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
@@ -61392,7 +61392,7 @@ var FsMaterial = class {
|
|
61392
61392
|
}
|
61393
61393
|
};
|
61394
61394
|
|
61395
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61395
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
61396
61396
|
var nodeRequire = (path18) => {
|
61397
61397
|
try {
|
61398
61398
|
const module2 = __non_webpack_require__(path18);
|
@@ -61409,11 +61409,11 @@ var nodeRequire = (path18) => {
|
|
61409
61409
|
}
|
61410
61410
|
};
|
61411
61411
|
|
61412
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61412
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
61413
61413
|
var import_path3 = __toESM(require("path"));
|
61414
61414
|
var import_utils10 = require("@modern-js/utils");
|
61415
61415
|
|
61416
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61416
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
61417
61417
|
var import_utils9 = require("@modern-js/utils");
|
61418
61418
|
async function fsExists(path18) {
|
61419
61419
|
try {
|
@@ -61424,7 +61424,7 @@ async function fsExists(path18) {
|
|
61424
61424
|
}
|
61425
61425
|
}
|
61426
61426
|
|
61427
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61427
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
61428
61428
|
var MaxTimes = 5;
|
61429
61429
|
async function getGeneratorDir(generator) {
|
61430
61430
|
let result = generator;
|
@@ -61443,7 +61443,7 @@ async function getGeneratorDir(generator) {
|
|
61443
61443
|
return result;
|
61444
61444
|
}
|
61445
61445
|
|
61446
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61446
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
61447
61447
|
var GeneratorCore = class {
|
61448
61448
|
get lifeCycleMethod() {
|
61449
61449
|
return {
|
@@ -61535,7 +61535,8 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61535
61535
|
return Promise.resolve();
|
61536
61536
|
}
|
61537
61537
|
async loadGenerator(generator) {
|
61538
|
-
|
61538
|
+
var _this_logger_timing, _this_logger, _this_logger_timing1, _this_logger1;
|
61539
|
+
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `loadGenerator ${generator}`);
|
61539
61540
|
let generatorPath = generator;
|
61540
61541
|
if (generator.startsWith("file:")) {
|
61541
61542
|
generatorPath = import_path4.default.join(this.basePath, generator.slice(5));
|
@@ -61546,7 +61547,7 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61546
61547
|
return {};
|
61547
61548
|
}
|
61548
61549
|
this.logger.debug("[runGenerator] task.generator loaded");
|
61549
|
-
this.logger.timing(`loadGenerator ${generator}`, true);
|
61550
|
+
(_this_logger1 = this.logger) === null || _this_logger1 === void 0 ? void 0 : (_this_logger_timing1 = _this_logger1.timing) === null || _this_logger_timing1 === void 0 ? void 0 : _this_logger_timing1.call(_this_logger1, `loadGenerator ${generator}`, true);
|
61550
61551
|
const generatorScript = nodeRequire(generatorPkg.basePath);
|
61551
61552
|
if (typeof generatorScript !== "function") {
|
61552
61553
|
this.logger.debug(`generator module [${pkgJson.name}] export default is not a function`, generatorScript);
|
@@ -61559,7 +61560,8 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61559
61560
|
};
|
61560
61561
|
}
|
61561
61562
|
async runGenerator(generator, config = {}) {
|
61562
|
-
|
61563
|
+
var _this_logger_timing, _this_logger, _this_logger_timing1, _this_logger1;
|
61564
|
+
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `runGenerator ${generator}`);
|
61563
61565
|
const spinner = (0, import_utils11.ora)({
|
61564
61566
|
text: "Load Generator...",
|
61565
61567
|
spinner: "runner"
|
@@ -61577,10 +61579,11 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61577
61579
|
this.setbasePath(this._context.current.material.basePath);
|
61578
61580
|
await generatorScript(this._context, this);
|
61579
61581
|
this.setCurrent(null);
|
61580
|
-
this.logger.timing(`runGenerator ${generator}`, true);
|
61582
|
+
(_this_logger1 = this.logger) === null || _this_logger1 === void 0 ? void 0 : (_this_logger_timing1 = _this_logger1.timing) === null || _this_logger_timing1 === void 0 ? void 0 : _this_logger_timing1.call(_this_logger1, `runGenerator ${generator}`, true);
|
61581
61583
|
}
|
61582
61584
|
async runSubGenerator(subGenerator, relativePwdPath = "", config) {
|
61583
|
-
|
61585
|
+
var _this_logger_timing, _this_logger, _this_logger_timing1, _this_logger1;
|
61586
|
+
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `runSubGenerator ${subGenerator}`);
|
61584
61587
|
const spinner = (0, import_utils11.ora)({
|
61585
61588
|
text: "Load Generator...",
|
61586
61589
|
spinner: "runner"
|
@@ -61613,7 +61616,7 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61613
61616
|
await generatorScript(subContext, this);
|
61614
61617
|
this.setOutputPath(preOutputPath);
|
61615
61618
|
this.setbasePath(preBasePath);
|
61616
|
-
this.logger.timing(`runSubGenerator ${subGenerator}`, true);
|
61619
|
+
(_this_logger1 = this.logger) === null || _this_logger1 === void 0 ? void 0 : (_this_logger_timing1 = _this_logger1.timing) === null || _this_logger_timing1 === void 0 ? void 0 : _this_logger_timing1.call(_this_logger1, `runSubGenerator ${subGenerator}`, true);
|
61617
61620
|
}
|
61618
61621
|
constructor({ logger: logger2, materialsManager, outputPath }) {
|
61619
61622
|
_define_property(this, "logger", void 0);
|
@@ -61645,10 +61648,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
61645
61648
|
}
|
61646
61649
|
};
|
61647
61650
|
|
61648
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61651
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
61649
61652
|
var import_path6 = __toESM(require("path"));
|
61650
61653
|
|
61651
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61654
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
61652
61655
|
var import_path5 = __toESM(require("path"));
|
61653
61656
|
var import_utils12 = require("@modern-js/utils");
|
61654
61657
|
async function canUseYarn2() {
|
@@ -61729,7 +61732,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
61729
61732
|
}
|
61730
61733
|
}
|
61731
61734
|
|
61732
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61735
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
61733
61736
|
async function timeoutPromise(promise, ms, reason = "Operation") {
|
61734
61737
|
let timeoutId = null;
|
61735
61738
|
const delayPromise = (ms2) => new Promise((resolve) => {
|
@@ -61751,20 +61754,20 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
61751
61754
|
}
|
61752
61755
|
}
|
61753
61756
|
|
61754
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61757
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
61755
61758
|
var import_os = __toESM(require("os"));
|
61756
61759
|
var import_utils15 = require("@modern-js/utils");
|
61757
61760
|
var import_axios = __toESM(require_axios2());
|
61758
61761
|
var import_tar = __toESM(require_tar());
|
61759
61762
|
|
61760
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61763
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
61761
61764
|
var import_utils13 = require("@modern-js/utils");
|
61762
61765
|
|
61763
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61766
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
61764
61767
|
var NPM_API_TIMEOUT = 3e4;
|
61765
61768
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
61766
61769
|
|
61767
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61770
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
61768
61771
|
async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
61769
61772
|
const { registryUrl } = options || {};
|
61770
61773
|
const params = [
|
@@ -61787,7 +61790,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
61787
61790
|
}
|
61788
61791
|
}
|
61789
61792
|
|
61790
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61793
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
61791
61794
|
var import_utils14 = require("@modern-js/utils");
|
61792
61795
|
async function getNpmVersion(packageName, options) {
|
61793
61796
|
const { version, registryUrl } = options || {};
|
@@ -61809,7 +61812,7 @@ async function getNpmVersion(packageName, options) {
|
|
61809
61812
|
return stdout;
|
61810
61813
|
}
|
61811
61814
|
|
61812
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61815
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
61813
61816
|
async function isValidCache(cacheDir) {
|
61814
61817
|
if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
|
61815
61818
|
const preCacheTimeStr = await import_utils15.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
@@ -61889,7 +61892,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
|
|
61889
61892
|
return targetDir;
|
61890
61893
|
}
|
61891
61894
|
|
61892
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61895
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
61893
61896
|
var import_utils16 = require("@modern-js/utils");
|
61894
61897
|
function getPackageInfo(packageName) {
|
61895
61898
|
if (!packageName) {
|
@@ -61914,7 +61917,7 @@ function getPackageInfo(packageName) {
|
|
61914
61917
|
};
|
61915
61918
|
}
|
61916
61919
|
|
61917
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61920
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
61918
61921
|
var MaterialsManager = class {
|
61919
61922
|
loadLocalGenerator(generator) {
|
61920
61923
|
if (!import_path6.default.isAbsolute(generator)) {
|
@@ -61945,10 +61948,11 @@ var MaterialsManager = class {
|
|
61945
61948
|
}
|
61946
61949
|
};
|
61947
61950
|
|
61948
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
61951
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.2/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
61949
61952
|
var CodeSmith = class {
|
61950
61953
|
async forge({ tasks, pwd }) {
|
61951
|
-
|
61954
|
+
var _this_logger_timing, _this_logger;
|
61955
|
+
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, "CodeSmith all tasks");
|
61952
61956
|
this.core = new GeneratorCore({
|
61953
61957
|
logger: this.logger,
|
61954
61958
|
materialsManager: this.materialsManager,
|
@@ -61963,17 +61967,19 @@ var CodeSmith = class {
|
|
61963
61967
|
this.logger.error("run task error:", e);
|
61964
61968
|
throw new Error("run task error");
|
61965
61969
|
} finally {
|
61966
|
-
|
61970
|
+
var _this_logger_timing1, _this_logger1;
|
61971
|
+
(_this_logger1 = this.logger) === null || _this_logger1 === void 0 ? void 0 : (_this_logger_timing1 = _this_logger1.timing) === null || _this_logger_timing1 === void 0 ? void 0 : _this_logger_timing1.call(_this_logger1, "CodeSmith all tasks", true);
|
61967
61972
|
}
|
61968
61973
|
}
|
61969
61974
|
async runTask(task) {
|
61975
|
+
var _this_logger_timing, _this_logger, _this_logger_timing1, _this_logger1;
|
61970
61976
|
if (!this.core) {
|
61971
61977
|
throw new Error("no core in 'runTask'");
|
61972
61978
|
}
|
61973
61979
|
const { generator, config } = task;
|
61974
|
-
this.logger.timing(`runTask ${generator}`);
|
61980
|
+
(_this_logger = this.logger) === null || _this_logger === void 0 ? void 0 : (_this_logger_timing = _this_logger.timing) === null || _this_logger_timing === void 0 ? void 0 : _this_logger_timing.call(_this_logger, `runTask ${generator}`);
|
61975
61981
|
await this.core.runGenerator(generator, config);
|
61976
|
-
this.logger.timing(`runTask ${generator}`, true);
|
61982
|
+
(_this_logger1 = this.logger) === null || _this_logger1 === void 0 ? void 0 : (_this_logger_timing1 = _this_logger1.timing) === null || _this_logger_timing1 === void 0 ? void 0 : _this_logger_timing1.call(_this_logger1, `runTask ${generator}`, true);
|
61977
61983
|
}
|
61978
61984
|
constructor({ debug, logger: logger2, registryUrl }) {
|
61979
61985
|
_define_property(this, "core", void 0);
|
@@ -61986,7 +61992,7 @@ var CodeSmith = class {
|
|
61986
61992
|
}
|
61987
61993
|
};
|
61988
61994
|
|
61989
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
61995
|
+
// ../../../../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
|
61990
61996
|
var import_handlebars = __toESM(require_lib());
|
61991
61997
|
function renderString(template, fullData, registers) {
|
61992
61998
|
const helpers = {
|
@@ -62000,7 +62006,7 @@ function renderString(template, fullData, registers) {
|
|
62000
62006
|
return import_handlebars.default.compile(template)(fullData) || "";
|
62001
62007
|
}
|
62002
62008
|
|
62003
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
62009
|
+
// ../../../../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
|
62004
62010
|
var HandlebarsAPI = class {
|
62005
62011
|
async registerHelp(helpers) {
|
62006
62012
|
this.registers.helpers = {
|
@@ -62050,13 +62056,13 @@ var HandlebarsAPI = class {
|
|
62050
62056
|
}
|
62051
62057
|
};
|
62052
62058
|
|
62053
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
62059
|
+
// ../../../../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
|
62054
62060
|
var import_ejs = __toESM(require_ejs());
|
62055
62061
|
function renderString2(template, fullData) {
|
62056
62062
|
return import_ejs.default.render(template, fullData) || "";
|
62057
62063
|
}
|
62058
62064
|
|
62059
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
62065
|
+
// ../../../../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
|
62060
62066
|
var EjsAPI = class {
|
62061
62067
|
async renderTemplate(templateResource, target, parameters = {}) {
|
62062
62068
|
if (templateResource._type !== FS_RESOURCE) {
|
@@ -62089,7 +62095,7 @@ var EjsAPI = class {
|
|
62089
62095
|
}
|
62090
62096
|
};
|
62091
62097
|
|
62092
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
62098
|
+
// ../../../../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
|
62093
62099
|
var import_path8 = __toESM(require("path"));
|
62094
62100
|
var import_utils20 = require("@modern-js/utils");
|
62095
62101
|
var FsAPI = class {
|
@@ -62117,7 +62123,7 @@ var FsAPI = class {
|
|
62117
62123
|
}
|
62118
62124
|
};
|
62119
62125
|
|
62120
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
62126
|
+
// ../../../../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/index.js
|
62121
62127
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
62122
62128
|
|
62123
62129
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
@@ -62441,7 +62447,7 @@ function isEmpty(val, strict) {
|
|
62441
62447
|
return false;
|
62442
62448
|
}
|
62443
62449
|
|
62444
|
-
// ../../../../node_modules/.pnpm/tslib@2.
|
62450
|
+
// ../../../../node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.mjs
|
62445
62451
|
var __assign = function() {
|
62446
62452
|
__assign = Object.assign || function __assign11(t) {
|
62447
62453
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -62471,7 +62477,7 @@ function __generator(thisArg, body) {
|
|
62471
62477
|
function step(op) {
|
62472
62478
|
if (f)
|
62473
62479
|
throw new TypeError("Generator is already executing.");
|
62474
|
-
while (_)
|
62480
|
+
while (g && (g = 0, op[0] && (_ = 0)), _)
|
62475
62481
|
try {
|
62476
62482
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
62477
62483
|
return t;
|
@@ -66131,7 +66137,7 @@ var observe = function(target, observer, deep) {
|
|
66131
66137
|
return addListener(target);
|
66132
66138
|
};
|
66133
66139
|
|
66134
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
66140
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/shared.js
|
66135
66141
|
var REVA_ACTIONS_KEY = Symbol.for("__REVA_ACTIONS");
|
66136
66142
|
var SchemaNestedMap = {
|
66137
66143
|
parent: true,
|
@@ -66318,7 +66324,7 @@ var patchStateFormSchema = function(targetState, pattern, compiled) {
|
|
66318
66324
|
});
|
66319
66325
|
};
|
66320
66326
|
|
66321
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
66327
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/compiler.js
|
66322
66328
|
var ExpRE = /^\s*\{\{([\s\S]*)\}\}\s*$/;
|
66323
66329
|
var Registry = {
|
66324
66330
|
silent: false,
|
@@ -71085,7 +71091,7 @@ function onFieldInit(pattern, callback) {
|
|
71085
71091
|
}
|
71086
71092
|
}
|
71087
71093
|
|
71088
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
71094
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/transformer.js
|
71089
71095
|
var __read7 = function(o, n) {
|
71090
71096
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
71091
71097
|
if (!m)
|
@@ -71310,7 +71316,7 @@ var transformFieldProps = function(schema, options) {
|
|
71310
71316
|
};
|
71311
71317
|
};
|
71312
71318
|
|
71313
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
71319
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/patches.js
|
71314
71320
|
var __assign9 = function() {
|
71315
71321
|
__assign9 = Object.assign || function(t) {
|
71316
71322
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -71359,7 +71365,7 @@ var enablePolyfills = function(versions) {
|
|
71359
71365
|
}
|
71360
71366
|
};
|
71361
71367
|
|
71362
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
71368
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/polyfills/SPECIFICATION_1_0.js
|
71363
71369
|
var __assign10 = function() {
|
71364
71370
|
__assign10 = Object.assign || function(t) {
|
71365
71371
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -71516,7 +71522,7 @@ var registerTypeDefaultComponents = function(maps) {
|
|
71516
71522
|
Object.assign(TYPE_DEFAULT_COMPONENTS, maps);
|
71517
71523
|
};
|
71518
71524
|
|
71519
|
-
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.
|
71525
|
+
// ../../../../node_modules/.pnpm/@formily+json-schema@2.2.24_typescript@5.3.3/node_modules/@formily/json-schema/esm/schema.js
|
71520
71526
|
var Schema = (
|
71521
71527
|
/** @class */
|
71522
71528
|
function() {
|
@@ -71752,10 +71758,10 @@ var Schema = (
|
|
71752
71758
|
}()
|
71753
71759
|
);
|
71754
71760
|
|
71755
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
71761
|
+
// ../../../../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
|
71756
71762
|
var import_inquirer = __toESM(require_inquirer());
|
71757
71763
|
|
71758
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
71764
|
+
// ../../../../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
|
71759
71765
|
var import_lodash = require("@modern-js/utils/lodash");
|
71760
71766
|
function validateSchema(schema) {
|
71761
71767
|
const { type, properties } = schema;
|
@@ -71847,7 +71853,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
71847
71853
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
71848
71854
|
}
|
71849
71855
|
|
71850
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
71856
|
+
// ../../../../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
|
71851
71857
|
var compileRule = (rule, scope) => {
|
71852
71858
|
const state = Schema.compile(rule, {
|
71853
71859
|
$self: {},
|
@@ -71951,7 +71957,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
71951
71957
|
return answers;
|
71952
71958
|
}
|
71953
71959
|
|
71954
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
71960
|
+
// ../../../../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
|
71955
71961
|
var CLIReader = class {
|
71956
71962
|
getAnswers() {
|
71957
71963
|
return this.answers;
|
@@ -71982,7 +71988,7 @@ var CLIReader = class {
|
|
71982
71988
|
}
|
71983
71989
|
};
|
71984
71990
|
|
71985
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
71991
|
+
// ../../../../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/index.js
|
71986
71992
|
var FormilyAPI = class {
|
71987
71993
|
mergeAnswers(answers, configValue) {
|
71988
71994
|
const inputData = (0, import_lodash2.merge)(answers, configValue);
|
@@ -72005,7 +72011,7 @@ var FormilyAPI = class {
|
|
72005
72011
|
}
|
72006
72012
|
};
|
72007
72013
|
|
72008
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72014
|
+
// ../../../../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
|
72009
72015
|
var import_inquirer3 = __toESM(require_inquirer2());
|
72010
72016
|
|
72011
72017
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
@@ -72071,7 +72077,7 @@ var I18n = class {
|
|
72071
72077
|
}
|
72072
72078
|
};
|
72073
72079
|
|
72074
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72080
|
+
// ../../../../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
|
72075
72081
|
var ZH_LOCALE = {
|
72076
72082
|
environment: {
|
72077
72083
|
node_version: "请升级 Node 版本至 LIS",
|
@@ -72098,7 +72104,7 @@ var ZH_LOCALE = {
|
|
72098
72104
|
}
|
72099
72105
|
};
|
72100
72106
|
|
72101
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72107
|
+
// ../../../../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
|
72102
72108
|
var EN_LOCALE = {
|
72103
72109
|
environment: {
|
72104
72110
|
node_version: "please upgrade node to lts version",
|
@@ -72125,14 +72131,14 @@ var EN_LOCALE = {
|
|
72125
72131
|
}
|
72126
72132
|
};
|
72127
72133
|
|
72128
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72134
|
+
// ../../../../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
|
72129
72135
|
var i18n = new I18n();
|
72130
72136
|
var localeKeys = i18n.init("zh", {
|
72131
72137
|
zh: ZH_LOCALE,
|
72132
72138
|
en: EN_LOCALE
|
72133
72139
|
});
|
72134
72140
|
|
72135
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72141
|
+
// ../../../../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
|
72136
72142
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
72137
72143
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
72138
72144
|
for (const question of questions) {
|
@@ -72160,7 +72166,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
72160
72166
|
return questions;
|
72161
72167
|
}
|
72162
72168
|
|
72163
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72169
|
+
// ../../../../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
|
72164
72170
|
var import_path10 = __toESM(require("path"));
|
72165
72171
|
var import_utils22 = require("@modern-js/utils");
|
72166
72172
|
var NODE_MAJOR_VERSION_MAP = {
|
@@ -72208,7 +72214,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
72208
72214
|
}
|
72209
72215
|
}
|
72210
72216
|
|
72211
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
72217
|
+
// ../../../../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
|
72212
72218
|
var AppAPI = class {
|
72213
72219
|
async checkEnvironment(nodeVersion) {
|
72214
72220
|
if (import_utils23.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
@@ -72297,7 +72303,8 @@ var AppAPI = class {
|
|
72297
72303
|
}
|
72298
72304
|
async forgeTemplate(templatePattern, filter, rename, parameters, type = "handlebars") {
|
72299
72305
|
try {
|
72300
|
-
|
72306
|
+
var _this_generatorCore_logger_timing, _this_generatorCore_logger;
|
72307
|
+
(_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`);
|
72301
72308
|
const { material } = this.generatorContext.current;
|
72302
72309
|
const resourceMap = await material.find(templatePattern, {
|
72303
72310
|
nodir: true,
|
@@ -72319,12 +72326,14 @@ var AppAPI = class {
|
|
72319
72326
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
72320
72327
|
throw new Error("base forging failed");
|
72321
72328
|
} finally {
|
72322
|
-
|
72329
|
+
var _this_generatorCore_logger_timing1, _this_generatorCore_logger1;
|
72330
|
+
(_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);
|
72323
72331
|
}
|
72324
72332
|
}
|
72325
72333
|
async renderTemplateByFileType(templatePattern, filter, rename, parameters) {
|
72326
72334
|
try {
|
72327
|
-
|
72335
|
+
var _this_generatorCore_logger_timing, _this_generatorCore_logger;
|
72336
|
+
(_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`);
|
72328
72337
|
const { material } = this.generatorContext.current;
|
72329
72338
|
const resourceMap = await material.find(templatePattern, {
|
72330
72339
|
nodir: true,
|
@@ -72356,7 +72365,8 @@ var AppAPI = class {
|
|
72356
72365
|
this.generatorCore.logger.warn(i18n.t(localeKeys.templated.failed));
|
72357
72366
|
throw new Error("base forging failed");
|
72358
72367
|
} finally {
|
72359
|
-
|
72368
|
+
var _this_generatorCore_logger_timing1, _this_generatorCore_logger1;
|
72369
|
+
(_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);
|
72360
72370
|
}
|
72361
72371
|
}
|
72362
72372
|
async updateWorkspace(folder, workspaceName = "monorepo.code-workspace") {
|
@@ -73255,7 +73265,7 @@ var MWANewActionPluginName = {
|
|
73255
73265
|
[ActionFunction.TailwindCSS]: "tailwindcssPlugin",
|
73256
73266
|
[ActionFunction.BFF]: "bffPlugin",
|
73257
73267
|
[ActionFunction.MicroFrontend]: "garfishPlugin",
|
73258
|
-
[ActionFunction.Test]: "
|
73268
|
+
[ActionFunction.Test]: "testingPlugin",
|
73259
73269
|
[ActionFunction.Storybook]: "storybookPlugin",
|
73260
73270
|
[ActionFunction.SSG]: "ssgPlugin",
|
73261
73271
|
[ActionFunction.Polyfill]: "polyfillPlugin",
|
@@ -73374,7 +73384,7 @@ var ModuleNewActionPluginName = {
|
|
73374
73384
|
[ActionType.Function]: {
|
73375
73385
|
[ActionFunction.TailwindCSS]: "tailwindcssPlugin",
|
73376
73386
|
[ActionFunction.ModuleDoc]: "modulePluginDoc",
|
73377
|
-
[ActionFunction.Test]: "
|
73387
|
+
[ActionFunction.Test]: "testingPlugin"
|
73378
73388
|
}
|
73379
73389
|
};
|
73380
73390
|
var ModuleNewActionPluginDependence = {
|
@@ -73804,11 +73814,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
|
|
73804
73814
|
// ../../generator-plugin/dist/esm/context/file.js
|
73805
73815
|
var import_path13 = __toESM(require("path"));
|
73806
73816
|
|
73807
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
73817
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
73808
73818
|
var import_comment_json2 = __toESM(require_src2());
|
73809
73819
|
var declarationUpdate = __toESM(require_dist());
|
73810
73820
|
|
73811
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
73821
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
73812
73822
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
73813
73823
|
const originJsonValue = await resource.value();
|
73814
73824
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
@@ -73821,7 +73831,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
73821
73831
|
return newJsonString;
|
73822
73832
|
}
|
73823
73833
|
|
73824
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
73834
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.2/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
73825
73835
|
var JsonAPI = class {
|
73826
73836
|
async get(resource) {
|
73827
73837
|
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.4",
|
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.43.0"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
29
|
-
"@modern-js/codesmith": "2.3.
|
30
|
-
"@modern-js/codesmith-api-app": "2.3.
|
29
|
+
"@modern-js/codesmith": "2.3.2",
|
30
|
+
"@modern-js/codesmith-api-app": "2.3.2",
|
31
31
|
"@types/jest": "^29",
|
32
32
|
"@types/node": "^14",
|
33
33
|
"jest": "^29",
|
34
34
|
"typescript": "^5",
|
35
|
-
"@modern-js/generator-
|
36
|
-
"@modern-js/generator
|
37
|
-
"@modern-js/
|
38
|
-
"@modern-js/module-generator": "3.3.
|
39
|
-
"@modern-js/monorepo-generator": "3.3.
|
40
|
-
"@modern-js/
|
41
|
-
"@scripts/build": "2.
|
42
|
-
"@scripts/jest-config": "2.
|
43
|
-
"@modern-js/generator
|
35
|
+
"@modern-js/generator-common": "3.3.4",
|
36
|
+
"@modern-js/base-generator": "3.3.4",
|
37
|
+
"@modern-js/generator-plugin": "3.3.4",
|
38
|
+
"@modern-js/module-generator": "3.3.4",
|
39
|
+
"@modern-js/monorepo-generator": "3.3.4",
|
40
|
+
"@modern-js/generator-utils": "3.3.4",
|
41
|
+
"@scripts/build": "2.43.0",
|
42
|
+
"@scripts/jest-config": "2.43.0",
|
43
|
+
"@modern-js/mwa-generator": "3.3.4"
|
44
44
|
},
|
45
45
|
"sideEffects": false,
|
46
46
|
"publishConfig": {
|