@module-federation/dts-plugin 0.6.14 → 0.6.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @module-federation/dts-plugin
2
2
 
3
+ ## 0.6.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f779188]
8
+ - Updated dependencies [024df60]
9
+ - @module-federation/sdk@0.6.16
10
+ - @module-federation/managers@0.6.16
11
+ - @module-federation/third-party-dts-extractor@0.6.16
12
+
13
+ ## 0.6.15
14
+
15
+ ### Patch Changes
16
+
17
+ - @module-federation/sdk@0.6.15
18
+ - @module-federation/managers@0.6.15
19
+ - @module-federation/third-party-dts-extractor@0.6.15
20
+
3
21
  ## 0.6.14
4
22
 
5
23
  ### Patch Changes
package/dist/core.js CHANGED
@@ -135,6 +135,7 @@ var import_fs_extra = require("fs-extra");
135
135
  var import_crypto = __toESM(require("crypto"));
136
136
  var import_promises = require("fs/promises");
137
137
  var import_path = require("path");
138
+ var import_error_codes = require("@module-federation/error-codes");
138
139
  var import_third_party_dts_extractor = require("@module-federation/third-party-dts-extractor");
139
140
  var import_child_process = require("child_process");
140
141
  var import_util = __toESM(require("util"));
@@ -215,7 +216,9 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
215
216
  try {
216
217
  yield execPromise(cmd);
217
218
  } catch (err) {
218
- throw new Error(`compile TS failed, the original command is '${cmd}'`);
219
+ throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
220
+ cmd
221
+ }));
219
222
  }
220
223
  const mapExposeToEntry = Object.fromEntries(Object.entries(mapComponentsToExpose).map(([exposed, filename]) => {
221
224
  const normalizedFileName = (0, import_path.normalize)(filename);
@@ -4,7 +4,7 @@ import {
4
4
  exposeRpc,
5
5
  getDTSManagerConstructor,
6
6
  isDebugMode
7
- } from "./chunk-FUCERIMX.js";
7
+ } from "./chunk-ZQHSCACR.js";
8
8
  import {
9
9
  __async,
10
10
  __export,
@@ -34,6 +34,7 @@ import { ensureDirSync, writeFileSync, existsSync } from "fs-extra";
34
34
  import crypto from "crypto";
35
35
  import { stat, readdir, writeFile, rm, readFile } from "fs/promises";
36
36
  import { dirname, join, normalize, relative, resolve, sep, extname, isAbsolute } from "path";
37
+ import { getShortErrorMsg, TYPE_001, typeDescMap } from "@module-federation/error-codes";
37
38
  import { ThirdPartyExtractor } from "@module-federation/third-party-dts-extractor";
38
39
  import { exec } from "child_process";
39
40
  import util from "util";
@@ -114,7 +115,9 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
114
115
  try {
115
116
  yield execPromise(cmd);
116
117
  } catch (err) {
117
- throw new Error(`compile TS failed, the original command is '${cmd}'`);
118
+ throw new Error(getShortErrorMsg(TYPE_001, typeDescMap, {
119
+ cmd
120
+ }));
118
121
  }
119
122
  const mapExposeToEntry = Object.fromEntries(Object.entries(mapComponentsToExpose).map(([exposed, filename]) => {
120
123
  const normalizedFileName = normalize(filename);
package/dist/esm/core.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  consumeTypes,
4
4
  generateTypesInChildProcess,
5
5
  rpc_exports
6
- } from "./chunk-3YSCKG75.js";
6
+ } from "./chunk-S4ZU4ZRP.js";
7
7
  import {
8
8
  DTSManager,
9
9
  HOST_API_TYPES_FILE_NAME,
@@ -19,7 +19,7 @@ import {
19
19
  retrieveTypesAssetsInfo,
20
20
  retrieveTypesZipPath,
21
21
  validateOptions
22
- } from "./chunk-FUCERIMX.js";
22
+ } from "./chunk-ZQHSCACR.js";
23
23
  import "./chunk-KCWHOFI6.js";
24
24
  import "./chunk-4CSLH7II.js";
25
25
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rpc_exports
3
- } from "./chunk-3YSCKG75.js";
3
+ } from "./chunk-S4ZU4ZRP.js";
4
4
  import {
5
5
  ModuleFederationDevServer,
6
6
  createKoaServer,
@@ -9,7 +9,7 @@ import {
9
9
  retrieveMfTypesPath,
10
10
  retrieveRemoteConfig,
11
11
  retrieveTypesZipPath
12
- } from "./chunk-FUCERIMX.js";
12
+ } from "./chunk-ZQHSCACR.js";
13
13
  import {
14
14
  fileLog,
15
15
  getIPV4
@@ -2,7 +2,7 @@ import {
2
2
  RpcGMCallTypes,
3
3
  exposeRpc,
4
4
  generateTypes
5
- } from "./chunk-FUCERIMX.js";
5
+ } from "./chunk-ZQHSCACR.js";
6
6
  import "./chunk-KCWHOFI6.js";
7
7
  import {
8
8
  __async,
package/dist/esm/index.js CHANGED
@@ -2,14 +2,14 @@ import {
2
2
  consumeTypes,
3
3
  generateTypesInChildProcess,
4
4
  rpc_exports
5
- } from "./chunk-3YSCKG75.js";
5
+ } from "./chunk-S4ZU4ZRP.js";
6
6
  import {
7
7
  cloneDeepOptions,
8
8
  generateTypes,
9
9
  isTSProject,
10
10
  retrieveTypesAssetsInfo,
11
11
  validateOptions
12
- } from "./chunk-FUCERIMX.js";
12
+ } from "./chunk-ZQHSCACR.js";
13
13
  import {
14
14
  getIPV4,
15
15
  logger
@@ -116,6 +116,7 @@ var import_fs_extra = require("fs-extra");
116
116
  var import_crypto = __toESM(require("crypto"));
117
117
  var import_promises = require("fs/promises");
118
118
  var import_path = require("path");
119
+ var import_error_codes = require("@module-federation/error-codes");
119
120
  var import_third_party_dts_extractor = require("@module-federation/third-party-dts-extractor");
120
121
  var import_child_process = require("child_process");
121
122
  var import_util = __toESM(require("util"));
@@ -196,7 +197,9 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
196
197
  try {
197
198
  yield execPromise(cmd);
198
199
  } catch (err) {
199
- throw new Error(`compile TS failed, the original command is '${cmd}'`);
200
+ throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
201
+ cmd
202
+ }));
200
203
  }
201
204
  const mapExposeToEntry = Object.fromEntries(Object.entries(mapComponentsToExpose).map(([exposed, filename]) => {
202
205
  const normalizedFileName = (0, import_path.normalize)(filename);
@@ -294,6 +294,7 @@ var import_fs_extra = require("fs-extra");
294
294
  var import_crypto = __toESM(require("crypto"));
295
295
  var import_promises = require("fs/promises");
296
296
  var import_path2 = require("path");
297
+ var import_error_codes = require("@module-federation/error-codes");
297
298
  var import_third_party_dts_extractor = require("@module-federation/third-party-dts-extractor");
298
299
  var import_child_process = require("child_process");
299
300
  var import_util = __toESM(require("util"));
@@ -374,7 +375,9 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
374
375
  try {
375
376
  yield execPromise(cmd);
376
377
  } catch (err) {
377
- throw new Error(`compile TS failed, the original command is '${cmd}'`);
378
+ throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
379
+ cmd
380
+ }));
378
381
  }
379
382
  const mapExposeToEntry = Object.fromEntries(Object.entries(mapComponentsToExpose).map(([exposed, filename]) => {
380
383
  const normalizedFileName = (0, import_path2.normalize)(filename);
package/dist/index.js CHANGED
@@ -128,6 +128,7 @@ var import_fs_extra = require("fs-extra");
128
128
  var import_crypto = __toESM(require("crypto"));
129
129
  var import_promises = require("fs/promises");
130
130
  var import_path = require("path");
131
+ var import_error_codes = require("@module-federation/error-codes");
131
132
  var import_third_party_dts_extractor = require("@module-federation/third-party-dts-extractor");
132
133
  var import_child_process = require("child_process");
133
134
  var import_util = __toESM(require("util"));
@@ -208,7 +209,9 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
208
209
  try {
209
210
  yield execPromise(cmd);
210
211
  } catch (err) {
211
- throw new Error(`compile TS failed, the original command is '${cmd}'`);
212
+ throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
213
+ cmd
214
+ }));
212
215
  }
213
216
  const mapExposeToEntry = Object.fromEntries(Object.entries(mapComponentsToExpose).map(([exposed, filename]) => {
214
217
  const normalizedFileName = (0, import_path.normalize)(filename);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -51,6 +51,7 @@
51
51
  "@module-federation/managers": "workspace:*",
52
52
  "lodash.clonedeepwith": "4.5.0",
53
53
  "@module-federation/third-party-dts-extractor": "workspace:*",
54
+ "@module-federation/error-codes": "workspace:*",
54
55
  "chalk": "3.0.0",
55
56
  "fs-extra": "9.1.0",
56
57
  "isomorphic-ws": "5.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -55,9 +55,10 @@
55
55
  "log4js": "6.9.1",
56
56
  "node-schedule": "2.1.1",
57
57
  "ws": "8.18.0",
58
- "@module-federation/sdk": "0.6.14",
59
- "@module-federation/managers": "0.6.14",
60
- "@module-federation/third-party-dts-extractor": "0.6.14"
58
+ "@module-federation/sdk": "0.6.16",
59
+ "@module-federation/managers": "0.6.16",
60
+ "@module-federation/third-party-dts-extractor": "0.6.16",
61
+ "@module-federation/error-codes": "0.6.14"
61
62
  },
62
63
  "devDependencies": {
63
64
  "@types/ws": "8.5.12",
@@ -66,7 +67,7 @@
66
67
  "vue": "^3.4.29",
67
68
  "@vue/tsconfig": "^0.5.1",
68
69
  "vue-tsc": "^2.0.26",
69
- "@module-federation/runtime": "0.6.14"
70
+ "@module-federation/runtime": "0.6.16"
70
71
  },
71
72
  "peerDependencies": {
72
73
  "typescript": "^4.9.0 || ^5.0.0",