@modern-js/create 2.0.0-beta.1 → 2.0.0-beta.2
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 +16 -8
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -34993,7 +34993,7 @@ var require_is = __commonJSMin((exports) => {
|
|
|
34993
34993
|
var require_compatRequire = __commonJSMin((exports) => {
|
|
34994
34994
|
"use strict";
|
|
34995
34995
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34996
|
-
exports.cleanRequireCache = exports.requireExistModule = exports.compatRequire = void 0;
|
|
34996
|
+
exports.cleanRequireCache = exports.requireExistModule = exports.dynamicImport = exports.compatRequire = void 0;
|
|
34997
34997
|
var findExists_1 = require_findExists();
|
|
34998
34998
|
var compatRequire = (filePath, interop = true) => {
|
|
34999
34999
|
const mod = __require(filePath);
|
|
@@ -35001,6 +35001,7 @@ var require_compatRequire = __commonJSMin((exports) => {
|
|
|
35001
35001
|
return rtnESMDefault ? mod.default : mod;
|
|
35002
35002
|
};
|
|
35003
35003
|
exports.compatRequire = compatRequire;
|
|
35004
|
+
exports.dynamicImport = new Function("modulePath", "return import(modulePath)");
|
|
35004
35005
|
var requireExistModule = (filename, opt) => {
|
|
35005
35006
|
const final = {
|
|
35006
35007
|
extensions: [".ts", ".js"],
|
|
@@ -35047,6 +35048,7 @@ var require_constants = __commonJSMin((exports) => {
|
|
|
35047
35048
|
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
35048
35049
|
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
|
35049
35050
|
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
|
35051
|
+
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
35050
35052
|
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
35051
35053
|
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
35052
35054
|
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
@@ -67481,8 +67483,10 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
67481
67483
|
};
|
|
67482
67484
|
}
|
|
67483
67485
|
async runGenerator(generator, config = {}) {
|
|
67484
|
-
const spinner = (0, _utils.ora)(
|
|
67485
|
-
|
|
67486
|
+
const spinner = (0, _utils.ora)({
|
|
67487
|
+
text: "Load Generator...",
|
|
67488
|
+
spinner: "runner"
|
|
67489
|
+
}).start();
|
|
67486
67490
|
const {
|
|
67487
67491
|
materialKey,
|
|
67488
67492
|
generatorPkg,
|
|
@@ -67501,8 +67505,10 @@ check path: ${_utils.chalk.blue.underline(generator)} exist a package.json file
|
|
|
67501
67505
|
this.setCurrent(null);
|
|
67502
67506
|
}
|
|
67503
67507
|
async runSubGenerator(subGenerator, relativePwdPath = "", config) {
|
|
67504
|
-
const spinner = (0, _utils.ora)(
|
|
67505
|
-
|
|
67508
|
+
const spinner = (0, _utils.ora)({
|
|
67509
|
+
text: "Load Generator...",
|
|
67510
|
+
spinner: "runner"
|
|
67511
|
+
}).start();
|
|
67506
67512
|
const {
|
|
67507
67513
|
materialKey,
|
|
67508
67514
|
generatorPkg,
|
|
@@ -75457,7 +75463,7 @@ var require_node = __commonJSMin((exports) => {
|
|
|
75457
75463
|
});
|
|
75458
75464
|
var import_utils5 = __toESM2(require_dist());
|
|
75459
75465
|
var import_codesmith = __toESM2(require_node());
|
|
75460
|
-
var version4 = "2.0.0-beta.
|
|
75466
|
+
var version4 = "2.0.0-beta.2";
|
|
75461
75467
|
function _classCallCheck(instance, Constructor) {
|
|
75462
75468
|
if (!(instance instanceof Constructor)) {
|
|
75463
75469
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -75808,8 +75814,10 @@ async function createAction(projectDir, options3) {
|
|
|
75808
75814
|
var import_utils4 = __toESM2(require_dist());
|
|
75809
75815
|
async function cleanCacheAction() {
|
|
75810
75816
|
const tmpDir = import_os.default.tmpdir();
|
|
75811
|
-
const spinner = (0, import_utils4.ora)(
|
|
75812
|
-
|
|
75817
|
+
const spinner = (0, import_utils4.ora)({
|
|
75818
|
+
text: "Load Generator...",
|
|
75819
|
+
spinner: "runner"
|
|
75820
|
+
}).start();
|
|
75813
75821
|
const cacheDir = import_path3.default.join(tmpDir, "csmith-generator");
|
|
75814
75822
|
import_utils4.fs.emptyDirSync(cacheDir);
|
|
75815
75823
|
spinner.stop();
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0.0-beta.
|
|
14
|
+
"version": "2.0.0-beta.2",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@babel/runtime": "^7.18.0",
|
|
37
|
-
"@modern-js/codesmith": "2.0.
|
|
37
|
+
"@modern-js/codesmith": "2.0.1",
|
|
38
38
|
"@types/jest": "^27",
|
|
39
39
|
"@types/node": "^14",
|
|
40
40
|
"jest": "^27",
|
|
41
41
|
"ts-node": "^10.1.0",
|
|
42
42
|
"typescript": "^4",
|
|
43
|
-
"@modern-js/generator-plugin-plugin": "3.0.0-beta.
|
|
44
|
-
"@modern-js/plugin-i18n": "2.0.0-beta.
|
|
45
|
-
"@modern-js/repo-generator": "3.0.0-beta.
|
|
46
|
-
"@modern-js/utils": "2.0.0-beta.
|
|
47
|
-
"@scripts/build": "2.0.0-beta.
|
|
48
|
-
"@scripts/jest-config": "2.0.0-beta.
|
|
43
|
+
"@modern-js/generator-plugin-plugin": "3.0.0-beta.2",
|
|
44
|
+
"@modern-js/plugin-i18n": "2.0.0-beta.2",
|
|
45
|
+
"@modern-js/repo-generator": "3.0.0-beta.2",
|
|
46
|
+
"@modern-js/utils": "2.0.0-beta.2",
|
|
47
|
+
"@scripts/build": "2.0.0-beta.2",
|
|
48
|
+
"@scripts/jest-config": "2.0.0-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
|
-
"new": "modern new",
|
|
57
|
-
"build": "modern build",
|
|
56
|
+
"new": "modern-lib new",
|
|
57
|
+
"build": "modern-lib build",
|
|
58
58
|
"test": "jest --passWithNoTests"
|
|
59
59
|
}
|
|
60
60
|
}
|