@modern-js/repo-generator 0.0.0-next-20221205094937 → 0.0.0-next-20221205140617
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 +11 -1
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -66730,6 +66730,10 @@ var init_internals2 = __esmMin(() => {
|
|
|
66730
66730
|
return false;
|
|
66731
66731
|
if (target === 0)
|
|
66732
66732
|
return false;
|
|
66733
|
+
if (Array.isArray(target))
|
|
66734
|
+
return false;
|
|
66735
|
+
if (isPlainObj(target))
|
|
66736
|
+
return false;
|
|
66733
66737
|
}
|
|
66734
66738
|
var isEmptyTarget = target !== null && isEmpty(target);
|
|
66735
66739
|
var isEmptySource = source !== null && isEmpty(source);
|
|
@@ -141770,6 +141774,7 @@ var require_routes = __commonJSMin((exports) => {
|
|
|
141770
141774
|
exports.getRouteId = exports.getPathWithoutExt = void 0;
|
|
141771
141775
|
var path_1 = __importDefault(__require("path"));
|
|
141772
141776
|
var path_2 = require_path2();
|
|
141777
|
+
var constants_1 = require_constants6();
|
|
141773
141778
|
var getPathWithoutExt = (filename) => {
|
|
141774
141779
|
const extname = path_1.default.extname(filename);
|
|
141775
141780
|
return filename.slice(0, -extname.length);
|
|
@@ -141778,7 +141783,12 @@ var require_routes = __commonJSMin((exports) => {
|
|
|
141778
141783
|
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
141779
141784
|
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
|
141780
141785
|
const pathWithoutExt = (0, exports.getPathWithoutExt)(relativePath);
|
|
141781
|
-
|
|
141786
|
+
let id = ``;
|
|
141787
|
+
if (entryName === constants_1.MAIN_ENTRY_NAME) {
|
|
141788
|
+
id = pathWithoutExt;
|
|
141789
|
+
} else {
|
|
141790
|
+
id = `${entryName}_${pathWithoutExt}`;
|
|
141791
|
+
}
|
|
141782
141792
|
return id;
|
|
141783
141793
|
};
|
|
141784
141794
|
exports.getRouteId = getRouteId;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221205140617",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^27",
|
|
31
31
|
"typescript": "^4",
|
|
32
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
33
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
35
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
36
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
37
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
38
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-next-20221205140617",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-20221205140617",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221205140617",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-20221205140617",
|
|
36
|
+
"@modern-js/module-generator": "0.0.0-next-20221205140617",
|
|
37
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221205140617",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221205140617",
|
|
39
|
+
"@scripts/build": "0.0.0-next-20221205140617",
|
|
40
|
+
"@modern-js/utils": "0.0.0-next-20221205140617",
|
|
41
|
+
"@scripts/jest-config": "0.0.0-next-20221205140617"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"modernConfig": {
|