Skip to content

Commit 2994d60

Browse files
committed
build: Typecheck configuration was aligned with project references
1 parent e653ab2 commit 2994d60

15 files changed

Lines changed: 120 additions & 14 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ coverage
1212
dist
1313
node_modules
1414
packages/*/bin
15+
*.tsbuildinfo
1516

1617
.codex
1718
.npmrc

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import pluginTs from 'typescript-eslint'
55
export default [
66
{
77
ignores: [
8+
'artifacts/**',
89
'.yarn/**',
910
'.pnp.*',
1011
'coverage/**',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"release:dry": "conventional-release --dry",
5050
"test": "vitest run",
5151
"test:coverage": "vitest run --coverage",
52-
"typecheck": "yarn workspaces foreach -A run typecheck",
52+
"typecheck": "tsc -b tsconfig.typecheck.json",
5353
"prepare": "husky"
5454
}
5555
}

packages/conventional-bump/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@
7272
},
7373
"scripts": {
7474
"build": "vite build",
75-
"typecheck": "tsc --noEmit -p tsconfig.json"
75+
"typecheck": "tsc -b tsconfig.typecheck.json"
7676
}
7777
}

packages/conventional-bump/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@
1616
"moduleResolution": "Node",
1717
"paths": {
1818
"@/*": ["./src/*"],
19-
"@modulify/conventional-git": ["../conventional-git/src/index.ts"],
2019
"~tests/*": ["./tests/*"],
21-
"~types/*": ["./types/*", "../conventional-git/types/*"]
20+
"~types/*": ["./types/*"]
2221
},
2322
"resolveJsonModule": true,
2423
"skipLibCheck": true,
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"declaration": true,
6+
"emitDeclarationOnly": true,
7+
"declarationMap": false,
8+
"outDir": "../../artifacts/tsc/conventional-bump",
9+
"tsBuildInfoFile": "../../artifacts/tsc/conventional-bump.tsbuildinfo",
10+
"paths": {
11+
"@/*": ["./src/*"],
12+
"~tests/*": ["./tests/*"],
13+
"~types/*": ["./types/*"]
14+
}
15+
},
16+
"references": [
17+
{ "path": "../conventional-git/tsconfig.typecheck.json" }
18+
],
19+
"include": [
20+
"src/**/*.ts",
21+
"tests/**/*.ts",
22+
"types/**/*.ts",
23+
"types/**/*.d.ts"
24+
]
25+
}

packages/conventional-changelog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
},
7171
"scripts": {
7272
"build": "vite build",
73-
"typecheck": "tsc --noEmit -p tsconfig.json"
73+
"typecheck": "tsc -b tsconfig.typecheck.json"
7474
}
7575
}

packages/conventional-changelog/tsconfig.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
"moduleResolution": "Node",
1717
"paths": {
1818
"@/*": ["./src/*"],
19-
"@modulify/conventional-bump": ["../conventional-bump/src/index.ts"],
20-
"@modulify/conventional-git": ["../conventional-git/src/index.ts"],
2119
"~tests/*": ["./tests/*"],
22-
"~types/*": ["./types/*", "../conventional-git/types/*"]
20+
"~types/*": ["./types/*"]
2321
},
2422
"resolveJsonModule": true,
2523
"skipLibCheck": true,
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"composite": true,
5+
"declaration": true,
6+
"emitDeclarationOnly": true,
7+
"declarationMap": false,
8+
"outDir": "../../artifacts/tsc/conventional-changelog",
9+
"tsBuildInfoFile": "../../artifacts/tsc/conventional-changelog.tsbuildinfo",
10+
"paths": {
11+
"@/*": ["./src/*"],
12+
"~tests/*": ["./tests/*"],
13+
"~types/*": ["./types/*"]
14+
}
15+
},
16+
"references": [
17+
{ "path": "../conventional-git/tsconfig.typecheck.json" },
18+
{ "path": "../conventional-bump/tsconfig.typecheck.json" }
19+
],
20+
"include": [
21+
"src/**/*.ts",
22+
"tests/**/*.ts",
23+
"types/**/*.ts",
24+
"types/**/*.d.ts"
25+
]
26+
}

packages/conventional-git/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@
6767
},
6868
"scripts": {
6969
"build": "vite build",
70-
"typecheck": "tsc --noEmit -p tsconfig.json"
70+
"typecheck": "tsc -b tsconfig.typecheck.json"
7171
}
7272
}

0 commit comments

Comments
 (0)