@modern-js/upgrade-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 +6 -6
package/dist/index.js CHANGED
@@ -116428,11 +116428,10 @@ var require_config3 = __commonJS({
116428
116428
  }
116429
116429
  });
116430
116430
  var _is = require_is();
116431
- var _constants = require_constants();
116432
- var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
116431
+ var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
116433
116432
  if (optionsByEntries) {
116434
116433
  let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
116435
- if (optionsByEntry === void 0 && name === _constants.MAIN_ENTRY_NAME && packageName) {
116434
+ if (optionsByEntry === void 0 && isMainEntry && packageName) {
116436
116435
  optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
116437
116436
  }
116438
116437
  return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
@@ -117433,41 +117432,6 @@ var require_require = __commonJS({
117433
117432
  }
117434
117433
  });
117435
117434
 
117436
- // ../../../toolkit/utils/dist/cjs/cli/routes.js
117437
- var require_routes = __commonJS({
117438
- "../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
117439
- "use strict";
117440
- Object.defineProperty(exports, "__esModule", {
117441
- value: true
117442
- });
117443
- Object.defineProperty(exports, "getRouteId", {
117444
- enumerable: true,
117445
- get: function() {
117446
- return getRouteId;
117447
- }
117448
- });
117449
- var _interop_require_default = require_interop_require_default();
117450
- var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
117451
- var _constants = require_constants();
117452
- var _path1 = require_path();
117453
- var getPathWithoutExt = (filename) => {
117454
- const extname = _path.default.extname(filename);
117455
- return filename.slice(0, -extname.length);
117456
- };
117457
- var getRouteId = (componentPath, routesDir, entryName) => {
117458
- const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
117459
- const pathWithoutExt = getPathWithoutExt(relativePath);
117460
- let id = ``;
117461
- if (entryName === _constants.MAIN_ENTRY_NAME) {
117462
- id = pathWithoutExt;
117463
- } else {
117464
- id = `${entryName}_${pathWithoutExt}`;
117465
- }
117466
- return id.replace(/\[(.*?)\]/g, "($1)");
117467
- };
117468
- }
117469
- });
117470
-
117471
117435
  // ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
117472
117436
  var require_runtimeExports = __commonJS({
117473
117437
  "../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
@@ -117614,7 +117578,6 @@ var require_cli = __commonJS({
117614
117578
  _export_star._(require_prettyInstructions(), exports);
117615
117579
  _export_star._(require_print(), exports);
117616
117580
  _export_star._(require_require(), exports);
117617
- _export_star._(require_routes(), exports);
117618
117581
  _export_star._(require_runtimeExports(), exports);
117619
117582
  _export_star._(require_watch(), exports);
117620
117583
  }
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,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/plugin-i18n": "2.23.1",
36
- "@modern-js/generator-utils": "3.1.23",
37
- "@modern-js/generator-common": "3.1.23"
33
+ "@modern-js/generator-utils": "3.1.24",
34
+ "@scripts/build": "2.24.0",
35
+ "@scripts/jest-config": "2.24.0",
36
+ "@modern-js/generator-common": "3.1.24",
37
+ "@modern-js/plugin-i18n": "2.24.0"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {