Add ./hooks subpath export for cleaner imports

This commit is contained in:
Mario Zechner 2025-12-10 00:56:02 +01:00
parent 7c553acd1e
commit 1abc635044
4 changed files with 18 additions and 11 deletions

View file

@ -12,6 +12,16 @@
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./hooks": {
"types": "./dist/core/hooks/index.d.ts",
"import": "./dist/core/hooks/index.js"
}
},
"files": [
"dist",
"docs",