Skip to content

Commit 08c05a5

Browse files
committed
chore: add .gitattributes to normalize line endings in dist/
ncc 0.38's output contains 451 source-embedded CR bytes inside string literals (aws-sdk transitive deps). When dist/ is committed through git's default line-ending normalization, those CRs are stripped into the blob, but every subsequent 'npm run package' reproduces them — creating a permanent, symmetric 451/451 diff that the verify-dist CI gate correctly flagged as drift. Mark the whole dist/ tree as binary via .gitattributes so git never converts line endings in that path. What ncc writes is what git stores; CI's rebuild produces byte-identical output. Signed-off-by: yuriyryabikov <22548029+kurok@users.noreply.github.com>
1 parent 24d51e3 commit 08c05a5

2 files changed

Lines changed: 457 additions & 451 deletions

File tree

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ncc-bundled output contains source-embedded CR bytes inside string
2+
# literals (aws-sdk deps, etc.). Treat the whole dist/ tree as binary
3+
# so git's autocrlf doesn't strip them on commit, which otherwise
4+
# produces a permanent mismatch between the committed blob and a
5+
# fresh `npm run package` rebuild.
6+
dist/** -text

0 commit comments

Comments
 (0)