Skip to content

Commit cb7b226

Browse files
smoghe-bwclaude
andcommitted
fix: add types field to package.json for TypeScript consumers
Without an explicit types entry, CRA's compiler couldn't resolve declaration files from the dist/ directory via the npm link symlink. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent be447ae commit cb7b226

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "0.0.1",
44
"description": "SDK for BandwidthRTC Node Applications",
55
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
67
"scripts": {
78
"build": "rm -rf ./dist/* && prettier --check . && tsc && webpack --config webpack.prod.js",
89
"build:dev": "rm -rf ./dist/* && prettier --check . && tsc && webpack --config webpack.dev.js",

0 commit comments

Comments
 (0)