chore: enable unbuild ts generation

This commit is contained in:
Bereket Engida
2025-03-02 01:30:08 +03:00
parent 44d6dac470
commit 8aa346a463
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ export default defineBuildConfig({
treeShaking: true,
},
},
declaration: true,
outDir: "dist",
clean: false,
failOnWarn: false,

View File

@@ -9,7 +9,7 @@
"directory": "packages/better-auth"
},
"scripts": {
"build": "unbuild --clean && pnpm build:types",
"build": "unbuild --clean",
"dev": "concurrently \"unbuild --watch\" \"npm run dev:types\"",
"dev:types": "tsc --project tsconfig.declarations.json --watch",
"build:types": "tsc --project tsconfig.declarations.json",