Skip to content

feat(dx): enable source maps, declaration maps, and include source in… - #40

Merged
AbdelrahmanBayoumi merged 1 commit into
mainfrom
feat/source-maps-and-dx
Oct 19, 2026
Merged

AbdelrahmanBayoumi merged 1 commit into
mainfrom
feat/source-maps-and-dx

Conversation

@AbdelrahmanBayoumi

@AbdelrahmanBayoumi AbdelrahmanBayoumi commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

📌 Summary

Enhance Developer Experience (DX) and debugging capabilities by emitting source maps, declaration maps, and publishing the original TypeScript source files.

🚀 Changes

  • TypeScript: Enabled sourceMap and declarationMap in tsconfig.json to link compiled CJS/ESM modules back to original .ts source files.
  • Webpack: Added devtool: 'source-map' for both UMD and ESM bundles for browser and CDN debugging.
  • Packaging: Whitelisted src/ in package.json files array and cleaned up .npmignore.
  • Releases: Included companion .map assets in the GitHub Releases publish workflow.

🧪 Verification

  • npm run lint: Passed (0 errors).
  • npm run build: Successfully emitted .map files across all targets.
  • npm run test: All 81 tests passing (100% coverage).
  • npm pack --dry-run: Verified package payload (clean, ~67 KB tarball, tests excluded).

@AbdelrahmanBayoumi
AbdelrahmanBayoumi merged commit 34927a2 into main Oct 19, 2026
4 checks 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