@modern-js/ssg-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
@@ -114814,11 +114814,10 @@ var require_config3 = __commonJS({
114814
114814
  }
114815
114815
  });
114816
114816
  var _is = require_is();
114817
- var _constants = require_constants();
114818
- var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
114817
+ var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
114819
114818
  if (optionsByEntries) {
114820
114819
  let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
114821
- if (optionsByEntry === void 0 && name === _constants.MAIN_ENTRY_NAME && packageName) {
114820
+ if (optionsByEntry === void 0 && isMainEntry && packageName) {
114822
114821
  optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
114823
114822
  }
114824
114823
  return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
@@ -115819,41 +115818,6 @@ var require_require = __commonJS({
115819
115818
  }
115820
115819
  });
115821
115820
 
115822
- // ../../../toolkit/utils/dist/cjs/cli/routes.js
115823
- var require_routes = __commonJS({
115824
- "../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
115825
- "use strict";
115826
- Object.defineProperty(exports, "__esModule", {
115827
- value: true
115828
- });
115829
- Object.defineProperty(exports, "getRouteId", {
115830
- enumerable: true,
115831
- get: function() {
115832
- return getRouteId;
115833
- }
115834
- });
115835
- var _interop_require_default = require_interop_require_default();
115836
- var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
115837
- var _constants = require_constants();
115838
- var _path1 = require_path();
115839
- var getPathWithoutExt = (filename) => {
115840
- const extname = _path.default.extname(filename);
115841
- return filename.slice(0, -extname.length);
115842
- };
115843
- var getRouteId = (componentPath, routesDir, entryName) => {
115844
- const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
115845
- const pathWithoutExt = getPathWithoutExt(relativePath);
115846
- let id = ``;
115847
- if (entryName === _constants.MAIN_ENTRY_NAME) {
115848
- id = pathWithoutExt;
115849
- } else {
115850
- id = `${entryName}_${pathWithoutExt}`;
115851
- }
115852
- return id.replace(/\[(.*?)\]/g, "($1)");
115853
- };
115854
- }
115855
- });
115856
-
115857
115821
  // ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
115858
115822
  var require_runtimeExports = __commonJS({
115859
115823
  "../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
@@ -116000,7 +115964,6 @@ var require_cli = __commonJS({
116000
115964
  _export_star._(require_prettyInstructions(), exports);
116001
115965
  _export_star._(require_print(), exports);
116002
115966
  _export_star._(require_require(), exports);
116003
- _export_star._(require_routes(), exports);
116004
115967
  _export_star._(require_runtimeExports(), exports);
116005
115968
  _export_star._(require_watch(), exports);
116006
115969
  }
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": [
@@ -29,12 +29,12 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/generator-common": "3.1.23",
33
- "@modern-js/generator-utils": "3.1.23",
34
- "@modern-js/dependence-generator": "3.1.23",
35
- "@modern-js/plugin-i18n": "2.23.1",
36
- "@scripts/build": "2.23.1",
37
- "@scripts/jest-config": "2.23.1"
32
+ "@modern-js/generator-utils": "3.1.24",
33
+ "@modern-js/generator-common": "3.1.24",
34
+ "@modern-js/dependence-generator": "3.1.24",
35
+ "@modern-js/plugin-i18n": "2.24.0",
36
+ "@scripts/jest-config": "2.24.0",
37
+ "@scripts/build": "2.24.0"
38
38
  },
39
39
  "sideEffects": false,
40
40
  "publishConfig": {