Skip to content

Remove source maps to reduce published package size#3

Merged
rogerchappel merged 1 commit into
mainfrom
garden/pathsafe-improve-2
May 22, 2026
Merged

Remove source maps to reduce published package size#3
rogerchappel merged 1 commit into
mainfrom
garden/pathsafe-improve-2

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

What changed

  • Disabled sourceMap in tsconfig to skip generating 9 .js.map files

Why it matters

  • Source maps are unnecessary for published CLI packages — they bloat installs without helping consumers
  • Package reduced from 52.0kB to 24.8kB (28 files vs 37)

Verification

  • npm test: All 37 tests passing
  • npm run smoke: Smoke tests pass
  • npm run release:check: Full gate passed

- Remove sourceMap from tsconfig to skip 9 .js.map files
- Package drops from 52.0kB to 24.8kB (28 files vs 37)
- Source maps are unnecessary for published CLI packages
- All 37 tests pass after rebuild, smoke unchanged
@rogerchappel rogerchappel merged commit 39828b6 into main May 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant