@module-federation/dts-plugin 0.6.6 → 0.6.8

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,24 @@
1
1
  # @module-federation/dts-plugin
2
2
 
3
+ ## 0.6.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [32db0ac]
8
+ - @module-federation/sdk@0.6.8
9
+ - @module-federation/managers@0.6.8
10
+ - @module-federation/third-party-dts-extractor@0.6.8
11
+
12
+ ## 0.6.7
13
+
14
+ ### Patch Changes
15
+
16
+ - 0216364: fix(dts-plugin): ignore .vue ext
17
+ - Updated dependencies [9e32644]
18
+ - @module-federation/sdk@0.6.7
19
+ - @module-federation/managers@0.6.7
20
+ - @module-federation/third-party-dts-extractor@0.6.7
21
+
3
22
  ## 0.6.6
4
23
 
5
24
  ### Patch Changes
package/dist/core.js CHANGED
@@ -157,13 +157,17 @@ function writeTempTsConfig(tsConfig, context, name) {
157
157
  }
158
158
  __name(writeTempTsConfig, "writeTempTsConfig");
159
159
  var removeExt = /* @__PURE__ */ __name((f) => {
160
+ const vueExt = ".vue";
160
161
  const ext = (0, import_path.extname)(f);
162
+ if (ext === vueExt) {
163
+ return f;
164
+ }
161
165
  const regexPattern = new RegExp(`\\${ext}$`);
162
166
  return f.replace(regexPattern, "");
163
167
  }, "removeExt");
164
168
  function getExposeKey(options) {
165
169
  const { filePath, rootDir, outDir, mapExposeToEntry } = options;
166
- const relativeFilePath = removeExt((0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), "")));
170
+ const relativeFilePath = (0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
167
171
  return mapExposeToEntry[relativeFilePath];
168
172
  }
169
173
  __name(getExposeKey, "getExposeKey");
@@ -54,13 +54,17 @@ function writeTempTsConfig(tsConfig, context, name) {
54
54
  }
55
55
  __name(writeTempTsConfig, "writeTempTsConfig");
56
56
  var removeExt = /* @__PURE__ */ __name((f) => {
57
+ const vueExt = ".vue";
57
58
  const ext = extname(f);
59
+ if (ext === vueExt) {
60
+ return f;
61
+ }
58
62
  const regexPattern = new RegExp(`\\${ext}$`);
59
63
  return f.replace(regexPattern, "");
60
64
  }, "removeExt");
61
65
  function getExposeKey(options) {
62
66
  const { filePath, rootDir, outDir, mapExposeToEntry } = options;
63
- const relativeFilePath = removeExt(relative(outDir, filePath.replace(new RegExp(`\\.d.ts$`), "")));
67
+ const relativeFilePath = relative(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
64
68
  return mapExposeToEntry[relativeFilePath];
65
69
  }
66
70
  __name(getExposeKey, "getExposeKey");
@@ -4,7 +4,7 @@ import {
4
4
  exposeRpc,
5
5
  getDTSManagerConstructor,
6
6
  isDebugMode
7
- } from "./chunk-VGFDDQ7M.js";
7
+ } from "./chunk-FRBMF2X6.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-GDK2KZ5S.js";
6
+ } from "./chunk-QTWE2VJ4.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-VGFDDQ7M.js";
22
+ } from "./chunk-FRBMF2X6.js";
23
23
  import "./chunk-MY3H5SQO.js";
24
24
  import "./chunk-4CSLH7II.js";
25
25
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rpc_exports
3
- } from "./chunk-GDK2KZ5S.js";
3
+ } from "./chunk-QTWE2VJ4.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-VGFDDQ7M.js";
12
+ } from "./chunk-FRBMF2X6.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-VGFDDQ7M.js";
5
+ } from "./chunk-FRBMF2X6.js";
6
6
  import "./chunk-MY3H5SQO.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-GDK2KZ5S.js";
5
+ } from "./chunk-QTWE2VJ4.js";
6
6
  import {
7
7
  cloneDeepOptions,
8
8
  generateTypes,
9
9
  isTSProject,
10
10
  retrieveTypesAssetsInfo,
11
11
  validateOptions
12
- } from "./chunk-VGFDDQ7M.js";
12
+ } from "./chunk-FRBMF2X6.js";
13
13
  import {
14
14
  getIPV4
15
15
  } from "./chunk-MY3H5SQO.js";
@@ -138,13 +138,17 @@ function writeTempTsConfig(tsConfig, context, name) {
138
138
  }
139
139
  __name(writeTempTsConfig, "writeTempTsConfig");
140
140
  var removeExt = /* @__PURE__ */ __name((f) => {
141
+ const vueExt = ".vue";
141
142
  const ext = (0, import_path.extname)(f);
143
+ if (ext === vueExt) {
144
+ return f;
145
+ }
142
146
  const regexPattern = new RegExp(`\\${ext}$`);
143
147
  return f.replace(regexPattern, "");
144
148
  }, "removeExt");
145
149
  function getExposeKey(options) {
146
150
  const { filePath, rootDir, outDir, mapExposeToEntry } = options;
147
- const relativeFilePath = removeExt((0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), "")));
151
+ const relativeFilePath = (0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
148
152
  return mapExposeToEntry[relativeFilePath];
149
153
  }
150
154
  __name(getExposeKey, "getExposeKey");
@@ -316,13 +316,17 @@ function writeTempTsConfig(tsConfig, context, name) {
316
316
  }
317
317
  __name(writeTempTsConfig, "writeTempTsConfig");
318
318
  var removeExt = /* @__PURE__ */ __name((f) => {
319
+ const vueExt = ".vue";
319
320
  const ext = (0, import_path2.extname)(f);
321
+ if (ext === vueExt) {
322
+ return f;
323
+ }
320
324
  const regexPattern = new RegExp(`\\${ext}$`);
321
325
  return f.replace(regexPattern, "");
322
326
  }, "removeExt");
323
327
  function getExposeKey(options) {
324
328
  const { filePath, rootDir, outDir, mapExposeToEntry } = options;
325
- const relativeFilePath = removeExt((0, import_path2.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), "")));
329
+ const relativeFilePath = (0, import_path2.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
326
330
  return mapExposeToEntry[relativeFilePath];
327
331
  }
328
332
  __name(getExposeKey, "getExposeKey");
package/dist/index.js CHANGED
@@ -151,13 +151,17 @@ function writeTempTsConfig(tsConfig, context, name) {
151
151
  }
152
152
  __name(writeTempTsConfig, "writeTempTsConfig");
153
153
  var removeExt = /* @__PURE__ */ __name((f) => {
154
+ const vueExt = ".vue";
154
155
  const ext = (0, import_path.extname)(f);
156
+ if (ext === vueExt) {
157
+ return f;
158
+ }
155
159
  const regexPattern = new RegExp(`\\${ext}$`);
156
160
  return f.replace(regexPattern, "");
157
161
  }, "removeExt");
158
162
  function getExposeKey(options) {
159
163
  const { filePath, rootDir, outDir, mapExposeToEntry } = options;
160
- const relativeFilePath = removeExt((0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), "")));
164
+ const relativeFilePath = (0, import_path.relative)(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
161
165
  return mapExposeToEntry[relativeFilePath];
162
166
  }
163
167
  __name(getExposeKey, "getExposeKey");
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/dts-plugin",
3
- "version": "0.6.6",
3
+ "version": "0.6.8",
4
4
  "author": "hanric <hanric.zhang@gmail.com>",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -55,9 +55,9 @@
55
55
  "log4js": "6.9.1",
56
56
  "node-schedule": "2.1.1",
57
57
  "ws": "8.17.1",
58
- "@module-federation/sdk": "0.6.6",
59
- "@module-federation/managers": "0.6.6",
60
- "@module-federation/third-party-dts-extractor": "0.6.6"
58
+ "@module-federation/sdk": "0.6.8",
59
+ "@module-federation/managers": "0.6.8",
60
+ "@module-federation/third-party-dts-extractor": "0.6.8"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/ws": "8.5.10",
@@ -66,7 +66,7 @@
66
66
  "vue": "^3.4.29",
67
67
  "@vue/tsconfig": "^0.5.1",
68
68
  "vue-tsc": "^2.0.26",
69
- "@module-federation/runtime": "0.6.6"
69
+ "@module-federation/runtime": "0.6.8"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "typescript": "^4.9.0 || ^5.0.0",