Skip to content

Commit d08160f

Browse files
committed
chore(sdk/js): restrict published package to dist/ only
add a \"files\" allowlist so npm pack ships only README, LICENSE, package.json, and dist/. drops .npmignore (replaced by the allowlist). before: 60 files / 230 KB unpacked / 57 KB tarball, including bun.lock, src/*.ts, test-outputs.js, tsconfig*.json, and .claude/settings.local.json. after: 43 files / 133 KB unpacked / 30 KB tarball — ~47% smaller, no extraneous files leaking out of the repo.
1 parent fc48a01 commit d08160f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sdk/js/.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

sdk/js/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@
7575
"engines": {
7676
"node": ">=18.0.0"
7777
},
78+
"files": [
79+
"dist"
80+
],
7881
"scripts": {
7982
"build": "npm run build:node && npm run build:browser",
8083
"build:node": "tsc -p tsconfig.node.json",

0 commit comments

Comments
 (0)