mirror of
https://github.com/Comfy-Org/comfy-typescript-sdk.git
synced 2026-11-04 23:47:27 +00:00
[PR #28] [MERGED] chore: ship source maps and declare sideEffects for the published package #36
Labels
No labels
audit:ai-readiness
audit:community
audit:github
audit:health-scoring
audit:policy
audit:release
audit:supply-chain
bug
cursor-review-pin
effort:medium
effort:small
effort:trivial
priority:nice-to-have
priority:recommended
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-typescript-sdk#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-typescript-sdk/pull/28
Author: @robinjhuang
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @wei-hai
Base:
main← Head:chore/publish-build-output📝 Commits (1)
0ad9d1achore: ship source maps and declare sideEffects for the published package📊 Changes
2 files changed (+7 additions, -2 deletions)
View changed files
📝
package.json(+4 -1)📝
tsconfig.json(+3 -1)📄 Description
Two gaps in what consumers get from the tarball. There were no source maps, so stepping into the SDK from a debugger landed in compiled output with no way back to the TypeScript, and "go to definition" stopped at the
.d.ts; emittingsourceMap/declarationMapand shippingsrc/(tests excluded via a negatedfilespattern) fixes both. And there was nosideEffectsflag, so bundlers had to assume every module might do work on import and couldn't tree-shake unused ones.I verified
sideEffects: falseis actually accurate — no module has a top-level side-effecting statement; the module-level values are pure constructions (Set, Symbol, zod schemas). Also verified everysourcesentry in the packed tarball resolves to a file present in it. Tarball goes 44K → 76K.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.