@modern-js/repo-generator 0.0.0-canary-20220818071127 → 0.0.0-canary-20220818080134
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 +34 -0
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -131798,6 +131798,32 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
131798
131798
|
}
|
|
131799
131799
|
};
|
|
131800
131800
|
});
|
|
131801
|
+
var require_reactVersion = __commonJSMin((exports) => {
|
|
131802
|
+
"use strict";
|
|
131803
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
131804
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
131805
|
+
};
|
|
131806
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
131807
|
+
exports.isBeyondReact18 = void 0;
|
|
131808
|
+
var path_1 = __importDefault(__require("path"));
|
|
131809
|
+
var compiled_1 = require_compiled2();
|
|
131810
|
+
var isBeyondReact18 = (cwd) => {
|
|
131811
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
|
131812
|
+
if (!compiled_1.fs.existsSync(pkgPath)) {
|
|
131813
|
+
return false;
|
|
131814
|
+
}
|
|
131815
|
+
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
|
131816
|
+
const deps = {
|
|
131817
|
+
...pkgInfo.devDependencies,
|
|
131818
|
+
...pkgInfo.dependencies
|
|
131819
|
+
};
|
|
131820
|
+
if (typeof deps.react !== "string") {
|
|
131821
|
+
return false;
|
|
131822
|
+
}
|
|
131823
|
+
return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
|
|
131824
|
+
};
|
|
131825
|
+
exports.isBeyondReact18 = isBeyondReact18;
|
|
131826
|
+
});
|
|
131801
131827
|
var require_dist2 = __commonJSMin((exports) => {
|
|
131802
131828
|
"use strict";
|
|
131803
131829
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -131857,6 +131883,7 @@ var require_dist2 = __commonJSMin((exports) => {
|
|
|
131857
131883
|
__exportStar(require_tryResolve2(), exports);
|
|
131858
131884
|
__exportStar(require_analyzeProject2(), exports);
|
|
131859
131885
|
__exportStar(require_chainId2(), exports);
|
|
131886
|
+
__exportStar(require_reactVersion(), exports);
|
|
131860
131887
|
});
|
|
131861
131888
|
var require_strip_ansi4 = __commonJSMin((exports) => {
|
|
131862
131889
|
"use strict";
|
|
@@ -131967,6 +131994,7 @@ var require_node8 = __commonJSMin((exports) => {
|
|
|
131967
131994
|
canUseNpm: true,
|
|
131968
131995
|
canUsePnpm: true,
|
|
131969
131996
|
canUseYarn: true,
|
|
131997
|
+
isBeyondReact18: true,
|
|
131970
131998
|
i18n: true
|
|
131971
131999
|
};
|
|
131972
132000
|
Object.defineProperty(exports, "canUseNpm", {
|
|
@@ -132017,6 +132045,12 @@ var require_node8 = __commonJSMin((exports) => {
|
|
|
132017
132045
|
return _locale.i18n;
|
|
132018
132046
|
}
|
|
132019
132047
|
});
|
|
132048
|
+
Object.defineProperty(exports, "isBeyondReact18", {
|
|
132049
|
+
enumerable: true,
|
|
132050
|
+
get: function() {
|
|
132051
|
+
return _utils.isBeyondReact18;
|
|
132052
|
+
}
|
|
132053
|
+
});
|
|
132020
132054
|
exports.isTsProject = isTsProject;
|
|
132021
132055
|
Object.defineProperty(exports, "readTsConfigByFile", {
|
|
132022
132056
|
enumerable: true,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-canary-
|
|
14
|
+
"version": "0.0.0-canary-20220818080134",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"@babel/runtime": "^7.18.0",
|
|
26
26
|
"@modern-js/codesmith": "^1.4.0",
|
|
27
27
|
"@modern-js/codesmith-api-app": "^1.3.0",
|
|
28
|
-
"@modern-js/generator-common": "0.0.0-canary-
|
|
29
|
-
"@modern-js/generator-utils": "0.0.0-canary-
|
|
30
|
-
"@modern-js/module-generator": "0.0.0-canary-
|
|
31
|
-
"@modern-js/monorepo-generator": "0.0.0-canary-
|
|
32
|
-
"@modern-js/mwa-generator": "0.0.0-canary-
|
|
33
|
-
"@modern-js/base-generator": "0.0.0-canary-
|
|
34
|
-
"@modern-js/generator-plugin": "0.0.0-canary-
|
|
35
|
-
"@modern-js/utils": "0.0.0-canary-
|
|
28
|
+
"@modern-js/generator-common": "0.0.0-canary-20220818080134",
|
|
29
|
+
"@modern-js/generator-utils": "0.0.0-canary-20220818080134",
|
|
30
|
+
"@modern-js/module-generator": "0.0.0-canary-20220818080134",
|
|
31
|
+
"@modern-js/monorepo-generator": "0.0.0-canary-20220818080134",
|
|
32
|
+
"@modern-js/mwa-generator": "0.0.0-canary-20220818080134",
|
|
33
|
+
"@modern-js/base-generator": "0.0.0-canary-20220818080134",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-canary-20220818080134",
|
|
35
|
+
"@modern-js/utils": "0.0.0-canary-20220818080134",
|
|
36
36
|
"@types/jest": "^27",
|
|
37
37
|
"@types/node": "^14",
|
|
38
38
|
"typescript": "^4",
|
|
39
|
-
"@scripts/build": "0.0.0-canary-
|
|
39
|
+
"@scripts/build": "0.0.0-canary-20220818080134",
|
|
40
40
|
"jest": "^27",
|
|
41
|
-
"@scripts/jest-config": "0.0.0-canary-
|
|
41
|
+
"@scripts/jest-config": "0.0.0-canary-20220818080134"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"modernConfig": {
|