Skip to content

Commit 60e4df1

Browse files
fix: set files on runtime-tools pkg (#3889)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 4f99b00 commit 60e4df1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changeset/tidy-foxes-fix.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@module-federation/runtime-tools": patch
3+
---
4+
5+
fix: add files property to package.json to exclude build config from npm publish
6+
7+
Fixes #3873 where .swcrc file was being published to npm causing Jest test failures.
8+
Only dist/ and README.md will now be included in the published package.

packages/runtime-tools/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"url": "https://github.com/module-federation/core/",
1313
"directory": "packages/runtime-tools"
1414
},
15+
"files": [
16+
"dist/",
17+
"README.md"
18+
],
1519
"publishConfig": {
1620
"access": "public"
1721
},

0 commit comments

Comments
 (0)