Skip to content

fix: ship src for source maps + 0.1.1 release prep - #25

Merged
llbbl merged 2 commits into
mainfrom
fix/ship-src-for-source-maps
Jul 28, 2026
Merged

fix: ship src for source maps + 0.1.1 release prep#25
llbbl merged 2 commits into
mainfrom
fix/ship-src-for-source-maps

Conversation

@llbbl

@llbbl llbbl commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Source maps were always shipped in the published tarball, but src/ was not included in the files allowlist, so every .map file's sources entries pointed at TypeScript files that didn't exist in the installed package. declarationMap go-to-definition was effectively dead for all 0.1.0 consumers. Adding src to the allowlist fixes this; the tarball grows from roughly 60kB to 84kB.
  • Release prep for 0.1.1: version bump and generated CHANGELOG entry.

Changes

Packaging Fix

  • package.json: Add src to the files allowlist so shipped source maps resolve to real TypeScript sources instead of dangling.

Release Prep

  • package.json: Bump version 0.1.0 → 0.1.1.
  • CHANGELOG.md: Add the ## [0.1.1] - 2026-07-28 entry generated by git-cliff.

Notes

  • Merging this PR is followed by pushing tag v0.1.1, which triggers the release workflow. This will be the first publish to go through OIDC trusted publishing.

Closes #22

Test plan

  • Confirm tarball contents include src/**/*.ts via npm pack --dry-run
  • Push tag v0.1.1 after merge and confirm release workflow succeeds through OIDC trusted publishing
  • Verify go-to-definition resolves to original TypeScript source in a consumer project

llbbl added 2 commits July 28, 2026 09:28
Published source maps (dist/*.js.map, dist/*.d.ts.map) have always
pointed their `sources` entries at ../src/*.ts, but src/ was never
part of the package's files allowlist. Every source map in the
published tarball dangled, so declarationMap go-to-definition and
debugger step-into were both dead for consumers of 0.1.0.

Add "src" to package.json's files array so the referenced sources
ship alongside the maps. Verified: 7 source files now included in
the tarball, which grows from 60kB to 84kB. All gates pass,
including attw and publint.

Closes #22
Bumps package.json version to 0.1.1 and adds the generated CHANGELOG
entry for this release. The release workflow verifies that the pushed
tag, package.json version, and a non-empty CHANGELOG section all agree
before publishing.
@llbbl
llbbl merged commit 149fb4b into main Jul 28, 2026
4 checks passed
@llbbl
llbbl deleted the fix/ship-src-for-source-maps branch July 28, 2026 14:31
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.

Ship src/ or drop source maps from the published tarball

1 participant