Skip to content

Commit 920a4a1

Browse files
authored
fix: include source files in published package for IDE navigation (#74)
Declaration maps reference `../../src/` but source files were excluded from the npm package. Adding `"./src/"` to the files field enables IDE "Go to Definition" to navigate to actual TypeScript source instead of .d.ts type declarations. Zero impact on app bundle size — bundlers resolve imports via `exports`/`main`/`module` to compiled JS in dist/.
1 parent 28a422c commit 920a4a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

clients/js/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
},
1717
"files": [
1818
"./dist/src",
19-
"./dist/types"
19+
"./dist/types",
20+
"./src/"
2021
],
2122
"scripts": {
2223
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",

0 commit comments

Comments
 (0)