Skip to content

Commit 282c67d

Browse files
ci(repo): watch every checked-in package file in builds by default
Package builds listed the files they watch, so a build file missing from the list could change without a rebuild. React's build helper, Next.js's copied package.json files, shipped subpath entries and native sources were all unwatched. Builds now start from Turbo's default of every checked-in file and exclude tests, docs and tooling that can't change the output.
1 parent 1a7ece2 commit 282c67d

6 files changed

Lines changed: 18 additions & 92 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/clerk-js/turbo.json‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
{
22
"extends": ["//"],
33
"tasks": {
4-
"build": {
5-
"inputs": [
6-
"*.d.ts",
7-
"src/**",
8-
"tsconfig.json",
9-
"tsconfig.declarations.json",
10-
"rspack.config.mjs",
11-
12-
"!**/*.test.*",
13-
"!**/test/**",
14-
"!**/tests/**",
15-
"!**/__tests__/**",
16-
"!**/__mocks__/**",
17-
"!**/__snapshots__/**",
18-
"!coverage/**",
19-
"!examples/**",
20-
"!node_modules/**"
21-
]
22-
},
234
"build:sandbox": {
245
"dependsOn": ["^build", "@clerk/localizations#build"],
256
"inputs": ["sandbox/**"],
@@ -40,7 +21,6 @@
4021
"tsconfig.*.json",
4122
"tsup.config.ts",
4223
"webpack.config.js",
43-
4424
"!**/__snapshots__/**",
4525
"!coverage/**",
4626
"!examples/**",

‎packages/express/turbo.json‎

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

‎packages/mosaic/turbo.json‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22
"extends": ["//"],
33
"tasks": {
44
"build": {
5-
"inputs": [
6-
"package.json",
7-
"*.d.ts",
8-
"src/**",
9-
"tsconfig.json",
10-
"tsconfig.base.json",
11-
"tsdown.config.mts",
12-
"tsdown.css.config.mts",
13-
"stylex-lightningcss.config.mjs",
14-
"scripts/**",
15-
"!**/*.test.*",
16-
"!**/test/**",
17-
"!**/tests/**",
18-
"!**/__tests__/**",
19-
"!**/__mocks__/**",
20-
"!**/__snapshots__/**",
21-
"!coverage/**",
22-
"!examples/**",
23-
"!node_modules/**"
24-
],
255
"outputs": ["dist/**"]
266
}
277
}

‎packages/ui/turbo.json‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,6 @@
77
"persistent": true
88
},
99
"build": {
10-
"inputs": [
11-
"*.d.ts",
12-
"src/**",
13-
"tsconfig.json",
14-
"tsconfig.base.json",
15-
"tsconfig.src.json",
16-
"rspack.config.js",
17-
"tsdown.config.mts",
18-
19-
"!**/*.test.*",
20-
"!**/test/**",
21-
"!**/tests/**",
22-
"!**/__tests__/**",
23-
"!**/__mocks__/**",
24-
"!**/__snapshots__/**",
25-
"!coverage/**",
26-
"!examples/**",
27-
"!node_modules/**"
28-
],
2910
"outputs": ["*/package.json", "dist/**"]
3011
},
3112
"test": {
@@ -37,7 +18,6 @@
3718
"tsconfig.*.json",
3819
"rspack.config.js",
3920
"vitest.*.mts",
40-
4121
"!**/__snapshots__/**",
4222
"!coverage/**",
4323
"!examples/**",

‎turbo.json‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,25 +45,28 @@
4545
"build": {
4646
"dependsOn": ["^build"],
4747
"inputs": [
48-
"package.json",
49-
"*.d.ts",
50-
"bundlewatch.config.json",
51-
"src/**",
52-
"tsconfig.json",
53-
"tsconfig.build.json",
54-
"tsconfig.declarations.json",
55-
"tsdown.config.mts",
56-
"tsdown.config.ts",
57-
"tsup.config.ts",
58-
"vite.config.*",
59-
"subpaths.mjs",
48+
"$TURBO_DEFAULT$",
6049
"!**/*.test.*",
50+
"!**/*.spec.*",
6151
"!**/test/**",
6252
"!**/tests/**",
6353
"!**/__tests__/**",
6454
"!**/__mocks__/**",
6555
"!**/__snapshots__/**",
66-
"!CHANGELOG.md",
56+
"!*.md",
57+
"!docs/**",
58+
"!LICENSE",
59+
"!.gitignore",
60+
"!.claude/**",
61+
"!eslint-suppressions.json",
62+
"!eslint/**",
63+
"!oxlint.config.*",
64+
"!playwright.config.*",
65+
"!sandbox/**",
66+
"!typedoc.json",
67+
"!vercel.json",
68+
"!vitest.config.*",
69+
"!vitest.setup.*",
6770
"!coverage/**",
6871
"!dist/**",
6972
"!examples/**",

0 commit comments

Comments
 (0)