Skip to content

Commit a4afcf9

Browse files
sangun-kangclaude
andcommitted
chore: tighten public API and disable source maps
- exports: block ./types and ./utils subpaths from the "./*" wildcard so internal helpers compiled into dist/js/ are not importable by consumers - tsconfig.build.json: disable sourceMap and declarationMap. Defaults embed original .ts content into .map files, which would ship the source inside the tarball despite files:["dist"] and inflate size without meaningful debuggability gains for a UI library Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 428bf0b commit a4afcf9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
"import": "./dist/js/*/index.js",
4646
"default": "./dist/js/*/index.js"
4747
},
48+
"./types": null,
49+
"./utils": null,
4850
"./css/*.css": "./dist/css/*.css"
4951
},
5052
"files": [

tsconfig.build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"noEmit": false,
55
"outDir": "./dist/js",
66
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true
7+
"declarationMap": false,
8+
"sourceMap": false
99
},
1010
"include": ["src"],
1111
"exclude": [

0 commit comments

Comments
 (0)