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

@@ -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"
}
}