File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
packages/dts-plugin/src/plugins Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @module-federation/dts-plugin ' : patch
3
+ ---
4
+
5
+ fix(dts-plugin): add recursive: true while generate types hit cache
Original file line number Diff line number Diff line change @@ -207,6 +207,10 @@ export class GenerateTypesPlugin implements WebpackPluginInstance {
207
207
await new Promise < void > ( ( resolve , reject ) => {
208
208
compiler . outputFileSystem . mkdir (
209
209
path . dirname ( zipOutputPath ) ,
210
+ {
211
+ recursive : true ,
212
+ } ,
213
+ // @ts -ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
210
214
( err ) => {
211
215
if ( err && ! isEEXIST ( err ) ) {
212
216
reject ( err ) ;
@@ -239,6 +243,10 @@ export class GenerateTypesPlugin implements WebpackPluginInstance {
239
243
await new Promise < void > ( ( resolve , reject ) => {
240
244
compiler . outputFileSystem . mkdir (
241
245
path . dirname ( apiOutputPath ) ,
246
+ {
247
+ recursive : true ,
248
+ } ,
249
+ // @ts -ignore type fixed in https://github.com/webpack/webpack/releases/tag/v5.91.0
242
250
( err ) => {
243
251
if ( err && ! isEEXIST ( err ) ) {
244
252
reject ( err ) ;
You can’t perform that action at this time.
0 commit comments