@modern-js/monorepo-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 +9 -9
package/dist/index.js
CHANGED
@@ -116447,11 +116447,10 @@ var require_config3 = __commonJS({
|
|
116447
116447
|
}
|
116448
116448
|
});
|
116449
116449
|
var _is = require_is();
|
116450
|
-
var
|
116451
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
116450
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
116452
116451
|
if (optionsByEntries) {
|
116453
116452
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
116454
|
-
if (optionsByEntry === void 0 &&
|
116453
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
116455
116454
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
116456
116455
|
}
|
116457
116456
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
@@ -117452,41 +117451,6 @@ var require_require = __commonJS({
|
|
117452
117451
|
}
|
117453
117452
|
});
|
117454
117453
|
|
117455
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
117456
|
-
var require_routes = __commonJS({
|
117457
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
117458
|
-
"use strict";
|
117459
|
-
Object.defineProperty(exports, "__esModule", {
|
117460
|
-
value: true
|
117461
|
-
});
|
117462
|
-
Object.defineProperty(exports, "getRouteId", {
|
117463
|
-
enumerable: true,
|
117464
|
-
get: function() {
|
117465
|
-
return getRouteId;
|
117466
|
-
}
|
117467
|
-
});
|
117468
|
-
var _interop_require_default = require_interop_require_default();
|
117469
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
117470
|
-
var _constants = require_constants();
|
117471
|
-
var _path1 = require_path();
|
117472
|
-
var getPathWithoutExt = (filename) => {
|
117473
|
-
const extname = _path.default.extname(filename);
|
117474
|
-
return filename.slice(0, -extname.length);
|
117475
|
-
};
|
117476
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
117477
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
117478
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
117479
|
-
let id = ``;
|
117480
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
117481
|
-
id = pathWithoutExt;
|
117482
|
-
} else {
|
117483
|
-
id = `${entryName}_${pathWithoutExt}`;
|
117484
|
-
}
|
117485
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
117486
|
-
};
|
117487
|
-
}
|
117488
|
-
});
|
117489
|
-
|
117490
117454
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
117491
117455
|
var require_runtimeExports = __commonJS({
|
117492
117456
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
@@ -117633,7 +117597,6 @@ var require_cli = __commonJS({
|
|
117633
117597
|
_export_star._(require_prettyInstructions(), exports);
|
117634
117598
|
_export_star._(require_print(), exports);
|
117635
117599
|
_export_star._(require_require(), exports);
|
117636
|
-
_export_star._(require_routes(), exports);
|
117637
117600
|
_export_star._(require_runtimeExports(), exports);
|
117638
117601
|
_export_star._(require_watch(), exports);
|
117639
117602
|
}
|
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": [
|
@@ -30,14 +30,14 @@
|
|
30
30
|
"@types/node": "^14",
|
31
31
|
"jest": "^29",
|
32
32
|
"typescript": "^5",
|
33
|
-
"@modern-js/base-generator": "3.1.
|
34
|
-
"@modern-js/plugin-i18n": "2.
|
35
|
-
"@modern-js/packages-generator": "3.1.
|
36
|
-
"@modern-js/generator-utils": "3.1.
|
37
|
-
"@modern-js/generator-common": "3.1.
|
38
|
-
"@modern-js/changeset-generator": "3.1.
|
39
|
-
"@scripts/build": "2.
|
40
|
-
"@scripts/jest-config": "2.
|
33
|
+
"@modern-js/base-generator": "3.1.24",
|
34
|
+
"@modern-js/plugin-i18n": "2.24.0",
|
35
|
+
"@modern-js/packages-generator": "3.1.24",
|
36
|
+
"@modern-js/generator-utils": "3.1.24",
|
37
|
+
"@modern-js/generator-common": "3.1.24",
|
38
|
+
"@modern-js/changeset-generator": "3.1.24",
|
39
|
+
"@scripts/build": "2.24.0",
|
40
|
+
"@scripts/jest-config": "2.24.0"
|
41
41
|
},
|
42
42
|
"sideEffects": false,
|
43
43
|
"publishConfig": {
|