Skip to content

Commit a9ada04

Browse files
committed
chore(db): update package.json exports to include types for modules
1 parent e59dc63 commit a9ada04

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/db/package.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,16 @@
1414
"typescript": "^5.9.2"
1515
},
1616
"exports": {
17-
".": "./dist/index.js",
18-
"./postinstall": "./dist/postinstall.js"
17+
".": {
18+
"import": "./dist/index.js",
19+
"types": "./src/index.ts",
20+
"default": "./dist/index.js"
21+
},
22+
"./postinstall": {
23+
"import": "./dist/postinstall.js",
24+
"types": "./src/postinstall.ts",
25+
"default": "./dist/postinstall.js"
26+
}
1927
},
2028
"bin": {
2129
"comp-prisma-postinstall": "./dist/postinstall.js"

0 commit comments

Comments
 (0)