@modern-js/create 0.0.0-nightly-20240130170640 → 0.0.0-nightly-20240201170631
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 +27 -27
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -62459,7 +62459,7 @@ function getLocaleLanguage() {
|
|
|
62459
62459
|
// src/createAction.ts
|
|
62460
62460
|
var import_path9 = __toESM(require("path"));
|
|
62461
62461
|
|
|
62462
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62462
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/constants.js
|
|
62463
62463
|
var LoggerLevel;
|
|
62464
62464
|
(function(LoggerLevel2) {
|
|
62465
62465
|
LoggerLevel2["Error"] = "error";
|
|
@@ -62489,7 +62489,7 @@ function _define_property(obj, key, value) {
|
|
|
62489
62489
|
return obj;
|
|
62490
62490
|
}
|
|
62491
62491
|
|
|
62492
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62492
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/logger/index.js
|
|
62493
62493
|
var import_utils = __toESM(require_cjs());
|
|
62494
62494
|
var Logger = class {
|
|
62495
62495
|
get currentLevelIndex() {
|
|
@@ -62550,23 +62550,23 @@ var Logger = class {
|
|
|
62550
62550
|
}
|
|
62551
62551
|
};
|
|
62552
62552
|
|
|
62553
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62553
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
62554
62554
|
var import_path7 = __toESM(require("path"));
|
|
62555
62555
|
|
|
62556
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62556
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
62557
62557
|
var import_path4 = __toESM(require("path"));
|
|
62558
62558
|
var import_events = require("events");
|
|
62559
62559
|
var import_utils6 = __toESM(require_cjs());
|
|
62560
62560
|
|
|
62561
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62561
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
62562
62562
|
var import_path2 = __toESM(require("path"));
|
|
62563
62563
|
var import_utils3 = __toESM(require_cjs());
|
|
62564
62564
|
|
|
62565
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62565
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
62566
62566
|
var import_path = __toESM(require("path"));
|
|
62567
62567
|
var import_utils2 = __toESM(require_cjs());
|
|
62568
62568
|
|
|
62569
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62569
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/constants.js
|
|
62570
62570
|
var IMAGE_EXT_LIST = [
|
|
62571
62571
|
".jpg",
|
|
62572
62572
|
".jpeg",
|
|
@@ -62580,7 +62580,7 @@ var IMAGE_EXT_LIST = [
|
|
|
62580
62580
|
".wmf"
|
|
62581
62581
|
];
|
|
62582
62582
|
|
|
62583
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62583
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsResource.js
|
|
62584
62584
|
var FS_RESOURCE = "_codesmith_core_fs_resource";
|
|
62585
62585
|
var FsResource = class {
|
|
62586
62586
|
value() {
|
|
@@ -62608,7 +62608,7 @@ var FsResource = class {
|
|
|
62608
62608
|
}
|
|
62609
62609
|
};
|
|
62610
62610
|
|
|
62611
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62611
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/FsMaterial.js
|
|
62612
62612
|
var promisifyGlob = function(pattern, options) {
|
|
62613
62613
|
return new Promise((resolve, reject) => {
|
|
62614
62614
|
(0, import_utils3.glob)(pattern, options, (err, files) => err === null ? resolve(files) : reject(err));
|
|
@@ -62638,7 +62638,7 @@ var FsMaterial = class {
|
|
|
62638
62638
|
}
|
|
62639
62639
|
};
|
|
62640
62640
|
|
|
62641
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62641
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/nodeRequire.js
|
|
62642
62642
|
var nodeRequire = (path11) => {
|
|
62643
62643
|
try {
|
|
62644
62644
|
const module2 = __non_webpack_require__(path11);
|
|
@@ -62655,11 +62655,11 @@ var nodeRequire = (path11) => {
|
|
|
62655
62655
|
}
|
|
62656
62656
|
};
|
|
62657
62657
|
|
|
62658
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62658
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
62659
62659
|
var import_path3 = __toESM(require("path"));
|
|
62660
62660
|
var import_utils5 = __toESM(require_cjs());
|
|
62661
62661
|
|
|
62662
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62662
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/fsExists.js
|
|
62663
62663
|
var import_utils4 = __toESM(require_cjs());
|
|
62664
62664
|
function fsExists(path11) {
|
|
62665
62665
|
return __async(this, null, function* () {
|
|
@@ -62672,7 +62672,7 @@ function fsExists(path11) {
|
|
|
62672
62672
|
});
|
|
62673
62673
|
}
|
|
62674
62674
|
|
|
62675
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62675
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getGeneratorDir.js
|
|
62676
62676
|
var MaxTimes = 5;
|
|
62677
62677
|
function getGeneratorDir(generator) {
|
|
62678
62678
|
return __async(this, null, function* () {
|
|
@@ -62693,7 +62693,7 @@ function getGeneratorDir(generator) {
|
|
|
62693
62693
|
});
|
|
62694
62694
|
}
|
|
62695
62695
|
|
|
62696
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62696
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/generator/index.js
|
|
62697
62697
|
var GeneratorCore = class {
|
|
62698
62698
|
get lifeCycleMethod() {
|
|
62699
62699
|
return {
|
|
@@ -62899,10 +62899,10 @@ check path: ${import_utils6.chalk.blue.underline(generator)} exist a package.jso
|
|
|
62899
62899
|
}
|
|
62900
62900
|
};
|
|
62901
62901
|
|
|
62902
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62902
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
62903
62903
|
var import_path6 = __toESM(require("path"));
|
|
62904
62904
|
|
|
62905
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62905
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/packageManager.js
|
|
62906
62906
|
var import_path5 = __toESM(require("path"));
|
|
62907
62907
|
var import_utils7 = __toESM(require_cjs());
|
|
62908
62908
|
function canUseYarn() {
|
|
@@ -62989,7 +62989,7 @@ function runInstall(targetDir, registryUrl) {
|
|
|
62989
62989
|
});
|
|
62990
62990
|
}
|
|
62991
62991
|
|
|
62992
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
62992
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/timeoutPromise.js
|
|
62993
62993
|
function timeoutPromise(promise, ms, reason = "Operation") {
|
|
62994
62994
|
return __async(this, null, function* () {
|
|
62995
62995
|
let timeoutId = null;
|
|
@@ -63013,7 +63013,7 @@ function timeoutPromise(promise, ms, reason = "Operation") {
|
|
|
63013
63013
|
});
|
|
63014
63014
|
}
|
|
63015
63015
|
|
|
63016
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
63016
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
63017
63017
|
var import_os = __toESM(require("os"));
|
|
63018
63018
|
var import_utils33 = __toESM(require_cjs());
|
|
63019
63019
|
|
|
@@ -65983,17 +65983,17 @@ var {
|
|
|
65983
65983
|
mergeConfig: mergeConfig2
|
|
65984
65984
|
} = axios_default;
|
|
65985
65985
|
|
|
65986
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
65986
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
65987
65987
|
var import_tar = __toESM(require_tar());
|
|
65988
65988
|
|
|
65989
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
65989
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
65990
65990
|
var import_utils31 = __toESM(require_cjs());
|
|
65991
65991
|
|
|
65992
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
65992
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/constants.js
|
|
65993
65993
|
var NPM_API_TIMEOUT = 3e4;
|
|
65994
65994
|
var CATCHE_VALIDITY_PREIOD = 12 * 3600 * 1e3;
|
|
65995
65995
|
|
|
65996
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
65996
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmTarballUrl.js
|
|
65997
65997
|
function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
65998
65998
|
return __async(this, null, function* () {
|
|
65999
65999
|
const { registryUrl } = options || {};
|
|
@@ -66018,7 +66018,7 @@ function getNpmTarballUrl(pkgName, pkgVersion, options) {
|
|
|
66018
66018
|
});
|
|
66019
66019
|
}
|
|
66020
66020
|
|
|
66021
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
66021
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getNpmVersion.js
|
|
66022
66022
|
var import_utils32 = __toESM(require_cjs());
|
|
66023
66023
|
function getNpmVersion(packageName, options) {
|
|
66024
66024
|
return __async(this, null, function* () {
|
|
@@ -66042,7 +66042,7 @@ function getNpmVersion(packageName, options) {
|
|
|
66042
66042
|
});
|
|
66043
66043
|
}
|
|
66044
66044
|
|
|
66045
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
66045
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/downloadPackage.js
|
|
66046
66046
|
function isValidCache(cacheDir) {
|
|
66047
66047
|
return __async(this, null, function* () {
|
|
66048
66048
|
if (yield fsExists(`${cacheDir}/.codesmith.completed`)) {
|
|
@@ -66128,7 +66128,7 @@ function downloadPackage(_0) {
|
|
|
66128
66128
|
});
|
|
66129
66129
|
}
|
|
66130
66130
|
|
|
66131
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
66131
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/utils/getPackageInfo.js
|
|
66132
66132
|
var import_utils34 = __toESM(require_cjs());
|
|
66133
66133
|
function getPackageInfo(packageName) {
|
|
66134
66134
|
if (!packageName) {
|
|
@@ -66153,7 +66153,7 @@ function getPackageInfo(packageName) {
|
|
|
66153
66153
|
};
|
|
66154
66154
|
}
|
|
66155
66155
|
|
|
66156
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
66156
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/materials/index.js
|
|
66157
66157
|
var MaterialsManager = class {
|
|
66158
66158
|
loadLocalGenerator(generator) {
|
|
66159
66159
|
if (!import_path6.default.isAbsolute(generator)) {
|
|
@@ -66186,7 +66186,7 @@ var MaterialsManager = class {
|
|
|
66186
66186
|
}
|
|
66187
66187
|
};
|
|
66188
66188
|
|
|
66189
|
-
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.
|
|
66189
|
+
// ../../../node_modules/.pnpm/@modern-js+codesmith@2.3.4/node_modules/@modern-js/codesmith/dist/esm-node/codesmith/index.js
|
|
66190
66190
|
var CodeSmith = class {
|
|
66191
66191
|
forge(_0) {
|
|
66192
66192
|
return __async(this, arguments, function* ({ tasks, pwd }) {
|
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-20240201170631",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/index.js",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@modern-js/codesmith": "2.3.
|
|
40
|
+
"@modern-js/codesmith": "2.3.4",
|
|
41
41
|
"@types/jest": "^29",
|
|
42
42
|
"@types/node": "^14",
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"ts-node": "^10.9.1",
|
|
45
45
|
"typescript": "^5",
|
|
46
|
-
"@modern-js/generator-plugin-plugin": "0.0.0-nightly-
|
|
47
|
-
"@modern-js/plugin-i18n": "0.0.0-nightly-
|
|
48
|
-
"@modern-js/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@scripts/jest-config": "0.0.0-nightly-
|
|
46
|
+
"@modern-js/generator-plugin-plugin": "0.0.0-nightly-20240201170631",
|
|
47
|
+
"@modern-js/plugin-i18n": "0.0.0-nightly-20240201170631",
|
|
48
|
+
"@modern-js/utils": "0.0.0-nightly-20240201170631",
|
|
49
|
+
"@scripts/build": "0.0.0-nightly-20240201170631",
|
|
50
|
+
"@modern-js/repo-generator": "0.0.0-nightly-20240201170631",
|
|
51
|
+
"@scripts/jest-config": "0.0.0-nightly-20240201170631"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"registry": "https://registry.npmjs.org/",
|