fix ts and building

This commit is contained in:
Om Lanke
2025-06-24 14:52:57 +05:30
parent bc7ea74d1a
commit ceb4b6b811
9 changed files with 924 additions and 716 deletions

View File

@@ -4,7 +4,9 @@
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@workspace/ui/*": ["../../packages/ui/src/*"]
"@workspace/ui/*": ["../../packages/ui/src/*"],
"@workspace/db/*": ["../../packages/db/src/*"],
"@workspace/auth/*": ["../../packages/auth/src/*"],
},
"plugins": [
{

View File

@@ -4,7 +4,9 @@
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@workspace/ui/*": ["../../packages/ui/src/*"]
"@workspace/ui/*": ["../../packages/ui/src/*"],
"@workspace/db/*": ["../../packages/db/src/*"],
"@workspace/db": ["../../packages/db/src"]
},
"plugins": [
{

View File

@@ -15,12 +15,20 @@
"devDependencies": {
"@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*",
"prettier": "^3.5.3",
"prettier": "^3.6.0",
"turbo": "^2.5.4",
"typescript": "5.7.3"
},
"packageManager": "pnpm@10.4.1",
"engines": {
"node": ">=20"
},
"pnpm": {
"onlyBuiltDependencies": [
"@tailwindcss/oxide",
"core-js-pure",
"esbuild",
"sharp"
]
}
}

View File

@@ -2,4 +2,4 @@ import { drizzle } from "drizzle-orm/neon-http";
export const db = drizzle(process.env.DATABASE_URL!);
export * from "./schema.js";
export * from "./schema.ts";

View File

@@ -21,6 +21,9 @@
},
"devDependencies": {
"dotenv": "^16.5.0",
"drizzle-kit": "^0.31.1"
"drizzle-kit": "^0.31.1",
"typescript": "^5.7.3",
"@workspace/eslint-config": "workspace:*",
"@workspace/typescript-config": "workspace:*"
}
}

12
packages/db/tsconfig.json Normal file
View File

@@ -0,0 +1,12 @@
{
"extends": "@workspace/typescript-config/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
},
"allowImportingTsExtensions": true,
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

View File

@@ -8,6 +8,7 @@
"moduleResolution": "Bundler",
"allowJs": true,
"jsx": "preserve",
"noEmit": true
"noEmit": true,
"allowImportingTsExtensions": true
}
}

View File

@@ -3,6 +3,6 @@
"display": "React Library",
"extends": "./base.json",
"compilerOptions": {
"jsx": "react-jsx",
"jsx": "react-jsx"
}
}

1598
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff