Skip to content

Commit b1fc7f6

Browse files
committed
fix(package): exclude unnecessary files from npm artifact
Previously, the npm package included source files, tests, and configuration files because the `files` whitelist was missing. This resulted in a bloated package size and unnecessary file distribution. This change adds a `files` entry to `package.jsonfix(package): exclude unnecessary files from npm artifact Previously, the npm package included source files, tests, and configuration files because the `files` whitelist was missing. This resulted in a bloated package size and unnecessary file distribution. This change adds a `files` entry to `package.json
1 parent 139a190 commit b1fc7f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"bin": {
99
"mcp-openapi-schema-explorer": "dist/src/index.js"
1010
},
11+
"files": [
12+
"dist",
13+
"CHANGELOG.md"
14+
],
1115
"scripts": {
1216
"build": "rm -rf dist && mkdir -p dist && npx tsc && chmod +x dist/src/index.js",
1317
"test": "jest",

0 commit comments

Comments
 (0)