fix(mcp-server): exclude test artifacts and build metadata from npm package#1345
Merged
Conversation
…ackage (#1342) Add negation patterns to the files field in package.json to exclude spec files, tsbuildinfo, and source map files from the published npm tarball. Reduces packaged files from 1081 to 691.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
JeremyDev87
commented
Apr 4, 2026
JeremyDev87
left a comment
Owner
Author
There was a problem hiding this comment.
✅ Review complete — all CI checks pass
Changes:
- Added negation patterns to
filesarray:!dist/**/*.spec.{js,d.ts},!dist/**/*.tsbuildinfo,!dist/**/*.{js,d.ts}.map - Package size reduced: 1081 → 691 files
Clean whitelist-with-exclusions approach. LGTM.
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
apps/mcp-server/package.json의files필드에 negation 패턴 추가*.spec.js,*.spec.d.ts), 빌드 메타데이터(*.tsbuildinfo), 소스맵(*.js.map,*.d.ts.map)을 npm 패키지에서 제외Closes #1342
Test plan
npm pack --dry-run— spec/tsbuildinfo/map 파일 0개 확인yarn workspace codingbuddy build— 빌드 정상yarn workspace codingbuddy test— 238 파일 5959 테스트 통과