Skip to content

Commit 3445db4

Browse files
authored
Fix packages not including all files (#2396)
1 parent d1bd02a commit 3445db4

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

.changeset/good-boxes-complain.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@gitbook/react-contentkit': minor
3+
'@gitbook/react-openapi': minor
4+
'@gitbook/react-math': minor
5+
---
6+
7+
Fix files published in the NPM packages by defining "files" in "package.json"

packages/react-contentkit/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@
2323
"build": "tsc",
2424
"typecheck": "tsc --noEmit",
2525
"dev": "tsc -w"
26-
}
26+
},
27+
"files": [
28+
"dist",
29+
"src",
30+
"README.md",
31+
"CHANGELOG.md"
32+
]
2733
}

packages/react-math/package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,12 @@
2222
"build": "tsc",
2323
"typecheck": "tsc --noEmit",
2424
"dev": "tsc -w"
25-
}
25+
},
26+
"files": [
27+
"dist",
28+
"src",
29+
"css",
30+
"README.md",
31+
"CHANGELOG.md"
32+
]
2633
}

packages/react-openapi/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,11 @@
3030
"typecheck": "tsc --noEmit",
3131
"unit": "bun test",
3232
"dev": "tsc -w"
33-
}
33+
},
34+
"files": [
35+
"dist",
36+
"src",
37+
"README.md",
38+
"CHANGELOG.md"
39+
]
3440
}

0 commit comments

Comments
 (0)