Skip to content

Commit 01e0984

Browse files
committed
chore: merge tsconfig.build.json into tsconfig.json for packages
While it's fine (and recommended) to have a separate TS config for building in apps, for packages, it adds unnecessary complexity and possible IDE/build mismatches in error reporting. So we're resorting to one simple rule: unless we can justify why a separate build config is needed in one sentence, it should be out - it's easy to reintroduce something later if things break. The necessary rules have been merged into the base tsconfig.json and other unnecessary rules have been removed from either/both of them.
1 parent 3c8beda commit 01e0984

7 files changed

Lines changed: 3 additions & 76 deletions

File tree

packages/configs/tsconfig.build.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/configs/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
{
22
"extends": "../../tsconfig.package.json",
3-
"compilerOptions": {
4-
// Package-specific overrides (if any)
5-
"module": "esnext",
6-
"moduleResolution": "bundler"
7-
}
3+
"include": ["src"]
84
}

packages/database/tsconfig.build.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/database/tsconfig.json

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
"extends": "../../tsconfig.package.json",
33
"compilerOptions": {
44
// Database-specific settings
5-
"declaration": true,
6-
"removeComments": true,
7-
"allowSyntheticDefaultImports": true,
8-
"sourceMap": true,
9-
"outDir": "./dist",
10-
"baseUrl": "./",
11-
"emitDecoratorMetadata": true,
12-
// Relaxed strict settings for database entities
13-
"strictNullChecks": false,
14-
"noImplicitAny": false,
15-
"strictBindCallApply": false,
16-
"forceConsistentCasingInFileNames": false,
17-
// Path mapping
18-
"paths": {
19-
"@database/*": ["src/*"]
20-
}
5+
"emitDecoratorMetadata": true // Necessary for class-validator
216
}
227
}

packages/sounds/tsconfig.build.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/sounds/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "../../tsconfig.package.json",
3-
"compilerOptions": {
4-
"baseUrl": "./src"
5-
}
3+
"include": ["src"]
64
}

packages/thumbnail/tsconfig.build.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)