-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no collect node internal utils (#2787)
- Loading branch information
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@module-federation/third-party-dts-extractor': patch | ||
'@module-federation/dts-plugin': patch | ||
--- | ||
|
||
fix: do not collect node internal utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
import { rmSync } from 'fs'; | ||
import path from 'path'; | ||
import { rmSync } from 'fs'; | ||
|
||
const TEMP_TS_CONFIG_DIR = path.resolve(__dirname, 'node_modules/.federation'); | ||
const TEMP_TS_CONFIG_DIR = path.resolve( | ||
__dirname, | ||
'../node_modules/.federation', | ||
); | ||
try { | ||
rmSync(TEMP_TS_CONFIG_DIR, { recursive: true }); | ||
} catch (err) { | ||
// noop | ||
} | ||
const TEMP_DIST = path.resolve(__dirname, '../dist-test'); | ||
try { | ||
rmSync(TEMP_DIST, { recursive: true }); | ||
} catch (err) { | ||
// noop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters