@modern-js/monorepo-generator 3.1.22 → 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 +20 -46
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -115349,10 +115349,14 @@ var require_chainId = __commonJS({
|
|
115349
115349
|
SVG: "svg",
|
115350
115350
|
/** Rule for pug */
|
115351
115351
|
PUG: "pug",
|
115352
|
+
/** Rule for Vue */
|
115353
|
+
VUE: "vue",
|
115352
115354
|
/** Rule for toml */
|
115353
115355
|
TOML: "toml",
|
115354
115356
|
/** Rule for yaml */
|
115355
115357
|
YAML: "yaml",
|
115358
|
+
/** Rule for wasm */
|
115359
|
+
WASM: "wasm",
|
115356
115360
|
/** Rule for bff */
|
115357
115361
|
JS_BFF_API: "js-bff-api"
|
115358
115362
|
},
|
@@ -115379,6 +115383,8 @@ var require_chainId = __commonJS({
|
|
115379
115383
|
URL: "url",
|
115380
115384
|
/** pug-loader */
|
115381
115385
|
PUG: "pug",
|
115386
|
+
/** vue-loader */
|
115387
|
+
VUE: "vue",
|
115382
115388
|
/** file-loader */
|
115383
115389
|
FILE: "file",
|
115384
115390
|
/** @svgr/webpack */
|
@@ -115448,12 +115454,16 @@ var require_chainId = __commonJS({
|
|
115448
115454
|
BUNDLE_ANALYZER: "bundle-analyze",
|
115449
115455
|
/** BottomTemplatePlugin */
|
115450
115456
|
BOTTOM_TEMPLATE: "bottom-template",
|
115451
|
-
/**
|
115452
|
-
|
115457
|
+
/** HtmlTagsPlugin */
|
115458
|
+
HTML_TAGS: "html-tags",
|
115453
115459
|
/** HtmlNoncePlugin */
|
115454
115460
|
HTML_NONCE: "html-nonce",
|
115461
|
+
/** HtmlCrossOriginPlugin */
|
115462
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
115455
115463
|
/** MiniCssExtractPlugin */
|
115456
115464
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
115465
|
+
/** VueLoaderPlugin */
|
115466
|
+
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
115457
115467
|
/** ReactFastRefreshPlugin */
|
115458
115468
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
115459
115469
|
/** ProvidePlugin for node polyfill */
|
@@ -115467,9 +115477,7 @@ var require_chainId = __commonJS({
|
|
115467
115477
|
/** HtmlAsyncChunkPlugin */
|
115468
115478
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
115469
115479
|
/** SWC_POLYFILL_CHECKER */
|
115470
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
115471
|
-
/** HtmlTagsPlugin */
|
115472
|
-
HTML_TAGS: "html-tags"
|
115480
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
115473
115481
|
},
|
115474
115482
|
/** Predefined minimizers */
|
115475
115483
|
MINIMIZER: {
|
@@ -116126,6 +116134,7 @@ var require_project = __commonJS({
|
|
116126
116134
|
});
|
116127
116135
|
var _interop_require_default = require_interop_require_default();
|
116128
116136
|
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
116137
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
116129
116138
|
var _commands = require_commands();
|
116130
116139
|
var _compiled = require_compiled();
|
116131
116140
|
var _common = require_common3();
|
@@ -116165,8 +116174,10 @@ var require_project = __commonJS({
|
|
116165
116174
|
return Boolean(options["web-only"]);
|
116166
116175
|
});
|
116167
116176
|
var isBeyondReact17 = (cwd) => {
|
116168
|
-
const pkgPath =
|
116169
|
-
|
116177
|
+
const pkgPath = _pkgup.default.sync({
|
116178
|
+
cwd
|
116179
|
+
});
|
116180
|
+
if (!pkgPath) {
|
116170
116181
|
return false;
|
116171
116182
|
}
|
116172
116183
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
@@ -116436,11 +116447,10 @@ var require_config3 = __commonJS({
|
|
116436
116447
|
}
|
116437
116448
|
});
|
116438
116449
|
var _is = require_is();
|
116439
|
-
var
|
116440
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
116450
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
116441
116451
|
if (optionsByEntries) {
|
116442
116452
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
116443
|
-
if (optionsByEntry === void 0 &&
|
116453
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
116444
116454
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
116445
116455
|
}
|
116446
116456
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
@@ -117441,41 +117451,6 @@ var require_require = __commonJS({
|
|
117441
117451
|
}
|
117442
117452
|
});
|
117443
117453
|
|
117444
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
117445
|
-
var require_routes = __commonJS({
|
117446
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
117447
|
-
"use strict";
|
117448
|
-
Object.defineProperty(exports, "__esModule", {
|
117449
|
-
value: true
|
117450
|
-
});
|
117451
|
-
Object.defineProperty(exports, "getRouteId", {
|
117452
|
-
enumerable: true,
|
117453
|
-
get: function() {
|
117454
|
-
return getRouteId;
|
117455
|
-
}
|
117456
|
-
});
|
117457
|
-
var _interop_require_default = require_interop_require_default();
|
117458
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
117459
|
-
var _constants = require_constants();
|
117460
|
-
var _path1 = require_path();
|
117461
|
-
var getPathWithoutExt = (filename) => {
|
117462
|
-
const extname = _path.default.extname(filename);
|
117463
|
-
return filename.slice(0, -extname.length);
|
117464
|
-
};
|
117465
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
117466
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
117467
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
117468
|
-
let id = ``;
|
117469
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
117470
|
-
id = pathWithoutExt;
|
117471
|
-
} else {
|
117472
|
-
id = `${entryName}_${pathWithoutExt}`;
|
117473
|
-
}
|
117474
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
117475
|
-
};
|
117476
|
-
}
|
117477
|
-
});
|
117478
|
-
|
117479
117454
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
117480
117455
|
var require_runtimeExports = __commonJS({
|
117481
117456
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
@@ -117622,7 +117597,6 @@ var require_cli = __commonJS({
|
|
117622
117597
|
_export_star._(require_prettyInstructions(), exports);
|
117623
117598
|
_export_star._(require_print(), exports);
|
117624
117599
|
_export_star._(require_require(), exports);
|
117625
|
-
_export_star._(require_routes(), exports);
|
117626
117600
|
_export_star._(require_runtimeExports(), exports);
|
117627
117601
|
_export_star._(require_watch(), exports);
|
117628
117602
|
}
|
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,14 +30,14 @@
|
|
30
30
|
"@types/node": "^14",
|
31
31
|
"jest": "^29",
|
32
32
|
"typescript": "^5",
|
33
|
-
"@modern-js/base-generator": "3.1.
|
34
|
-
"@modern-js/
|
35
|
-
"@modern-js/
|
36
|
-
"@modern-js/
|
37
|
-
"@modern-js/generator-common": "3.1.
|
38
|
-
"@modern-js/changeset-generator": "3.1.
|
39
|
-
"@scripts/
|
40
|
-
"@scripts/
|
33
|
+
"@modern-js/base-generator": "3.1.24",
|
34
|
+
"@modern-js/plugin-i18n": "2.24.0",
|
35
|
+
"@modern-js/packages-generator": "3.1.24",
|
36
|
+
"@modern-js/generator-utils": "3.1.24",
|
37
|
+
"@modern-js/generator-common": "3.1.24",
|
38
|
+
"@modern-js/changeset-generator": "3.1.24",
|
39
|
+
"@scripts/build": "2.24.0",
|
40
|
+
"@scripts/jest-config": "2.24.0"
|
41
41
|
},
|
42
42
|
"sideEffects": false,
|
43
43
|
"publishConfig": {
|