@modern-js/dependence-generator 3.1.23 → 3.1.25

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 +6 -6
package/dist/index.js CHANGED
@@ -116435,11 +116435,10 @@ var require_config3 = __commonJS({
116435
116435
  }
116436
116436
  });
116437
116437
  var _is = require_is();
116438
- var _constants = require_constants();
116439
- var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
116438
+ var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
116440
116439
  if (optionsByEntries) {
116441
116440
  let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
116442
- if (optionsByEntry === void 0 && name === _constants.MAIN_ENTRY_NAME && packageName) {
116441
+ if (optionsByEntry === void 0 && isMainEntry && packageName) {
116443
116442
  optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
116444
116443
  }
116445
116444
  return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
@@ -117440,41 +117439,6 @@ var require_require = __commonJS({
117440
117439
  }
117441
117440
  });
117442
117441
 
117443
- // ../../../toolkit/utils/dist/cjs/cli/routes.js
117444
- var require_routes = __commonJS({
117445
- "../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
117446
- "use strict";
117447
- Object.defineProperty(exports, "__esModule", {
117448
- value: true
117449
- });
117450
- Object.defineProperty(exports, "getRouteId", {
117451
- enumerable: true,
117452
- get: function() {
117453
- return getRouteId;
117454
- }
117455
- });
117456
- var _interop_require_default = require_interop_require_default();
117457
- var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
117458
- var _constants = require_constants();
117459
- var _path1 = require_path();
117460
- var getPathWithoutExt = (filename) => {
117461
- const extname = _path.default.extname(filename);
117462
- return filename.slice(0, -extname.length);
117463
- };
117464
- var getRouteId = (componentPath, routesDir, entryName) => {
117465
- const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
117466
- const pathWithoutExt = getPathWithoutExt(relativePath);
117467
- let id = ``;
117468
- if (entryName === _constants.MAIN_ENTRY_NAME) {
117469
- id = pathWithoutExt;
117470
- } else {
117471
- id = `${entryName}_${pathWithoutExt}`;
117472
- }
117473
- return id.replace(/\[(.*?)\]/g, "($1)");
117474
- };
117475
- }
117476
- });
117477
-
117478
117442
  // ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
117479
117443
  var require_runtimeExports = __commonJS({
117480
117444
  "../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
@@ -117621,7 +117585,6 @@ var require_cli = __commonJS({
117621
117585
  _export_star._(require_prettyInstructions(), exports);
117622
117586
  _export_star._(require_print(), exports);
117623
117587
  _export_star._(require_require(), exports);
117624
- _export_star._(require_routes(), exports);
117625
117588
  _export_star._(require_runtimeExports(), exports);
117626
117589
  _export_star._(require_watch(), exports);
117627
117590
  }
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.25",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -30,11 +30,11 @@
30
30
  "@types/node": "^14",
31
31
  "jest": "^29",
32
32
  "typescript": "^5",
33
- "@scripts/build": "2.23.1",
34
- "@scripts/jest-config": "2.23.1",
35
- "@modern-js/generator-utils": "3.1.23",
36
- "@modern-js/plugin-i18n": "2.23.1",
37
- "@modern-js/generator-common": "3.1.23"
33
+ "@modern-js/generator-utils": "3.1.25",
34
+ "@scripts/jest-config": "2.24.1",
35
+ "@modern-js/plugin-i18n": "2.24.1",
36
+ "@modern-js/generator-common": "3.1.25",
37
+ "@scripts/build": "2.24.1"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {