@module-federation/dts-plugin 0.11.2 → 0.11.3
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/esm/index.js +46 -32
- package/dist/index.js +46 -32
- package/dist/package.json +1 -1
- package/package.json +6 -6
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @module-federation/dts-plugin
|
|
2
2
|
|
|
3
|
+
## 0.11.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e2c0a89: fix(dts-plugin): add recursive:true while generate types hit cache
|
|
8
|
+
- @module-federation/sdk@0.11.3
|
|
9
|
+
- @module-federation/managers@0.11.3
|
|
10
|
+
- @module-federation/third-party-dts-extractor@0.11.3
|
|
11
|
+
- @module-federation/error-codes@0.11.3
|
|
12
|
+
|
|
3
13
|
## 0.11.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -475,48 +475,62 @@ var _GenerateTypesPlugin = class _GenerateTypesPlugin {
|
|
|
475
475
|
const zipContent = fs2.readFileSync(zipTypesPath);
|
|
476
476
|
const zipOutputPath = path5.join(compiler.outputPath, zipPrefix, zipName);
|
|
477
477
|
yield new Promise((resolve2, reject) => {
|
|
478
|
-
compiler.outputFileSystem.mkdir(
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
(
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
478
|
+
compiler.outputFileSystem.mkdir(
|
|
479
|
+
path5.dirname(zipOutputPath),
|
|
480
|
+
{
|
|
481
|
+
recursive: true
|
|
482
|
+
},
|
|
483
|
+
// @ts-ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
|
|
484
|
+
(err) => {
|
|
485
|
+
if (err && !isEEXIST(err)) {
|
|
486
|
+
reject(err);
|
|
487
|
+
} else {
|
|
488
|
+
compiler.outputFileSystem.writeFile(
|
|
489
|
+
zipOutputPath,
|
|
490
|
+
// @ts-ignore
|
|
491
|
+
zipContent,
|
|
492
|
+
(writeErr) => {
|
|
493
|
+
if (writeErr && !isEEXIST(writeErr)) {
|
|
494
|
+
reject(writeErr);
|
|
495
|
+
} else {
|
|
496
|
+
resolve2();
|
|
497
|
+
}
|
|
491
498
|
}
|
|
492
|
-
|
|
493
|
-
|
|
499
|
+
);
|
|
500
|
+
}
|
|
494
501
|
}
|
|
495
|
-
|
|
502
|
+
);
|
|
496
503
|
});
|
|
497
504
|
}
|
|
498
505
|
if (apiTypesPath) {
|
|
499
506
|
const apiContent = fs2.readFileSync(apiTypesPath);
|
|
500
507
|
const apiOutputPath = path5.join(compiler.outputPath, zipPrefix, apiFileName);
|
|
501
508
|
yield new Promise((resolve2, reject) => {
|
|
502
|
-
compiler.outputFileSystem.mkdir(
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
(
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
509
|
+
compiler.outputFileSystem.mkdir(
|
|
510
|
+
path5.dirname(apiOutputPath),
|
|
511
|
+
{
|
|
512
|
+
recursive: true
|
|
513
|
+
},
|
|
514
|
+
// @ts-ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
|
|
515
|
+
(err) => {
|
|
516
|
+
if (err && !isEEXIST(err)) {
|
|
517
|
+
reject(err);
|
|
518
|
+
} else {
|
|
519
|
+
compiler.outputFileSystem.writeFile(
|
|
520
|
+
apiOutputPath,
|
|
521
|
+
// @ts-ignore
|
|
522
|
+
apiContent,
|
|
523
|
+
(writeErr) => {
|
|
524
|
+
if (writeErr && !isEEXIST(writeErr)) {
|
|
525
|
+
reject(writeErr);
|
|
526
|
+
} else {
|
|
527
|
+
resolve2();
|
|
528
|
+
}
|
|
515
529
|
}
|
|
516
|
-
|
|
517
|
-
|
|
530
|
+
);
|
|
531
|
+
}
|
|
518
532
|
}
|
|
519
|
-
|
|
533
|
+
);
|
|
520
534
|
});
|
|
521
535
|
}
|
|
522
536
|
callback();
|
package/dist/index.js
CHANGED
|
@@ -2772,48 +2772,62 @@ var _GenerateTypesPlugin = class _GenerateTypesPlugin {
|
|
|
2772
2772
|
const zipContent = import_fs4.default.readFileSync(zipTypesPath);
|
|
2773
2773
|
const zipOutputPath = import_path10.default.join(compiler.outputPath, zipPrefix, zipName);
|
|
2774
2774
|
yield new Promise((resolve5, reject) => {
|
|
2775
|
-
compiler.outputFileSystem.mkdir(
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
(
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2775
|
+
compiler.outputFileSystem.mkdir(
|
|
2776
|
+
import_path10.default.dirname(zipOutputPath),
|
|
2777
|
+
{
|
|
2778
|
+
recursive: true
|
|
2779
|
+
},
|
|
2780
|
+
// @ts-ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
|
|
2781
|
+
(err) => {
|
|
2782
|
+
if (err && !isEEXIST(err)) {
|
|
2783
|
+
reject(err);
|
|
2784
|
+
} else {
|
|
2785
|
+
compiler.outputFileSystem.writeFile(
|
|
2786
|
+
zipOutputPath,
|
|
2787
|
+
// @ts-ignore
|
|
2788
|
+
zipContent,
|
|
2789
|
+
(writeErr) => {
|
|
2790
|
+
if (writeErr && !isEEXIST(writeErr)) {
|
|
2791
|
+
reject(writeErr);
|
|
2792
|
+
} else {
|
|
2793
|
+
resolve5();
|
|
2794
|
+
}
|
|
2788
2795
|
}
|
|
2789
|
-
|
|
2790
|
-
|
|
2796
|
+
);
|
|
2797
|
+
}
|
|
2791
2798
|
}
|
|
2792
|
-
|
|
2799
|
+
);
|
|
2793
2800
|
});
|
|
2794
2801
|
}
|
|
2795
2802
|
if (apiTypesPath) {
|
|
2796
2803
|
const apiContent = import_fs4.default.readFileSync(apiTypesPath);
|
|
2797
2804
|
const apiOutputPath = import_path10.default.join(compiler.outputPath, zipPrefix, apiFileName);
|
|
2798
2805
|
yield new Promise((resolve5, reject) => {
|
|
2799
|
-
compiler.outputFileSystem.mkdir(
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
(
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2806
|
+
compiler.outputFileSystem.mkdir(
|
|
2807
|
+
import_path10.default.dirname(apiOutputPath),
|
|
2808
|
+
{
|
|
2809
|
+
recursive: true
|
|
2810
|
+
},
|
|
2811
|
+
// @ts-ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
|
|
2812
|
+
(err) => {
|
|
2813
|
+
if (err && !isEEXIST(err)) {
|
|
2814
|
+
reject(err);
|
|
2815
|
+
} else {
|
|
2816
|
+
compiler.outputFileSystem.writeFile(
|
|
2817
|
+
apiOutputPath,
|
|
2818
|
+
// @ts-ignore
|
|
2819
|
+
apiContent,
|
|
2820
|
+
(writeErr) => {
|
|
2821
|
+
if (writeErr && !isEEXIST(writeErr)) {
|
|
2822
|
+
reject(writeErr);
|
|
2823
|
+
} else {
|
|
2824
|
+
resolve5();
|
|
2825
|
+
}
|
|
2812
2826
|
}
|
|
2813
|
-
|
|
2814
|
-
|
|
2827
|
+
);
|
|
2828
|
+
}
|
|
2815
2829
|
}
|
|
2816
|
-
|
|
2830
|
+
);
|
|
2817
2831
|
});
|
|
2818
2832
|
}
|
|
2819
2833
|
callback();
|
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.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"author": "hanric <hanric.zhang@gmail.com>",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -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.11.
|
|
64
|
-
"@module-federation/managers": "0.11.
|
|
65
|
-
"@module-federation/third-party-dts-extractor": "0.11.
|
|
66
|
-
"@module-federation/error-codes": "0.11.
|
|
63
|
+
"@module-federation/sdk": "0.11.3",
|
|
64
|
+
"@module-federation/managers": "0.11.3",
|
|
65
|
+
"@module-federation/third-party-dts-extractor": "0.11.3",
|
|
66
|
+
"@module-federation/error-codes": "0.11.3"
|
|
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": "~6.0.1",
|
|
76
|
-
"@module-federation/runtime": "0.11.
|
|
76
|
+
"@module-federation/runtime": "0.11.3"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"typescript": "^4.9.0 || ^5.0.0",
|