@modern-js/create 2.0.1 → 2.1.0
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 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -36563,7 +36563,8 @@ var require_chainId = __commonJS({
|
|
|
36563
36563
|
ASSETS_RETRY: "ASSETS_RETRY",
|
|
36564
36564
|
AUTO_SET_ROOT_SIZE: "auto-set-root-size",
|
|
36565
36565
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
|
36566
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
|
36566
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
|
|
36567
|
+
HTML_TAGS: "html-tags"
|
|
36567
36568
|
},
|
|
36568
36569
|
MINIMIZER: {
|
|
36569
36570
|
JS: "js",
|
|
@@ -36744,6 +36745,36 @@ var require_getCoreJsVersion = __commonJS({
|
|
|
36744
36745
|
}
|
|
36745
36746
|
});
|
|
36746
36747
|
|
|
36748
|
+
// ../utils/dist/react.js
|
|
36749
|
+
var require_react = __commonJS({
|
|
36750
|
+
"../utils/dist/react.js"(exports) {
|
|
36751
|
+
"use strict";
|
|
36752
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
36753
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
|
36754
|
+
};
|
|
36755
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36756
|
+
exports.isBeyondReact17 = void 0;
|
|
36757
|
+
var path_1 = __importDefault(require("path"));
|
|
36758
|
+
var _1 = require_dist();
|
|
36759
|
+
var isBeyondReact17 = (cwd) => {
|
|
36760
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
|
36761
|
+
if (!_1.fs.existsSync(pkgPath)) {
|
|
36762
|
+
return false;
|
|
36763
|
+
}
|
|
36764
|
+
const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
|
|
36765
|
+
const deps = {
|
|
36766
|
+
...pkgInfo.devDependencies,
|
|
36767
|
+
...pkgInfo.dependencies
|
|
36768
|
+
};
|
|
36769
|
+
if (typeof deps.react !== "string") {
|
|
36770
|
+
return false;
|
|
36771
|
+
}
|
|
36772
|
+
return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
|
|
36773
|
+
};
|
|
36774
|
+
exports.isBeyondReact17 = isBeyondReact17;
|
|
36775
|
+
}
|
|
36776
|
+
});
|
|
36777
|
+
|
|
36747
36778
|
// ../utils/dist/index.js
|
|
36748
36779
|
var require_dist = __commonJS({
|
|
36749
36780
|
"../utils/dist/index.js"(exports) {
|
|
@@ -36811,6 +36842,7 @@ var require_dist = __commonJS({
|
|
|
36811
36842
|
__exportStar(require_routes(), exports);
|
|
36812
36843
|
__exportStar(require_test_utils(), exports);
|
|
36813
36844
|
__exportStar(require_getCoreJsVersion(), exports);
|
|
36845
|
+
__exportStar(require_react(), exports);
|
|
36814
36846
|
}
|
|
36815
36847
|
});
|
|
36816
36848
|
|
|
@@ -76623,7 +76655,7 @@ var import_path2 = __toESM(require("path"));
|
|
|
76623
76655
|
var import_codesmith = __toESM(require_node());
|
|
76624
76656
|
|
|
76625
76657
|
// package.json
|
|
76626
|
-
var version = "2.0
|
|
76658
|
+
var version = "2.1.0";
|
|
76627
76659
|
|
|
76628
76660
|
// ../../cli/plugin-i18n/dist/js/modern/index.js
|
|
76629
76661
|
var import_lodash2 = __toESM(require_lodash2());
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.0
|
|
14
|
+
"version": "2.1.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"jest": "^27",
|
|
41
41
|
"ts-node": "^10.1.0",
|
|
42
42
|
"typescript": "^4",
|
|
43
|
-
"@modern-js/plugin-i18n": "2.0
|
|
44
|
-
"@modern-js/repo-generator": "3.0.
|
|
45
|
-
"@modern-js/
|
|
46
|
-
"@modern-js/
|
|
47
|
-
"@scripts/build": "2.0
|
|
48
|
-
"@scripts/jest-config": "2.0
|
|
43
|
+
"@modern-js/plugin-i18n": "2.1.0",
|
|
44
|
+
"@modern-js/repo-generator": "3.0.3",
|
|
45
|
+
"@modern-js/generator-plugin-plugin": "3.0.3",
|
|
46
|
+
"@modern-js/utils": "2.1.0",
|
|
47
|
+
"@scripts/build": "2.1.0",
|
|
48
|
+
"@scripts/jest-config": "2.1.0"
|
|
49
49
|
},
|
|
50
50
|
"sideEffects": false,
|
|
51
51
|
"publishConfig": {
|