@module-federation/dts-plugin 0.6.6 → 0.6.7
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 +10 -0
- package/dist/core.js +5 -1
- package/dist/esm/{chunk-VGFDDQ7M.js → chunk-FRBMF2X6.js} +5 -1
- package/dist/esm/{chunk-GDK2KZ5S.js → chunk-QTWE2VJ4.js} +1 -1
- package/dist/esm/core.js +2 -2
- package/dist/esm/fork-dev-worker.js +2 -2
- package/dist/esm/fork-generate-dts.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/fork-dev-worker.js +5 -1
- package/dist/fork-generate-dts.js +5 -1
- package/dist/index.js +5 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @module-federation/dts-plugin
|
|
2
2
|
|
|
3
|
+
## 0.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0216364: fix(dts-plugin): ignore .vue ext
|
|
8
|
+
- Updated dependencies [9e32644]
|
|
9
|
+
- @module-federation/sdk@0.6.7
|
|
10
|
+
- @module-federation/managers@0.6.7
|
|
11
|
+
- @module-federation/third-party-dts-extractor@0.6.7
|
|
12
|
+
|
|
3
13
|
## 0.6.6
|
|
4
14
|
|
|
5
15
|
### 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 =
|
|
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 =
|
|
67
|
+
const relativeFilePath = relative(outDir, filePath.replace(new RegExp(`\\.d.ts$`), ""));
|
|
64
68
|
return mapExposeToEntry[relativeFilePath];
|
|
65
69
|
}
|
|
66
70
|
__name(getExposeKey, "getExposeKey");
|
package/dist/esm/core.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
consumeTypes,
|
|
4
4
|
generateTypesInChildProcess,
|
|
5
5
|
rpc_exports
|
|
6
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
} from "./chunk-FRBMF2X6.js";
|
|
13
13
|
import {
|
|
14
14
|
fileLog,
|
|
15
15
|
getIPV4
|
package/dist/esm/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
consumeTypes,
|
|
3
3
|
generateTypesInChildProcess,
|
|
4
4
|
rpc_exports
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
12
|
+
} from "./chunk-FRBMF2X6.js";
|
|
13
13
|
import {
|
|
14
14
|
getIPV4
|
|
15
15
|
} from "./chunk-MY3H5SQO.js";
|
package/dist/fork-dev-worker.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/dts-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
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.
|
|
59
|
-
"@module-federation/managers": "0.6.
|
|
60
|
-
"@module-federation/third-party-dts-extractor": "0.6.
|
|
58
|
+
"@module-federation/sdk": "0.6.7",
|
|
59
|
+
"@module-federation/managers": "0.6.7",
|
|
60
|
+
"@module-federation/third-party-dts-extractor": "0.6.7"
|
|
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.
|
|
69
|
+
"@module-federation/runtime": "0.6.7"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"typescript": "^4.9.0 || ^5.0.0",
|