@modern-js/repo-generator 0.0.0-nightly-20240225170635 → 0.0.0-nightly-20240226170701
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 +54 -56
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -68856,12 +68856,12 @@ function _define_property(obj, key, value) {
|
|
|
68856
68856
|
return obj;
|
|
68857
68857
|
}
|
|
68858
68858
|
|
|
68859
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
68859
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
68860
68860
|
var import_utils46 = require("@modern-js/utils");
|
|
68861
68861
|
var import_lodash6 = require("@modern-js/utils/lodash");
|
|
68862
68862
|
var import_comment_json = __toESM(require_src2());
|
|
68863
68863
|
|
|
68864
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
68864
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/env.js
|
|
68865
68865
|
var import_utils = require("@modern-js/utils");
|
|
68866
68866
|
async function canUseNvm() {
|
|
68867
68867
|
try {
|
|
@@ -68911,7 +68911,7 @@ async function canUsePnpm() {
|
|
|
68911
68911
|
}
|
|
68912
68912
|
}
|
|
68913
68913
|
|
|
68914
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
68914
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/utils/install.js
|
|
68915
68915
|
var import_utils2 = require("@modern-js/utils");
|
|
68916
68916
|
function execaWithStreamLog(command, args, options) {
|
|
68917
68917
|
const promise = (0, import_utils2.execa)(command, args, {
|
|
@@ -69007,7 +69007,7 @@ async function pnpmInstall({ cwd, registryUrl, ignoreScripts, useNvm }) {
|
|
|
69007
69007
|
throw new Error("please install pnpm first");
|
|
69008
69008
|
}
|
|
69009
69009
|
|
|
69010
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.
|
|
69010
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-npm@2.3.5/node_modules/@modern-js/codesmith-api-npm/dist/esm-node/index.js
|
|
69011
69011
|
var NpmAPI = class {
|
|
69012
69012
|
npmInstall({ cwd, registryUrl, ignoreScripts }) {
|
|
69013
69013
|
return npmInstall({
|
|
@@ -69036,7 +69036,7 @@ var NpmAPI = class {
|
|
|
69036
69036
|
}
|
|
69037
69037
|
};
|
|
69038
69038
|
|
|
69039
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
69039
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/utils/index.js
|
|
69040
69040
|
var import_utils4 = require("@modern-js/utils");
|
|
69041
69041
|
async function canUseGit() {
|
|
69042
69042
|
try {
|
|
@@ -69111,7 +69111,7 @@ async function gitCommit(cwd, commitMessage) {
|
|
|
69111
69111
|
});
|
|
69112
69112
|
}
|
|
69113
69113
|
|
|
69114
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.
|
|
69114
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-git@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-git/dist/esm-node/index.js
|
|
69115
69115
|
var GitAPI = class {
|
|
69116
69116
|
async isInGitRepo(cwd = this.generatorCore.outputPath) {
|
|
69117
69117
|
const canUse = await canUseGit();
|
|
@@ -69163,7 +69163,7 @@ var GitAPI = class {
|
|
|
69163
69163
|
}
|
|
69164
69164
|
};
|
|
69165
69165
|
|
|
69166
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69166
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
|
69167
69167
|
var LoggerLevel;
|
|
69168
69168
|
(function(LoggerLevel2) {
|
|
69169
69169
|
LoggerLevel2["Error"] = "error";
|
|
@@ -69184,7 +69184,7 @@ var LevelPriority = [
|
|
|
69184
69184
|
LoggerLevel.Stream
|
|
69185
69185
|
];
|
|
69186
69186
|
|
|
69187
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69187
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
|
69188
69188
|
var import_utils6 = require("@modern-js/utils");
|
|
69189
69189
|
var Logger = class {
|
|
69190
69190
|
get currentLevelIndex() {
|
|
@@ -69245,23 +69245,23 @@ var Logger = class {
|
|
|
69245
69245
|
}
|
|
69246
69246
|
};
|
|
69247
69247
|
|
|
69248
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69248
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
69249
69249
|
var import_path7 = __toESM(require("path"));
|
|
69250
69250
|
|
|
69251
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69251
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
69252
69252
|
var import_path4 = __toESM(require("path"));
|
|
69253
69253
|
var import_events = require("events");
|
|
69254
69254
|
var import_utils11 = require("@modern-js/utils");
|
|
69255
69255
|
|
|
69256
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69256
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
69257
69257
|
var import_path2 = __toESM(require("path"));
|
|
69258
69258
|
var import_utils8 = require("@modern-js/utils");
|
|
69259
69259
|
|
|
69260
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69260
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
69261
69261
|
var import_path = __toESM(require("path"));
|
|
69262
69262
|
var import_utils7 = require("@modern-js/utils");
|
|
69263
69263
|
|
|
69264
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69264
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
|
69265
69265
|
var IMAGE_EXT_LIST = [
|
|
69266
69266
|
".jpg",
|
|
69267
69267
|
".jpeg",
|
|
@@ -69275,7 +69275,7 @@ var IMAGE_EXT_LIST = [
|
|
|
69275
69275
|
".wmf"
|
|
69276
69276
|
];
|
|
69277
69277
|
|
|
69278
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69278
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
69279
69279
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
69280
69280
|
var FsResource = class {
|
|
69281
69281
|
async value() {
|
|
@@ -69301,7 +69301,7 @@ var FsResource = class {
|
|
|
69301
69301
|
}
|
|
69302
69302
|
};
|
|
69303
69303
|
|
|
69304
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69304
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
69305
69305
|
var promisifyGlob = function(pattern, options) {
|
|
69306
69306
|
return new Promise((resolve, reject) => {
|
|
69307
69307
|
(0, import_utils8.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
|
@@ -69329,7 +69329,7 @@ var FsMaterial = class {
|
|
|
69329
69329
|
}
|
|
69330
69330
|
};
|
|
69331
69331
|
|
|
69332
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69332
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
|
69333
69333
|
var nodeRequire = (path18) => {
|
|
69334
69334
|
try {
|
|
69335
69335
|
const module2 = __non_webpack_require__(path18);
|
|
@@ -69346,11 +69346,11 @@ var nodeRequire = (path18) => {
|
|
|
69346
69346
|
}
|
|
69347
69347
|
};
|
|
69348
69348
|
|
|
69349
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69349
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
69350
69350
|
var import_path3 = __toESM(require("path"));
|
|
69351
69351
|
var import_utils10 = require("@modern-js/utils");
|
|
69352
69352
|
|
|
69353
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69353
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
69354
69354
|
var import_utils9 = require("@modern-js/utils");
|
|
69355
69355
|
async function fsExists(path18) {
|
|
69356
69356
|
try {
|
|
@@ -69361,7 +69361,7 @@ async function fsExists(path18) {
|
|
|
69361
69361
|
}
|
|
69362
69362
|
}
|
|
69363
69363
|
|
|
69364
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69364
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
69365
69365
|
var MaxTimes = 5;
|
|
69366
69366
|
async function getGeneratorDir(generator) {
|
|
69367
69367
|
let result = generator;
|
|
@@ -69380,7 +69380,7 @@ async function getGeneratorDir(generator) {
|
|
|
69380
69380
|
return result;
|
|
69381
69381
|
}
|
|
69382
69382
|
|
|
69383
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69383
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
69384
69384
|
var GeneratorCore = class {
|
|
69385
69385
|
get lifeCycleMethod() {
|
|
69386
69386
|
return {
|
|
@@ -69585,10 +69585,10 @@ check path: ${import_utils11.chalk.blue.underline(generator)} exist a package.js
|
|
|
69585
69585
|
}
|
|
69586
69586
|
};
|
|
69587
69587
|
|
|
69588
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69588
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
69589
69589
|
var import_path6 = __toESM(require("path"));
|
|
69590
69590
|
|
|
69591
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69591
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
|
69592
69592
|
var import_path5 = __toESM(require("path"));
|
|
69593
69593
|
var import_utils12 = require("@modern-js/utils");
|
|
69594
69594
|
async function canUseYarn2() {
|
|
@@ -69636,7 +69636,6 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69636
69636
|
"install",
|
|
69637
69637
|
"--prod",
|
|
69638
69638
|
"--reporter=silent",
|
|
69639
|
-
"--prefer-offline",
|
|
69640
69639
|
"--ignore-scripts"
|
|
69641
69640
|
];
|
|
69642
69641
|
if (registryUrl) {
|
|
@@ -69659,7 +69658,6 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69659
69658
|
"install",
|
|
69660
69659
|
"--production",
|
|
69661
69660
|
"--loglevel=error",
|
|
69662
|
-
"--prefer-offline",
|
|
69663
69661
|
"--ignore-scripts"
|
|
69664
69662
|
];
|
|
69665
69663
|
if (registryUrl) {
|
|
@@ -69669,7 +69667,7 @@ async function runInstall(targetDir, registryUrl) {
|
|
|
69669
69667
|
}
|
|
69670
69668
|
}
|
|
69671
69669
|
|
|
69672
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69670
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
|
69673
69671
|
async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
69674
69672
|
let timeoutId = null;
|
|
69675
69673
|
const delayPromise = (ms2) => new Promise((resolve) => {
|
|
@@ -69691,7 +69689,7 @@ async function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
69691
69689
|
}
|
|
69692
69690
|
}
|
|
69693
69691
|
|
|
69694
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
69692
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
69695
69693
|
var import_os = __toESM(require("os"));
|
|
69696
69694
|
var import_utils38 = require("@modern-js/utils");
|
|
69697
69695
|
|
|
@@ -72684,17 +72682,17 @@ var {
|
|
|
72684
72682
|
mergeConfig: mergeConfig2
|
|
72685
72683
|
} = axios_default;
|
|
72686
72684
|
|
|
72687
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72685
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
72688
72686
|
var import_tar = __toESM(require_tar());
|
|
72689
72687
|
|
|
72690
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72688
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
72691
72689
|
var import_utils36 = require("@modern-js/utils");
|
|
72692
72690
|
|
|
72693
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72691
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
72694
72692
|
var NPM_API_TIMEOUT = 3e4;
|
|
72695
72693
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
72696
72694
|
|
|
72697
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72695
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
72698
72696
|
async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
72699
72697
|
const { registryUrl } = options || {};
|
|
72700
72698
|
const params = [
|
|
@@ -72717,7 +72715,7 @@ async function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
|
72717
72715
|
}
|
|
72718
72716
|
}
|
|
72719
72717
|
|
|
72720
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72718
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
|
72721
72719
|
var import_utils37 = require("@modern-js/utils");
|
|
72722
72720
|
async function getNpmVersion(packageName, options) {
|
|
72723
72721
|
const { version, registryUrl } = options || {};
|
|
@@ -72739,7 +72737,7 @@ async function getNpmVersion(packageName, options) {
|
|
|
72739
72737
|
return stdout;
|
|
72740
72738
|
}
|
|
72741
72739
|
|
|
72742
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72740
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
72743
72741
|
async function isValidCache(cacheDir) {
|
|
72744
72742
|
if (await fsExists(`${cacheDir}/.codesmith.completed`)) {
|
|
72745
72743
|
const preCacheTimeStr = await import_utils38.fs.readFile(`${cacheDir}/.codesmith.completed`, {
|
|
@@ -72819,7 +72817,7 @@ async function downloadPackage(pkgName, pkgVersion = "latest", options = {}) {
|
|
|
72819
72817
|
return targetDir;
|
|
72820
72818
|
}
|
|
72821
72819
|
|
|
72822
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72820
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
|
72823
72821
|
var import_utils39 = require("@modern-js/utils");
|
|
72824
72822
|
function getPackageInfo(packageName) {
|
|
72825
72823
|
if (!packageName) {
|
|
@@ -72844,7 +72842,7 @@ function getPackageInfo(packageName) {
|
|
|
72844
72842
|
};
|
|
72845
72843
|
}
|
|
72846
72844
|
|
|
72847
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72845
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
72848
72846
|
var MaterialsManager = class {
|
|
72849
72847
|
loadLocalGenerator(generator) {
|
|
72850
72848
|
if (!import_path6.default.isAbsolute(generator)) {
|
|
@@ -72875,7 +72873,7 @@ var MaterialsManager = class {
|
|
|
72875
72873
|
}
|
|
72876
72874
|
};
|
|
72877
72875
|
|
|
72878
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
72876
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
72879
72877
|
var CodeSmith = class {
|
|
72880
72878
|
async forge({ tasks, pwd }) {
|
|
72881
72879
|
var _this_logger_timing, _this_logger;
|
|
@@ -72919,7 +72917,7 @@ var CodeSmith = class {
|
|
|
72919
72917
|
}
|
|
72920
72918
|
};
|
|
72921
72919
|
|
|
72922
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
72920
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/utils/renderString.js
|
|
72923
72921
|
var import_handlebars = __toESM(require_lib());
|
|
72924
72922
|
function renderString(template, fullData, registers) {
|
|
72925
72923
|
const helpers = {
|
|
@@ -72933,7 +72931,7 @@ function renderString(template, fullData, registers) {
|
|
|
72933
72931
|
return import_handlebars.default.compile(template)(fullData) || "";
|
|
72934
72932
|
}
|
|
72935
72933
|
|
|
72936
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.
|
|
72934
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-handlebars@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-handlebars/dist/esm-node/index.js
|
|
72937
72935
|
var HandlebarsAPI = class {
|
|
72938
72936
|
async registerHelp(helpers) {
|
|
72939
72937
|
this.registers.helpers = {
|
|
@@ -72983,13 +72981,13 @@ var HandlebarsAPI = class {
|
|
|
72983
72981
|
}
|
|
72984
72982
|
};
|
|
72985
72983
|
|
|
72986
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
72984
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/utils/renderString.js
|
|
72987
72985
|
var import_ejs = __toESM(require_ejs());
|
|
72988
72986
|
function renderString2(template, fullData) {
|
|
72989
72987
|
return import_ejs.default.render(template, fullData) || "";
|
|
72990
72988
|
}
|
|
72991
72989
|
|
|
72992
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.
|
|
72990
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-ejs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-ejs/dist/esm-node/index.js
|
|
72993
72991
|
var EjsAPI = class {
|
|
72994
72992
|
async renderTemplate(templateResource, target, parameters = {}) {
|
|
72995
72993
|
if (templateResource._type !== FS_RESOURCE) {
|
|
@@ -73022,7 +73020,7 @@ var EjsAPI = class {
|
|
|
73022
73020
|
}
|
|
73023
73021
|
};
|
|
73024
73022
|
|
|
73025
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.
|
|
73023
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-fs@2.3.5_@modern-js+codesmith@2.3.5/node_modules/@modern-js/codesmith-api-fs/dist/esm-node/index.js
|
|
73026
73024
|
var import_path8 = __toESM(require("path"));
|
|
73027
73025
|
var import_utils43 = require("@modern-js/utils");
|
|
73028
73026
|
var FsAPI = class {
|
|
@@ -73050,7 +73048,7 @@ var FsAPI = class {
|
|
|
73050
73048
|
}
|
|
73051
73049
|
};
|
|
73052
73050
|
|
|
73053
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
73051
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
|
73054
73052
|
var import_lodash2 = require("@modern-js/utils/lodash");
|
|
73055
73053
|
|
|
73056
73054
|
// ../../../../node_modules/.pnpm/@formily+shared@2.2.24/node_modules/@formily/shared/esm/checkers.js
|
|
@@ -82685,10 +82683,10 @@ var Schema = (
|
|
|
82685
82683
|
}()
|
|
82686
82684
|
);
|
|
82687
82685
|
|
|
82688
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82686
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
82689
82687
|
var import_inquirer = __toESM(require_inquirer());
|
|
82690
82688
|
|
|
82691
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82689
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/transform.js
|
|
82692
82690
|
var import_lodash = require("@modern-js/utils/lodash");
|
|
82693
82691
|
function validateSchema(schema) {
|
|
82694
82692
|
const { type, properties } = schema;
|
|
@@ -82780,7 +82778,7 @@ function transformForm(schema, configValue = {}, validateMap, initValue) {
|
|
|
82780
82778
|
return getQuestionFromSchema(schema, configValue, validateMap, initValue);
|
|
82781
82779
|
}
|
|
82782
82780
|
|
|
82783
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82781
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/prompt.js
|
|
82784
82782
|
var compileRule = (rule, scope) => {
|
|
82785
82783
|
const state = Schema.compile(rule, {
|
|
82786
82784
|
$self: {},
|
|
@@ -82884,7 +82882,7 @@ async function prompt(schema, configValue = {}, validateMap, initValue) {
|
|
|
82884
82882
|
return answers;
|
|
82885
82883
|
}
|
|
82886
82884
|
|
|
82887
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82885
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/inquirer.js
|
|
82888
82886
|
var CLIReader = class {
|
|
82889
82887
|
getAnswers() {
|
|
82890
82888
|
return this.answers;
|
|
@@ -82915,7 +82913,7 @@ var CLIReader = class {
|
|
|
82915
82913
|
}
|
|
82916
82914
|
};
|
|
82917
82915
|
|
|
82918
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.
|
|
82916
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-formily@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-formily/dist/esm-node/index.js
|
|
82919
82917
|
var FormilyAPI = class {
|
|
82920
82918
|
mergeAnswers(answers, configValue) {
|
|
82921
82919
|
const inputData = (0, import_lodash2.merge)(answers, configValue);
|
|
@@ -82938,7 +82936,7 @@ var FormilyAPI = class {
|
|
|
82938
82936
|
}
|
|
82939
82937
|
};
|
|
82940
82938
|
|
|
82941
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
82939
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
82942
82940
|
var import_inquirer3 = __toESM(require_inquirer2());
|
|
82943
82941
|
|
|
82944
82942
|
// ../../../../node_modules/.pnpm/@modern-js+plugin-i18n@2.37.2/node_modules/@modern-js/plugin-i18n/dist/esm-node/index.js
|
|
@@ -83004,7 +83002,7 @@ var I18n = class {
|
|
|
83004
83002
|
}
|
|
83005
83003
|
};
|
|
83006
83004
|
|
|
83007
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83005
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/zh.js
|
|
83008
83006
|
var ZH_LOCALE = {
|
|
83009
83007
|
environment: {
|
|
83010
83008
|
node_version: "请升级 Node 版本至 LIS",
|
|
@@ -83031,7 +83029,7 @@ var ZH_LOCALE = {
|
|
|
83031
83029
|
}
|
|
83032
83030
|
};
|
|
83033
83031
|
|
|
83034
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83032
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/en.js
|
|
83035
83033
|
var EN_LOCALE = {
|
|
83036
83034
|
environment: {
|
|
83037
83035
|
node_version: "please upgrade node to lts version",
|
|
@@ -83058,14 +83056,14 @@ var EN_LOCALE = {
|
|
|
83058
83056
|
}
|
|
83059
83057
|
};
|
|
83060
83058
|
|
|
83061
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83059
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/locale/index.js
|
|
83062
83060
|
var i18n = new I18n();
|
|
83063
83061
|
var localeKeys = i18n.init("zh", {
|
|
83064
83062
|
zh: ZH_LOCALE,
|
|
83065
83063
|
en: EN_LOCALE
|
|
83066
83064
|
});
|
|
83067
83065
|
|
|
83068
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83066
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/transform.js
|
|
83069
83067
|
var import_lodash5 = require("@modern-js/utils/lodash");
|
|
83070
83068
|
function transformInquirerSchema(questions, configValue = {}, validateMap = {}, initValue = {}) {
|
|
83071
83069
|
for (const question of questions) {
|
|
@@ -83093,7 +83091,7 @@ function transformInquirerSchema(questions, configValue = {}, validateMap = {},
|
|
|
83093
83091
|
return questions;
|
|
83094
83092
|
}
|
|
83095
83093
|
|
|
83096
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83094
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/utils/checkUseNvm.js
|
|
83097
83095
|
var import_path10 = __toESM(require("path"));
|
|
83098
83096
|
var import_utils45 = require("@modern-js/utils");
|
|
83099
83097
|
var NODE_MAJOR_VERSION_MAP = {
|
|
@@ -83141,7 +83139,7 @@ async function checkUseNvm(cwd, logger2) {
|
|
|
83141
83139
|
}
|
|
83142
83140
|
}
|
|
83143
83141
|
|
|
83144
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.
|
|
83142
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-app@2.3.5_@modern-js+codesmith@2.3.5_typescript@5.3.3/node_modules/@modern-js/codesmith-api-app/dist/esm-node/index.js
|
|
83145
83143
|
var AppAPI = class {
|
|
83146
83144
|
async checkEnvironment(nodeVersion) {
|
|
83147
83145
|
if (import_utils46.semver.lt(process.versions.node, nodeVersion || "12.22.12")) {
|
|
@@ -84734,11 +84732,11 @@ var import_lodash14 = require("@modern-js/utils/lodash");
|
|
|
84734
84732
|
// ../../generator-plugin/dist/esm/context/file.js
|
|
84735
84733
|
var import_path13 = __toESM(require("path"));
|
|
84736
84734
|
|
|
84737
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84735
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
84738
84736
|
var import_comment_json2 = __toESM(require_src2());
|
|
84739
84737
|
var declarationUpdate = __toESM(require_dist());
|
|
84740
84738
|
|
|
84741
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84739
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/utils/index.js
|
|
84742
84740
|
async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
84743
84741
|
const originJsonValue = await resource.value();
|
|
84744
84742
|
const newJsonString = await getNewJsonValue(originJsonValue.content);
|
|
@@ -84751,7 +84749,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
|
84751
84749
|
return newJsonString;
|
|
84752
84750
|
}
|
|
84753
84751
|
|
|
84754
|
-
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.
|
|
84752
|
+
// ../../../../node_modules/.pnpm/@modern-js+codesmith-api-json@2.3.5/node_modules/@modern-js/codesmith-api-json/dist/esm-node/index.js
|
|
84755
84753
|
var JsonAPI = class {
|
|
84756
84754
|
async get(resource) {
|
|
84757
84755
|
const originJsonValue = await resource.value();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-nightly-
|
|
18
|
+
"version": "0.0.0-nightly-20240226170701",
|
|
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": "0.0.0-nightly-
|
|
26
|
+
"@modern-js/utils": "0.0.0-nightly-20240226170701"
|
|
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.5",
|
|
30
|
+
"@modern-js/codesmith-api-app": "2.3.5",
|
|
31
31
|
"@types/jest": "^29",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^29",
|
|
34
34
|
"typescript": "^5",
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/generator-
|
|
37
|
-
"@modern-js/generator-
|
|
38
|
-
"@modern-js/generator
|
|
39
|
-
"@modern-js/
|
|
40
|
-
"@modern-js/
|
|
41
|
-
"@modern-js/
|
|
42
|
-
"@scripts/build": "0.0.0-nightly-
|
|
43
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
|
35
|
+
"@modern-js/generator-common": "0.0.0-nightly-20240226170701",
|
|
36
|
+
"@modern-js/generator-plugin": "0.0.0-nightly-20240226170701",
|
|
37
|
+
"@modern-js/generator-utils": "0.0.0-nightly-20240226170701",
|
|
38
|
+
"@modern-js/monorepo-generator": "0.0.0-nightly-20240226170701",
|
|
39
|
+
"@modern-js/module-generator": "0.0.0-nightly-20240226170701",
|
|
40
|
+
"@modern-js/mwa-generator": "0.0.0-nightly-20240226170701",
|
|
41
|
+
"@modern-js/base-generator": "0.0.0-nightly-20240226170701",
|
|
42
|
+
"@scripts/build": "0.0.0-nightly-20240226170701",
|
|
43
|
+
"@scripts/jest-config": "0.0.0-nightly-20240226170701"
|
|
44
44
|
},
|
|
45
45
|
"sideEffects": false,
|
|
46
46
|
"publishConfig": {
|