@modern-js/packages-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 +5 -5
package/dist/index.js
CHANGED
|
@@ -116860,11 +116860,10 @@ var require_config3 = __commonJS({
|
|
|
116860
116860
|
}
|
|
116861
116861
|
});
|
|
116862
116862
|
var _is = require_is();
|
|
116863
|
-
var
|
|
116864
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
|
116863
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
|
116865
116864
|
if (optionsByEntries) {
|
|
116866
116865
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
|
116867
|
-
if (optionsByEntry === void 0 &&
|
|
116866
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
|
116868
116867
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
|
116869
116868
|
}
|
|
116870
116869
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
|
@@ -117865,41 +117864,6 @@ var require_require = __commonJS({
|
|
|
117865
117864
|
}
|
|
117866
117865
|
});
|
|
117867
117866
|
|
|
117868
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
|
117869
|
-
var require_routes = __commonJS({
|
|
117870
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
|
117871
|
-
"use strict";
|
|
117872
|
-
Object.defineProperty(exports, "__esModule", {
|
|
117873
|
-
value: true
|
|
117874
|
-
});
|
|
117875
|
-
Object.defineProperty(exports, "getRouteId", {
|
|
117876
|
-
enumerable: true,
|
|
117877
|
-
get: function() {
|
|
117878
|
-
return getRouteId;
|
|
117879
|
-
}
|
|
117880
|
-
});
|
|
117881
|
-
var _interop_require_default = require_interop_require_default();
|
|
117882
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
117883
|
-
var _constants = require_constants();
|
|
117884
|
-
var _path1 = require_path();
|
|
117885
|
-
var getPathWithoutExt = (filename) => {
|
|
117886
|
-
const extname = _path.default.extname(filename);
|
|
117887
|
-
return filename.slice(0, -extname.length);
|
|
117888
|
-
};
|
|
117889
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
117890
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
|
117891
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
|
117892
|
-
let id = ``;
|
|
117893
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
|
117894
|
-
id = pathWithoutExt;
|
|
117895
|
-
} else {
|
|
117896
|
-
id = `${entryName}_${pathWithoutExt}`;
|
|
117897
|
-
}
|
|
117898
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
|
117899
|
-
};
|
|
117900
|
-
}
|
|
117901
|
-
});
|
|
117902
|
-
|
|
117903
117867
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
|
117904
117868
|
var require_runtimeExports = __commonJS({
|
|
117905
117869
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
|
@@ -118046,7 +118010,6 @@ var require_cli = __commonJS({
|
|
|
118046
118010
|
_export_star._(require_prettyInstructions(), exports);
|
|
118047
118011
|
_export_star._(require_print(), exports);
|
|
118048
118012
|
_export_star._(require_require(), exports);
|
|
118049
|
-
_export_star._(require_routes(), exports);
|
|
118050
118013
|
_export_star._(require_runtimeExports(), exports);
|
|
118051
118014
|
_export_star._(require_watch(), exports);
|
|
118052
118015
|
}
|
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,10 +30,10 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@scripts/build": "2.
|
|
34
|
-
"@
|
|
35
|
-
"@modern-js/generator-
|
|
36
|
-
"@
|
|
33
|
+
"@scripts/build": "2.24.0",
|
|
34
|
+
"@modern-js/generator-utils": "3.1.24",
|
|
35
|
+
"@modern-js/generator-common": "3.1.24",
|
|
36
|
+
"@scripts/jest-config": "2.24.0"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false,
|
|
39
39
|
"publishConfig": {
|