Skip to content

Commit a0a44c6

Browse files
chore: add @repo/typescript-config to package.json and create tsconfig.json files for db and drizzle packages to standardize TypeScript configuration across the project
1 parent 02a2445 commit a0a44c6

File tree

5 files changed

+56
-2
lines changed

5 files changed

+56
-2
lines changed

packages/db/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"version": "1.0.0",
55
"packageManager": "pnpm@10.5.2",
66
"description": "",
7-
"author": "",
87
"license": "ISC",
98
"exports": {
109
".": {
@@ -38,6 +37,7 @@
3837
"@prisma/client": "^6.12.0"
3938
},
4039
"devDependencies": {
40+
"@repo/typescript-config": "workspace:*",
4141
"prisma": "^6.12.0"
4242
}
4343
}

packages/db/tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "@repo/typescript-config/base.json",
3+
"compilerOptions": {
4+
"module": "es2015",
5+
"moduleResolution": "bundler",
6+
"lib": [
7+
"ES2022"
8+
],
9+
"types": [
10+
"node"
11+
],
12+
"outDir": "./dist",
13+
"rootDir": "./src"
14+
},
15+
"include": [
16+
"**/*.ts",
17+
"**/*.tsx"
18+
],
19+
"exclude": [
20+
"node_modules",
21+
"dist",
22+
"tsdown.config.ts"
23+
]
24+
}

packages/drizzle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"version": "1.0.0",
55
"packageManager": "pnpm@10.5.2",
66
"description": "",
7-
"author": "",
87
"license": "ISC",
98
"exports": {
109
".": {
@@ -37,6 +36,7 @@
3736
"drizzle-orm": "^0.44.5"
3837
},
3938
"devDependencies": {
39+
"@repo/typescript-config": "workspace:*",
4040
"drizzle-kit": "^0.31.4"
4141
}
4242
}

packages/drizzle/tsconfig.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": "@repo/typescript-config/base.json",
3+
"compilerOptions": {
4+
"module": "es2015",
5+
"moduleResolution": "bundler",
6+
"lib": [
7+
"ES2022"
8+
],
9+
"types": [
10+
"node"
11+
],
12+
"outDir": "./dist",
13+
"rootDir": "./src"
14+
},
15+
"include": [
16+
"**/*.ts",
17+
"**/*.tsx"
18+
],
19+
"exclude": [
20+
"node_modules",
21+
"dist",
22+
"tsdown.config.ts"
23+
]
24+
}

pnpm-lock.yaml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)