Skip to content

Commit

Permalink
Fix types not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
puckey committed Oct 17, 2024
1 parent 6937df9 commit 0a79de9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"exports": {
".": {
"import": "./dist/dito-admin.es.js",
"require": "./dist/dito-admin.umd.js"
"require": "./dist/dito-admin.umd.js",
"types": "./types/index.d.ts"
},
"./style.css": "./dist/style.css",
"./src": "./src/index.js",
Expand Down Expand Up @@ -87,5 +88,5 @@
"typescript": "^5.6.3",
"vite": "^5.4.8"
},
"types": "types"
"types": "./types/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@
"objection": "^3.1.5",
"typescript": "^5.6.3"
},
"types": "types"
"types": "./types/index.d.ts"
}
8 changes: 6 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
"license": "MIT",
"main": "./src/index.js",
"exports": {
".": "./src/index.js"
".": {
"import": "./src/index.js",
"require": "./src/index.js",
"types": "./types/index.d.ts"
}
},
"files": [
"src/",
Expand All @@ -34,5 +38,5 @@
"devDependencies": {
"typescript": "^5.6.3"
},
"types": "types"
"types": "./types/index.d.ts"
}

0 comments on commit 0a79de9

Please sign in to comment.