@module-federation/dts-plugin 0.10.0 → 0.11.0

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,16 @@
1
1
  # @module-federation/dts-plugin
2
2
 
3
+ ## 0.11.0
4
+
5
+ ### Patch Changes
6
+
7
+ - eecee74: use `cwd` to create Module Federation tsconfig
8
+ - Updated dependencies [fce107e]
9
+ - @module-federation/sdk@0.11.0
10
+ - @module-federation/managers@0.11.0
11
+ - @module-federation/third-party-dts-extractor@0.11.0
12
+ - @module-federation/error-codes@0.11.0
13
+
3
14
  ## 0.10.0
4
15
 
5
16
  ### Patch Changes
package/dist/core.js CHANGED
@@ -147,12 +147,12 @@ var DEFINITION_FILE_EXTENSION = ".d.ts";
147
147
  var retrieveMfTypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "")), "retrieveMfTypesPath");
148
148
  var retrieveOriginalOutDir = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "").replace(remoteOptions.typesFolder, "")), "retrieveOriginalOutDir");
149
149
  var retrieveMfAPITypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.join)(retrieveOriginalOutDir(tsConfig, remoteOptions), `${remoteOptions.typesFolder}.d.ts`), "retrieveMfAPITypesPath");
150
- function writeTempTsConfig(tsConfig, context, name) {
150
+ function writeTempTsConfig(tsConfig, context, name, cwd) {
151
151
  const createHash = /* @__PURE__ */ __name((contents) => {
152
152
  return import_crypto.default.createHash("md5").update(contents).digest("hex");
153
153
  }, "createHash");
154
154
  const hash = createHash(`${JSON.stringify(tsConfig)}${name}${Date.now()}`);
155
- const tempTsConfigJsonPath = (0, import_path.resolve)(context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
155
+ const tempTsConfigJsonPath = (0, import_path.resolve)(cwd != null ? cwd : context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
156
156
  (0, import_fs_extra.ensureDirSync)((0, import_path.dirname)(tempTsConfigJsonPath));
157
157
  (0, import_fs_extra.writeFileSync)(tempTsConfigJsonPath, JSON.stringify(tsConfig, null, 2));
158
158
  return tempTsConfigJsonPath;
@@ -205,12 +205,12 @@ export { default } from './${relativePathToOutput}';`);
205
205
  }
206
206
  }), "processTypesFile");
207
207
  var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteOptions) => __async(void 0, null, function* () {
208
- var _a3, _b;
208
+ var _a3, _b, _c, _d;
209
209
  if (!Object.keys(mapComponentsToExpose).length) {
210
210
  return;
211
211
  }
212
212
  const { compilerOptions } = tsConfig;
213
- const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf");
213
+ const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf", typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0);
214
214
  try {
215
215
  const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);
216
216
  const thirdPartyExtractor = new import_third_party_dts_extractor.ThirdPartyExtractor((0, import_path.resolve)(mfTypePath, "node_modules"), remoteOptions.context);
@@ -218,7 +218,7 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
218
218
  const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
219
219
  try {
220
220
  yield execPromise(cmd, {
221
- cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0
221
+ cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_d = (_c = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _c.cwd) != null ? _d : void 0 : void 0
222
222
  });
223
223
  } catch (err) {
224
224
  throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
@@ -44,12 +44,12 @@ var DEFINITION_FILE_EXTENSION = ".d.ts";
44
44
  var retrieveMfTypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => normalize(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "")), "retrieveMfTypesPath");
45
45
  var retrieveOriginalOutDir = /* @__PURE__ */ __name((tsConfig, remoteOptions) => normalize(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "").replace(remoteOptions.typesFolder, "")), "retrieveOriginalOutDir");
46
46
  var retrieveMfAPITypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => join(retrieveOriginalOutDir(tsConfig, remoteOptions), `${remoteOptions.typesFolder}.d.ts`), "retrieveMfAPITypesPath");
47
- function writeTempTsConfig(tsConfig, context, name) {
47
+ function writeTempTsConfig(tsConfig, context, name, cwd) {
48
48
  const createHash = /* @__PURE__ */ __name((contents) => {
49
49
  return crypto.createHash("md5").update(contents).digest("hex");
50
50
  }, "createHash");
51
51
  const hash = createHash(`${JSON.stringify(tsConfig)}${name}${Date.now()}`);
52
- const tempTsConfigJsonPath = resolve(context, "node_modules", TEMP_DIR, `tsconfig.${hash}.json`);
52
+ const tempTsConfigJsonPath = resolve(cwd != null ? cwd : context, "node_modules", TEMP_DIR, `tsconfig.${hash}.json`);
53
53
  ensureDirSync(dirname(tempTsConfigJsonPath));
54
54
  writeFileSync(tempTsConfigJsonPath, JSON.stringify(tsConfig, null, 2));
55
55
  return tempTsConfigJsonPath;
@@ -102,12 +102,12 @@ export { default } from './${relativePathToOutput}';`);
102
102
  }
103
103
  }), "processTypesFile");
104
104
  var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteOptions) => __async(void 0, null, function* () {
105
- var _a2, _b;
105
+ var _a2, _b, _c, _d;
106
106
  if (!Object.keys(mapComponentsToExpose).length) {
107
107
  return;
108
108
  }
109
109
  const { compilerOptions } = tsConfig;
110
- const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf");
110
+ const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf", typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a2 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a2.cwd) != null ? _b : void 0 : void 0);
111
111
  try {
112
112
  const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);
113
113
  const thirdPartyExtractor = new ThirdPartyExtractor(resolve(mfTypePath, "node_modules"), remoteOptions.context);
@@ -115,7 +115,7 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
115
115
  const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
116
116
  try {
117
117
  yield execPromise(cmd, {
118
- cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a2 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a2.cwd) != null ? _b : void 0 : void 0
118
+ cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_d = (_c = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _c.cwd) != null ? _d : void 0 : void 0
119
119
  });
120
120
  } catch (err) {
121
121
  throw new Error(getShortErrorMsg(TYPE_001, typeDescMap, {
@@ -4,7 +4,7 @@ import {
4
4
  exposeRpc,
5
5
  getDTSManagerConstructor,
6
6
  isDebugMode
7
- } from "./chunk-TKO3UU5B.js";
7
+ } from "./chunk-4XJKD7QF.js";
8
8
  import {
9
9
  __async,
10
10
  __export,
package/dist/esm/core.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  consumeTypes,
4
4
  generateTypesInChildProcess,
5
5
  rpc_exports
6
- } from "./chunk-IPO3NMOQ.js";
6
+ } from "./chunk-UUXLCZNG.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-TKO3UU5B.js";
22
+ } from "./chunk-4XJKD7QF.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-IPO3NMOQ.js";
3
+ } from "./chunk-UUXLCZNG.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-TKO3UU5B.js";
12
+ } from "./chunk-4XJKD7QF.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-TKO3UU5B.js";
5
+ } from "./chunk-4XJKD7QF.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-IPO3NMOQ.js";
5
+ } from "./chunk-UUXLCZNG.js";
6
6
  import {
7
7
  cloneDeepOptions,
8
8
  generateTypes,
9
9
  isTSProject,
10
10
  retrieveTypesAssetsInfo,
11
11
  validateOptions
12
- } from "./chunk-TKO3UU5B.js";
12
+ } from "./chunk-4XJKD7QF.js";
13
13
  import {
14
14
  getIPV4,
15
15
  logger
@@ -128,12 +128,12 @@ var DEFINITION_FILE_EXTENSION = ".d.ts";
128
128
  var retrieveMfTypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "")), "retrieveMfTypesPath");
129
129
  var retrieveOriginalOutDir = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "").replace(remoteOptions.typesFolder, "")), "retrieveOriginalOutDir");
130
130
  var retrieveMfAPITypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.join)(retrieveOriginalOutDir(tsConfig, remoteOptions), `${remoteOptions.typesFolder}.d.ts`), "retrieveMfAPITypesPath");
131
- function writeTempTsConfig(tsConfig, context, name) {
131
+ function writeTempTsConfig(tsConfig, context, name, cwd) {
132
132
  const createHash = /* @__PURE__ */ __name((contents) => {
133
133
  return import_crypto.default.createHash("md5").update(contents).digest("hex");
134
134
  }, "createHash");
135
135
  const hash = createHash(`${JSON.stringify(tsConfig)}${name}${Date.now()}`);
136
- const tempTsConfigJsonPath = (0, import_path.resolve)(context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
136
+ const tempTsConfigJsonPath = (0, import_path.resolve)(cwd != null ? cwd : context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
137
137
  (0, import_fs_extra.ensureDirSync)((0, import_path.dirname)(tempTsConfigJsonPath));
138
138
  (0, import_fs_extra.writeFileSync)(tempTsConfigJsonPath, JSON.stringify(tsConfig, null, 2));
139
139
  return tempTsConfigJsonPath;
@@ -186,12 +186,12 @@ export { default } from './${relativePathToOutput}';`);
186
186
  }
187
187
  }), "processTypesFile");
188
188
  var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteOptions) => __async(void 0, null, function* () {
189
- var _a3, _b;
189
+ var _a3, _b, _c, _d;
190
190
  if (!Object.keys(mapComponentsToExpose).length) {
191
191
  return;
192
192
  }
193
193
  const { compilerOptions } = tsConfig;
194
- const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf");
194
+ const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf", typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0);
195
195
  try {
196
196
  const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);
197
197
  const thirdPartyExtractor = new import_third_party_dts_extractor.ThirdPartyExtractor((0, import_path.resolve)(mfTypePath, "node_modules"), remoteOptions.context);
@@ -199,7 +199,7 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
199
199
  const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
200
200
  try {
201
201
  yield execPromise(cmd, {
202
- cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0
202
+ cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_d = (_c = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _c.cwd) != null ? _d : void 0 : void 0
203
203
  });
204
204
  } catch (err) {
205
205
  throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
@@ -313,12 +313,12 @@ var DEFINITION_FILE_EXTENSION = ".d.ts";
313
313
  var retrieveMfTypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path2.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "")), "retrieveMfTypesPath");
314
314
  var retrieveOriginalOutDir = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path2.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "").replace(remoteOptions.typesFolder, "")), "retrieveOriginalOutDir");
315
315
  var retrieveMfAPITypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path2.join)(retrieveOriginalOutDir(tsConfig, remoteOptions), `${remoteOptions.typesFolder}.d.ts`), "retrieveMfAPITypesPath");
316
- function writeTempTsConfig(tsConfig, context, name) {
316
+ function writeTempTsConfig(tsConfig, context, name, cwd) {
317
317
  const createHash = /* @__PURE__ */ __name((contents) => {
318
318
  return import_crypto.default.createHash("md5").update(contents).digest("hex");
319
319
  }, "createHash");
320
320
  const hash = createHash(`${JSON.stringify(tsConfig)}${name}${Date.now()}`);
321
- const tempTsConfigJsonPath = (0, import_path2.resolve)(context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
321
+ const tempTsConfigJsonPath = (0, import_path2.resolve)(cwd != null ? cwd : context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
322
322
  (0, import_fs_extra.ensureDirSync)((0, import_path2.dirname)(tempTsConfigJsonPath));
323
323
  (0, import_fs_extra.writeFileSync)(tempTsConfigJsonPath, JSON.stringify(tsConfig, null, 2));
324
324
  return tempTsConfigJsonPath;
@@ -371,12 +371,12 @@ export { default } from './${relativePathToOutput}';`);
371
371
  }
372
372
  }), "processTypesFile");
373
373
  var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteOptions) => __async(void 0, null, function* () {
374
- var _a2, _b;
374
+ var _a2, _b, _c, _d;
375
375
  if (!Object.keys(mapComponentsToExpose).length) {
376
376
  return;
377
377
  }
378
378
  const { compilerOptions } = tsConfig;
379
- const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf");
379
+ const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf", typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a2 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a2.cwd) != null ? _b : void 0 : void 0);
380
380
  try {
381
381
  const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);
382
382
  const thirdPartyExtractor = new import_third_party_dts_extractor.ThirdPartyExtractor((0, import_path2.resolve)(mfTypePath, "node_modules"), remoteOptions.context);
@@ -384,7 +384,7 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
384
384
  const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
385
385
  try {
386
386
  yield execPromise(cmd, {
387
- cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a2 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a2.cwd) != null ? _b : void 0 : void 0
387
+ cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_d = (_c = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _c.cwd) != null ? _d : void 0 : void 0
388
388
  });
389
389
  } catch (err) {
390
390
  throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
package/dist/index.js CHANGED
@@ -141,12 +141,12 @@ var DEFINITION_FILE_EXTENSION = ".d.ts";
141
141
  var retrieveMfTypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "")), "retrieveMfTypesPath");
142
142
  var retrieveOriginalOutDir = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.normalize)(tsConfig.compilerOptions.outDir.replace(remoteOptions.compiledTypesFolder, "").replace(remoteOptions.typesFolder, "")), "retrieveOriginalOutDir");
143
143
  var retrieveMfAPITypesPath = /* @__PURE__ */ __name((tsConfig, remoteOptions) => (0, import_path.join)(retrieveOriginalOutDir(tsConfig, remoteOptions), `${remoteOptions.typesFolder}.d.ts`), "retrieveMfAPITypesPath");
144
- function writeTempTsConfig(tsConfig, context, name) {
144
+ function writeTempTsConfig(tsConfig, context, name, cwd) {
145
145
  const createHash = /* @__PURE__ */ __name((contents) => {
146
146
  return import_crypto.default.createHash("md5").update(contents).digest("hex");
147
147
  }, "createHash");
148
148
  const hash = createHash(`${JSON.stringify(tsConfig)}${name}${Date.now()}`);
149
- const tempTsConfigJsonPath = (0, import_path.resolve)(context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
149
+ const tempTsConfigJsonPath = (0, import_path.resolve)(cwd != null ? cwd : context, "node_modules", import_sdk.TEMP_DIR, `tsconfig.${hash}.json`);
150
150
  (0, import_fs_extra.ensureDirSync)((0, import_path.dirname)(tempTsConfigJsonPath));
151
151
  (0, import_fs_extra.writeFileSync)(tempTsConfigJsonPath, JSON.stringify(tsConfig, null, 2));
152
152
  return tempTsConfigJsonPath;
@@ -199,12 +199,12 @@ export { default } from './${relativePathToOutput}';`);
199
199
  }
200
200
  }), "processTypesFile");
201
201
  var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteOptions) => __async(void 0, null, function* () {
202
- var _a3, _b;
202
+ var _a3, _b, _c, _d;
203
203
  if (!Object.keys(mapComponentsToExpose).length) {
204
204
  return;
205
205
  }
206
206
  const { compilerOptions } = tsConfig;
207
- const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf");
207
+ const tempTsConfigJsonPath = writeTempTsConfig(tsConfig, remoteOptions.context, remoteOptions.moduleFederationConfig.name || "mf", typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0);
208
208
  try {
209
209
  const mfTypePath = retrieveMfTypesPath(tsConfig, remoteOptions);
210
210
  const thirdPartyExtractor = new import_third_party_dts_extractor.ThirdPartyExtractor((0, import_path.resolve)(mfTypePath, "node_modules"), remoteOptions.context);
@@ -212,7 +212,7 @@ var compileTs = /* @__PURE__ */ __name((mapComponentsToExpose, tsConfig, remoteO
212
212
  const cmd = `npx ${remoteOptions.compilerInstance} --project ${tempTsConfigJsonPath}`;
213
213
  try {
214
214
  yield execPromise(cmd, {
215
- cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_b = (_a3 = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _a3.cwd) != null ? _b : void 0 : void 0
215
+ cwd: typeof remoteOptions.moduleFederationConfig.dts !== "boolean" ? (_d = (_c = remoteOptions.moduleFederationConfig.dts) == null ? void 0 : _c.cwd) != null ? _d : void 0 : void 0
216
216
  });
217
217
  } catch (err) {
218
218
  throw new Error((0, import_error_codes.getShortErrorMsg)(import_error_codes.TYPE_001, import_error_codes.typeDescMap, {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "adm-zip": "^0.5.10",
52
52
  "ansi-colors": "^4.1.3",
53
- "axios": "^1.7.4",
53
+ "axios": "^1.8.2",
54
54
  "rambda": "^9.1.0",
55
55
  "@module-federation/sdk": "workspace:*",
56
56
  "@module-federation/managers": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "adm-zip": "^0.5.10",
52
52
  "ansi-colors": "^4.1.3",
53
- "axios": "^1.7.4",
53
+ "axios": "^1.8.2",
54
54
  "rambda": "^9.1.0",
55
55
  "lodash.clonedeepwith": "4.5.0",
56
56
  "chalk": "3.0.0",
@@ -60,10 +60,10 @@
60
60
  "log4js": "6.9.1",
61
61
  "node-schedule": "2.1.1",
62
62
  "ws": "8.18.0",
63
- "@module-federation/sdk": "0.10.0",
64
- "@module-federation/managers": "0.10.0",
65
- "@module-federation/third-party-dts-extractor": "0.10.0",
66
- "@module-federation/error-codes": "0.10.0"
63
+ "@module-federation/sdk": "0.11.0",
64
+ "@module-federation/managers": "0.11.0",
65
+ "@module-federation/third-party-dts-extractor": "0.11.0",
66
+ "@module-federation/error-codes": "0.11.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/ws": "8.5.12",
@@ -73,7 +73,7 @@
73
73
  "@vue/tsconfig": "^0.5.1",
74
74
  "vue-tsc": "^2.0.26",
75
75
  "rimraf": "~3.0.2",
76
- "@module-federation/runtime": "0.10.0"
76
+ "@module-federation/runtime": "0.11.0"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "typescript": "^4.9.0 || ^5.0.0",