@modern-js/repo-generator 0.0.0-next-1679563983140 → 0.0.0-next-1679753199581

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 -109
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -135129,108 +135129,6 @@ var require_commands = __commonJS({
135129
135129
  }
135130
135130
  });
135131
135131
 
135132
- // ../../../toolkit/utils/dist/format.js
135133
- var require_format2 = __commonJS({
135134
- "../../../toolkit/utils/dist/format.js"(exports, module2) {
135135
- var __defProp2 = Object.defineProperty;
135136
- var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
135137
- var __getOwnPropNames2 = Object.getOwnPropertyNames;
135138
- var __hasOwnProp2 = Object.prototype.hasOwnProperty;
135139
- var __export2 = (target, all) => {
135140
- for (var name in all)
135141
- __defProp2(target, name, { get: all[name], enumerable: true });
135142
- };
135143
- var __copyProps2 = (to, from, except, desc) => {
135144
- if (from && typeof from === "object" || typeof from === "function") {
135145
- for (let key of __getOwnPropNames2(from))
135146
- if (!__hasOwnProp2.call(to, key) && key !== except)
135147
- __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
135148
- }
135149
- return to;
135150
- };
135151
- var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
135152
- var format_exports = {};
135153
- __export2(format_exports, {
135154
- formatWebpackMessages: () => formatWebpackMessages
135155
- });
135156
- module2.exports = __toCommonJS2(format_exports);
135157
- var friendlySyntaxErrorLabel = "SyntaxError:";
135158
- function isLikelyASyntaxError(message) {
135159
- return message.includes(friendlySyntaxErrorLabel);
135160
- }
135161
- function formatMessage(stats) {
135162
- let lines = [];
135163
- let message;
135164
- if (typeof stats === "object") {
135165
- const fileName = stats.moduleName ? `File: ${stats.moduleName}
135166
- ` : "";
135167
- const mainMessage = typeof stats.formatted === "string" ? stats.formatted : stats.message;
135168
- const details = stats.details ? `
135169
- Details: ${stats.details}
135170
- ` : "";
135171
- const stack = stats.stack ? `
135172
- ${stats.stack}` : "";
135173
- message = `${fileName}${mainMessage}${details}${stack}`;
135174
- } else {
135175
- message = stats;
135176
- }
135177
- lines = message.split("\n");
135178
- lines = lines.map((line) => {
135179
- const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(
135180
- line
135181
- );
135182
- if (!parsingError) {
135183
- return line;
135184
- }
135185
- const [, errorLine, errorColumn, errorMessage] = parsingError;
135186
- return `${friendlySyntaxErrorLabel} ${errorMessage} (${errorLine}:${errorColumn})`;
135187
- });
135188
- message = lines.join("\n");
135189
- message = message.replace(
135190
- /SyntaxError\s+\((\d+):(\d+)\)\s*(.+?)\n/g,
135191
- `${friendlySyntaxErrorLabel} $3 ($1:$2)
135192
- `
135193
- );
135194
- lines = message.split("\n");
135195
- if (lines.length > 2 && lines[1].trim() === "") {
135196
- lines.splice(1, 1);
135197
- }
135198
- lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
135199
- if (lines[1] && lines[1].indexOf("Module not found:") !== -1) {
135200
- lines[1] = lines[1].replace("Error: ", "");
135201
- }
135202
- message = lines.join("\n");
135203
- message = message.replace(
135204
- /^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm,
135205
- ""
135206
- );
135207
- message = message.replace(/^\s*at\s<anonymous>(\n|$)/gm, "");
135208
- lines = message.split("\n");
135209
- lines = lines.filter(
135210
- (line, index, arr) => index === 0 || line.trim() !== "" || line.trim() !== arr[index - 1].trim()
135211
- );
135212
- message = lines.join("\n");
135213
- return message.trim();
135214
- }
135215
- function formatWebpackMessages(json) {
135216
- var _a2, _b, _c;
135217
- const formattedErrors = (_a2 = json == null ? void 0 : json.errors) == null ? void 0 : _a2.map(formatMessage);
135218
- const formattedWarnings = (_b = json == null ? void 0 : json.warnings) == null ? void 0 : _b.map(formatMessage);
135219
- const result = {
135220
- errors: formattedErrors || [],
135221
- warnings: formattedWarnings || []
135222
- };
135223
- if ((_c = result.errors) == null ? void 0 : _c.some(isLikelyASyntaxError)) {
135224
- result.errors = result.errors.filter(isLikelyASyntaxError);
135225
- }
135226
- if (result.errors.length > 1) {
135227
- result.errors.length = 1;
135228
- }
135229
- return result;
135230
- }
135231
- }
135232
- });
135233
-
135234
135132
  // ../../../toolkit/utils/dist/logger.js
135235
135133
  var require_logger4 = __commonJS({
135236
135134
  "../../../toolkit/utils/dist/logger.js"(exports, module2) {
@@ -136018,7 +135916,6 @@ var require_constants6 = __commonJS({
136018
135916
  DEFAULT_DEV_HOST: () => DEFAULT_DEV_HOST,
136019
135917
  DEFAULT_SERVER_CONFIG: () => DEFAULT_SERVER_CONFIG,
136020
135918
  ENTRY_NAME_PATTERN: () => ENTRY_NAME_PATTERN,
136021
- HMR_SOCK_PATH: () => HMR_SOCK_PATH,
136022
135919
  INTERNAL_APP_TOOLS_PLUGINS: () => INTERNAL_APP_TOOLS_PLUGINS,
136023
135920
  INTERNAL_APP_TOOLS_RUNTIME_PLUGINS: () => INTERNAL_APP_TOOLS_RUNTIME_PLUGINS,
136024
135921
  INTERNAL_CLI_PLUGINS: () => INTERNAL_CLI_PLUGINS,
@@ -136032,8 +135929,7 @@ var require_constants6 = __commonJS({
136032
135929
  MAIN_ENTRY_NAME: () => MAIN_ENTRY_NAME,
136033
135930
  OUTPUT_CONFIG_FILE: () => OUTPUT_CONFIG_FILE,
136034
135931
  PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
136035
- ROUTE_MANIFEST: () => ROUTE_MANIFEST,
136036
- ROUTE_MINIFEST_FILE: () => ROUTE_MINIFEST_FILE,
135932
+ ROUTE_MANIFEST_FILE: () => ROUTE_MANIFEST_FILE,
136037
135933
  ROUTE_SPEC_FILE: () => ROUTE_SPEC_FILE,
136038
135934
  SERVER_BUNDLE_DIRECTORY: () => SERVER_BUNDLE_DIRECTORY,
136039
135935
  SERVER_DIR: () => SERVER_DIR,
@@ -136049,7 +135945,6 @@ var require_constants6 = __commonJS({
136049
135945
  SHARED_DIR: () => SHARED_DIR
136050
135946
  });
136051
135947
  module2.exports = __toCommonJS2(constants_exports);
136052
- var HMR_SOCK_PATH = "/webpack-hmr";
136053
135948
  var ROUTE_SPEC_FILE = "route.json";
136054
135949
  var MAIN_ENTRY_NAME = "main";
136055
135950
  var LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
@@ -136065,8 +135960,7 @@ var require_constants6 = __commonJS({
136065
135960
  var CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".mjs"];
136066
135961
  var OUTPUT_CONFIG_FILE = "modern.config.json";
136067
135962
  var DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
136068
- var ROUTE_MINIFEST_FILE = "routes-manifest.json";
136069
- var ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
135963
+ var ROUTE_MANIFEST_FILE = "routes-manifest.json";
136070
135964
  var LOADER_ROUTES_DIR = `loader-routes`;
136071
135965
  var DEFAULT_DEV_HOST = "0.0.0.0";
136072
135966
  var INTERNAL_APP_TOOLS_PLUGINS = {
@@ -138683,7 +138577,6 @@ var require_dist2 = __commonJS({
138683
138577
  module2.exports = __toCommonJS2(src_exports2);
138684
138578
  __reExport(src_exports2, require_compiled2(), module2.exports);
138685
138579
  __reExport(src_exports2, require_commands(), module2.exports);
138686
- __reExport(src_exports2, require_format2(), module2.exports);
138687
138580
  __reExport(src_exports2, require_FileSizeReporter2(), module2.exports);
138688
138581
  __reExport(src_exports2, require_printBuildError2(), module2.exports);
138689
138582
  __reExport(src_exports2, require_debug5(), module2.exports);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1679563983140",
14
+ "version": "0.0.0-next-1679753199581",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,17 +26,17 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^29",
28
28
  "typescript": "^4",
29
- "@modern-js/base-generator": "0.0.0-next-1679563983140",
30
- "@modern-js/generator-common": "0.0.0-next-1679563983140",
31
- "@modern-js/generator-plugin": "0.0.0-next-1679563983140",
32
- "@modern-js/generator-utils": "0.0.0-next-1679563983140",
33
- "@modern-js/module-generator": "0.0.0-next-1679563983140",
34
- "@modern-js/monorepo-generator": "0.0.0-next-1679563983140",
35
- "@modern-js/mwa-generator": "0.0.0-next-1679563983140",
36
- "@modern-js/doc-generator": "0.0.0-next-1679563983140",
37
- "@modern-js/utils": "0.0.0-next-1679563983140",
38
- "@scripts/build": "0.0.0-next-1679563983140",
39
- "@scripts/jest-config": "0.0.0-next-1679563983140"
29
+ "@modern-js/base-generator": "0.0.0-next-1679753199581",
30
+ "@modern-js/generator-common": "0.0.0-next-1679753199581",
31
+ "@modern-js/generator-plugin": "0.0.0-next-1679753199581",
32
+ "@modern-js/generator-utils": "0.0.0-next-1679753199581",
33
+ "@modern-js/module-generator": "0.0.0-next-1679753199581",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-1679753199581",
35
+ "@modern-js/mwa-generator": "0.0.0-next-1679753199581",
36
+ "@modern-js/utils": "0.0.0-next-1679753199581",
37
+ "@scripts/build": "0.0.0-next-1679753199581",
38
+ "@scripts/jest-config": "0.0.0-next-1679753199581",
39
+ "@modern-js/doc-generator": "0.0.0-next-1679753199581"
40
40
  },
41
41
  "sideEffects": false,
42
42
  "publishConfig": {