Skip to content

Commit a70d3f1

Browse files
davidturnbullclaudemaxprilutskiy
authored
feat: add typecheck scripts across monorepo packages (#1047)
* feat: add typecheck scripts across monorepo packages Add typecheck script to all packages and root-level turbo configuration to enable TypeScript type checking across the entire monorepo. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]> * feat: integrate with turbo --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Max Prilutskiy <[email protected]>
1 parent 91191a3 commit a70d3f1

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"scripts": {
55
"prepare": "husky",
66
"build": "turbo build",
7+
"typecheck": "turbo typecheck",
78
"test": "turbo test",
89
"new": "changeset",
910
"new:empty": "changeset --empty",

packages/cli/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
"scripts": {
104104
"lingo.dev": "node --inspect=9229 ./bin/cli.mjs",
105105
"dev": "tsup --watch",
106-
"build": "tsc --noEmit && tsup",
106+
"build": "pnpm typecheck && tsup",
107+
"typecheck": "tsc --noEmit",
107108
"test": "vitest run",
108109
"test:watch": "vitest",
109110
"clean": "rm -rf build"

packages/compiler/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
],
1717
"scripts": {
1818
"dev": "tsup --watch",
19-
"build": "tsc --noEmit && tsup",
19+
"build": "pnpm typecheck && tsup",
20+
"typecheck": "tsc --noEmit",
2021
"clean": "rm -rf build",
2122
"test": "vitest --run",
2223
"test:watch": "vitest -w"

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
],
3232
"scripts": {
3333
"dev": "unbuild && chokidar 'src/**/*' -c 'unbuild'",
34-
"build": "tsc --noEmit && unbuild",
34+
"build": "pnpm typecheck && unbuild",
35+
"typecheck": "tsc --noEmit",
3536
"clean": "rm -rf build",
3637
"test": "vitest --run",
3738
"test:watch": "vitest -w"

packages/sdk/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
],
1717
"scripts": {
1818
"dev": "tsup --watch",
19-
"build": "tsc --noEmit && tsup",
19+
"build": "pnpm typecheck && tsup",
20+
"typecheck": "tsc --noEmit",
2021
"test": "vitest run"
2122
},
2223
"keywords": [],

packages/spec/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
],
1717
"scripts": {
1818
"dev": "tsup --watch",
19-
"build": "tsc --noEmit && tsup",
19+
"build": "pnpm typecheck && tsup",
20+
"typecheck": "tsc --noEmit",
2021
"test": "vitest run",
2122
"test:watch": "vitest"
2223
},

turbo.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"build": {
5-
"dependsOn": ["^build"]
5+
"dependsOn": ["typecheck", "^build"]
66
},
7+
"typecheck": {},
78
"test": {
89
"dependsOn": ["^build"]
910
},

0 commit comments

Comments
 (0)