@modern-js/entry-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.
Files changed (2) hide show
  1. package/dist/index.js +2 -39
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -36219,11 +36219,10 @@ var require_config2 = __commonJS({
36219
36219
  }
36220
36220
  });
36221
36221
  var _is = require_is();
36222
- var _constants = require_constants();
36223
- var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
36222
+ var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
36224
36223
  if (optionsByEntries) {
36225
36224
  let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
36226
- if (optionsByEntry === void 0 && name === _constants.MAIN_ENTRY_NAME && packageName) {
36225
+ if (optionsByEntry === void 0 && isMainEntry && packageName) {
36227
36226
  optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
36228
36227
  }
36229
36228
  return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
@@ -37224,41 +37223,6 @@ var require_require = __commonJS({
37224
37223
  }
37225
37224
  });
37226
37225
 
37227
- // ../../../toolkit/utils/dist/cjs/cli/routes.js
37228
- var require_routes = __commonJS({
37229
- "../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
37230
- "use strict";
37231
- Object.defineProperty(exports, "__esModule", {
37232
- value: true
37233
- });
37234
- Object.defineProperty(exports, "getRouteId", {
37235
- enumerable: true,
37236
- get: function() {
37237
- return getRouteId;
37238
- }
37239
- });
37240
- var _interop_require_default = require_interop_require_default();
37241
- var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
37242
- var _constants = require_constants();
37243
- var _path1 = require_path();
37244
- var getPathWithoutExt = (filename) => {
37245
- const extname = _path.default.extname(filename);
37246
- return filename.slice(0, -extname.length);
37247
- };
37248
- var getRouteId = (componentPath, routesDir, entryName) => {
37249
- const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
37250
- const pathWithoutExt = getPathWithoutExt(relativePath);
37251
- let id = ``;
37252
- if (entryName === _constants.MAIN_ENTRY_NAME) {
37253
- id = pathWithoutExt;
37254
- } else {
37255
- id = `${entryName}_${pathWithoutExt}`;
37256
- }
37257
- return id.replace(/\[(.*?)\]/g, "($1)");
37258
- };
37259
- }
37260
- });
37261
-
37262
37226
  // ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
37263
37227
  var require_runtimeExports = __commonJS({
37264
37228
  "../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
@@ -37405,7 +37369,6 @@ var require_cli = __commonJS({
37405
37369
  _export_star._(require_prettyInstructions(), exports);
37406
37370
  _export_star._(require_print(), exports);
37407
37371
  _export_star._(require_require(), exports);
37408
- _export_star._(require_routes(), exports);
37409
37372
  _export_star._(require_runtimeExports(), exports);
37410
37373
  _export_star._(require_watch(), exports);
37411
37374
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.1.23",
18
+ "version": "3.1.24",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,12 +30,12 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@modern-js/generator-common": "3.1.23",
34
- "@modern-js/utils": "2.23.1",
35
- "@modern-js/plugin-i18n": "2.23.1",
36
- "@modern-js/generator-utils": "3.1.23",
37
- "@scripts/build": "2.23.1",
38
- "@scripts/jest-config": "2.23.1"
33
+ "@modern-js/generator-common": "3.1.24",
34
+ "@modern-js/utils": "2.24.0",
35
+ "@modern-js/generator-utils": "3.1.24",
36
+ "@modern-js/plugin-i18n": "2.24.0",
37
+ "@scripts/jest-config": "2.24.0",
38
+ "@scripts/build": "2.24.0"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {