@modern-js/monorepo-generator 3.0.2 → 3.0.3
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 +33 -1
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -136522,7 +136522,8 @@ var require_chainId2 = __commonJS({
|
|
136522
136522
|
ASSETS_RETRY: "ASSETS_RETRY",
|
136523
136523
|
AUTO_SET_ROOT_SIZE: "auto-set-root-size",
|
136524
136524
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
136525
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
136525
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
|
136526
|
+
HTML_TAGS: "html-tags"
|
136526
136527
|
},
|
136527
136528
|
MINIMIZER: {
|
136528
136529
|
JS: "js",
|
@@ -136703,6 +136704,36 @@ var require_getCoreJsVersion = __commonJS({
|
|
136703
136704
|
}
|
136704
136705
|
});
|
136705
136706
|
|
136707
|
+
// ../../../toolkit/utils/dist/react.js
|
136708
|
+
var require_react = __commonJS({
|
136709
|
+
"../../../toolkit/utils/dist/react.js"(exports) {
|
136710
|
+
"use strict";
|
136711
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
136712
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
136713
|
+
};
|
136714
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
136715
|
+
exports.isBeyondReact17 = void 0;
|
136716
|
+
var path_1 = __importDefault(require("path"));
|
136717
|
+
var _1 = require_dist3();
|
136718
|
+
var isBeyondReact17 = (cwd) => {
|
136719
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
136720
|
+
if (!_1.fs.existsSync(pkgPath)) {
|
136721
|
+
return false;
|
136722
|
+
}
|
136723
|
+
const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
|
136724
|
+
const deps = {
|
136725
|
+
...pkgInfo.devDependencies,
|
136726
|
+
...pkgInfo.dependencies
|
136727
|
+
};
|
136728
|
+
if (typeof deps.react !== "string") {
|
136729
|
+
return false;
|
136730
|
+
}
|
136731
|
+
return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
|
136732
|
+
};
|
136733
|
+
exports.isBeyondReact17 = isBeyondReact17;
|
136734
|
+
}
|
136735
|
+
});
|
136736
|
+
|
136706
136737
|
// ../../../toolkit/utils/dist/index.js
|
136707
136738
|
var require_dist3 = __commonJS({
|
136708
136739
|
"../../../toolkit/utils/dist/index.js"(exports) {
|
@@ -136770,6 +136801,7 @@ var require_dist3 = __commonJS({
|
|
136770
136801
|
__exportStar(require_routes(), exports);
|
136771
136802
|
__exportStar(require_test_utils(), exports);
|
136772
136803
|
__exportStar(require_getCoreJsVersion(), exports);
|
136804
|
+
__exportStar(require_react(), exports);
|
136773
136805
|
}
|
136774
136806
|
});
|
136775
136807
|
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "3.0.
|
14
|
+
"version": "3.0.3",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/index.js",
|
17
17
|
"files": [
|
@@ -27,14 +27,14 @@
|
|
27
27
|
"@types/node": "^14",
|
28
28
|
"jest": "^27",
|
29
29
|
"typescript": "^4",
|
30
|
-
"@modern-js/generator
|
31
|
-
"@modern-js/
|
32
|
-
"@modern-js/plugin-i18n": "2.0
|
33
|
-
"@modern-js/packages-generator": "3.0.
|
34
|
-
"@modern-js/
|
35
|
-
"@modern-js/generator
|
36
|
-
"@scripts/
|
37
|
-
"@scripts/
|
30
|
+
"@modern-js/changeset-generator": "3.0.3",
|
31
|
+
"@modern-js/generator-utils": "3.0.3",
|
32
|
+
"@modern-js/plugin-i18n": "2.1.0",
|
33
|
+
"@modern-js/packages-generator": "3.0.3",
|
34
|
+
"@modern-js/generator-common": "3.0.3",
|
35
|
+
"@modern-js/base-generator": "3.0.3",
|
36
|
+
"@scripts/build": "2.1.0",
|
37
|
+
"@scripts/jest-config": "2.1.0"
|
38
38
|
},
|
39
39
|
"sideEffects": false,
|
40
40
|
"publishConfig": {
|