fix: update TypeScript definition path in package.json and configure dts plugin with tsconfig path
All checks were successful
Publish to npm / publish (push) Successful in 28s

This commit is contained in:
Astrian Zheng 2025-02-20 14:07:01 +11:00
parent 69dcbd282f
commit 952b053e9c
Signed by: Astrian
SSH Key Fingerprint: SHA256:rVnhx3DAKjujCwWE13aDl7uV6+9U1MvydLkNRXJrBiA
2 changed files with 2 additions and 3 deletions

View File

@ -37,7 +37,7 @@
},
"main": "dist/index.cjs.js",
"module": "dist/datenel.es.js",
"types": "dist/index.d.ts",
"types": "dist/src/index.d.ts",
"files": [
"dist"
]

View File

@ -20,8 +20,7 @@ export default defineConfig(({mode}) => ({
},
},
plugins: [react(), dts({
insertTypesEntry: true,
logLevel: "info"
tsconfigPath: "./tsconfig.app.json"
})],
resolve: {
alias: {