Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@
"typescript": "^5.9.2"
},
"exports": {
".": "./dist/index.js",
"./postinstall": "./dist/postinstall.js"
".": {
"import": "./dist/index.js",
"types": "./src/index.ts",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Types point to files excluded from published package

The types fields reference source files (./src/index.ts and ./src/postinstall.ts), but the files array only includes dist, README.md, and INTEGRATION_GUIDE.md. When this package is published to npm, the src folder won't be included, so the type paths will be broken. TypeScript consumers won't get proper type information. The types paths likely need to point to .d.ts files in dist/ instead.

Additional Locations (1)

Fix in Cursor Fix in Web

"default": "./dist/index.js"
},
"./postinstall": {
"import": "./dist/postinstall.js",
"types": "./src/postinstall.ts",
"default": "./dist/postinstall.js"
}
},
"bin": {
"comp-prisma-postinstall": "./dist/postinstall.js"
Expand Down