@modern-js/repo-generator 3.1.23 → 3.1.24
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 +2 -39
- package/package.json +12 -12
package/dist/index.js
CHANGED
@@ -123750,11 +123750,10 @@ var require_config3 = __commonJS({
|
|
123750
123750
|
}
|
123751
123751
|
});
|
123752
123752
|
var _is = require_is();
|
123753
|
-
var
|
123754
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
123753
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
123755
123754
|
if (optionsByEntries) {
|
123756
123755
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
123757
|
-
if (optionsByEntry === void 0 &&
|
123756
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
123758
123757
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
123759
123758
|
}
|
123760
123759
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
@@ -124755,41 +124754,6 @@ var require_require = __commonJS({
|
|
124755
124754
|
}
|
124756
124755
|
});
|
124757
124756
|
|
124758
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
124759
|
-
var require_routes = __commonJS({
|
124760
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
124761
|
-
"use strict";
|
124762
|
-
Object.defineProperty(exports, "__esModule", {
|
124763
|
-
value: true
|
124764
|
-
});
|
124765
|
-
Object.defineProperty(exports, "getRouteId", {
|
124766
|
-
enumerable: true,
|
124767
|
-
get: function() {
|
124768
|
-
return getRouteId;
|
124769
|
-
}
|
124770
|
-
});
|
124771
|
-
var _interop_require_default = require_interop_require_default();
|
124772
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
124773
|
-
var _constants = require_constants2();
|
124774
|
-
var _path1 = require_path();
|
124775
|
-
var getPathWithoutExt = (filename) => {
|
124776
|
-
const extname = _path.default.extname(filename);
|
124777
|
-
return filename.slice(0, -extname.length);
|
124778
|
-
};
|
124779
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
124780
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
124781
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
124782
|
-
let id = ``;
|
124783
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
124784
|
-
id = pathWithoutExt;
|
124785
|
-
} else {
|
124786
|
-
id = `${entryName}_${pathWithoutExt}`;
|
124787
|
-
}
|
124788
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
124789
|
-
};
|
124790
|
-
}
|
124791
|
-
});
|
124792
|
-
|
124793
124757
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
124794
124758
|
var require_runtimeExports = __commonJS({
|
124795
124759
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
@@ -124936,7 +124900,6 @@ var require_cli = __commonJS({
|
|
124936
124900
|
_export_star._(require_prettyInstructions(), exports);
|
124937
124901
|
_export_star._(require_print(), exports);
|
124938
124902
|
_export_star._(require_require(), exports);
|
124939
|
-
_export_star._(require_routes(), exports);
|
124940
124903
|
_export_star._(require_runtimeExports(), exports);
|
124941
124904
|
_export_star._(require_watch(), exports);
|
124942
124905
|
}
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.24",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"main": "./dist/index.js",
|
21
21
|
"files": [
|
@@ -29,17 +29,17 @@
|
|
29
29
|
"@types/node": "^14",
|
30
30
|
"jest": "^29",
|
31
31
|
"typescript": "^5",
|
32
|
-
"@modern-js/generator-common": "3.1.
|
33
|
-
"@modern-js/
|
34
|
-
"@modern-js/
|
35
|
-
"@modern-js/
|
36
|
-
"@modern-js/
|
37
|
-
"@modern-js/utils": "2.
|
38
|
-
"@modern-js/generator
|
39
|
-
"@modern-js/generator
|
40
|
-
"@
|
41
|
-
"@scripts/build": "2.
|
42
|
-
"@
|
32
|
+
"@modern-js/generator-common": "3.1.24",
|
33
|
+
"@modern-js/generator-plugin": "3.1.24",
|
34
|
+
"@modern-js/module-generator": "3.1.24",
|
35
|
+
"@modern-js/monorepo-generator": "3.1.24",
|
36
|
+
"@modern-js/mwa-generator": "3.1.24",
|
37
|
+
"@modern-js/utils": "2.24.0",
|
38
|
+
"@modern-js/doc-generator": "3.1.24",
|
39
|
+
"@modern-js/base-generator": "3.1.24",
|
40
|
+
"@modern-js/generator-utils": "3.1.24",
|
41
|
+
"@scripts/build": "2.24.0",
|
42
|
+
"@scripts/jest-config": "2.24.0"
|
43
43
|
},
|
44
44
|
"sideEffects": false,
|
45
45
|
"publishConfig": {
|