diff --git a/.changeset/build-inputs-turbo-default.md b/.changeset/build-inputs-turbo-default.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/build-inputs-turbo-default.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/clerk-js/turbo.json b/packages/clerk-js/turbo.json index 5d5f376289a..f0dfdb33a95 100644 --- a/packages/clerk-js/turbo.json +++ b/packages/clerk-js/turbo.json @@ -1,25 +1,6 @@ { "extends": ["//"], "tasks": { - "build": { - "inputs": [ - "*.d.ts", - "src/**", - "tsconfig.json", - "tsconfig.declarations.json", - "rspack.config.mjs", - - "!**/*.test.*", - "!**/test/**", - "!**/tests/**", - "!**/__tests__/**", - "!**/__mocks__/**", - "!**/__snapshots__/**", - "!coverage/**", - "!examples/**", - "!node_modules/**" - ] - }, "build:sandbox": { "dependsOn": ["^build", "@clerk/localizations#build"], "inputs": ["sandbox/**"], @@ -40,7 +21,6 @@ "tsconfig.*.json", "tsup.config.ts", "webpack.config.js", - "!**/__snapshots__/**", "!coverage/**", "!examples/**", diff --git a/packages/express/turbo.json b/packages/express/turbo.json deleted file mode 100644 index 4379d6c1c35..00000000000 --- a/packages/express/turbo.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "extends": ["//"], - "tasks": { - "build": { - "inputs": [ - "*.d.ts", - "**/package.json", - "src/**", - "tsconfig.json", - "tsup.config.ts", - - "!**/__tests__/**", - "!**/__snapshots__/**", - "!coverage/**", - "!node_modules/**" - ] - } - } -} diff --git a/packages/mosaic/turbo.json b/packages/mosaic/turbo.json index 65219661ea9..35be9c68fa8 100644 --- a/packages/mosaic/turbo.json +++ b/packages/mosaic/turbo.json @@ -2,26 +2,6 @@ "extends": ["//"], "tasks": { "build": { - "inputs": [ - "package.json", - "*.d.ts", - "src/**", - "tsconfig.json", - "tsconfig.base.json", - "tsdown.config.mts", - "tsdown.css.config.mts", - "stylex-lightningcss.config.mjs", - "scripts/**", - "!**/*.test.*", - "!**/test/**", - "!**/tests/**", - "!**/__tests__/**", - "!**/__mocks__/**", - "!**/__snapshots__/**", - "!coverage/**", - "!examples/**", - "!node_modules/**" - ], "outputs": ["dist/**"] } } diff --git a/packages/shared/turbo.json b/packages/shared/turbo.json new file mode 100644 index 00000000000..0004b897b5e --- /dev/null +++ b/packages/shared/turbo.json @@ -0,0 +1,12 @@ +{ + "extends": ["//"], + "tasks": { + "build": { + "inputs": [ + "$TURBO_EXTENDS$", + "$TURBO_ROOT$/packages/clerk-js/package.json", + "$TURBO_ROOT$/packages/ui/package.json" + ] + } + } +} diff --git a/packages/ui/turbo.json b/packages/ui/turbo.json index dc2b9940748..b3693977202 100644 --- a/packages/ui/turbo.json +++ b/packages/ui/turbo.json @@ -6,28 +6,6 @@ "dependsOn": ["build"], "persistent": true }, - "build": { - "inputs": [ - "*.d.ts", - "src/**", - "tsconfig.json", - "tsconfig.base.json", - "tsconfig.src.json", - "rspack.config.js", - "tsdown.config.mts", - - "!**/*.test.*", - "!**/test/**", - "!**/tests/**", - "!**/__tests__/**", - "!**/__mocks__/**", - "!**/__snapshots__/**", - "!coverage/**", - "!examples/**", - "!node_modules/**" - ], - "outputs": ["*/package.json", "dist/**"] - }, "test": { "inputs": [ "*.d.ts", @@ -37,7 +15,6 @@ "tsconfig.*.json", "rspack.config.js", "vitest.*.mts", - "!**/__snapshots__/**", "!coverage/**", "!examples/**", diff --git a/turbo.json b/turbo.json index 7c560eac6fe..a0b75106f1f 100644 --- a/turbo.json +++ b/turbo.json @@ -45,32 +45,35 @@ "build": { "dependsOn": ["^build"], "inputs": [ - "package.json", - "*.d.ts", - "bundlewatch.config.json", - "src/**", - "tsconfig.json", - "tsconfig.build.json", - "tsconfig.declarations.json", - "tsdown.config.mts", - "tsdown.config.ts", - "tsup.config.ts", - "vite.config.*", - "subpaths.mjs", + "$TURBO_DEFAULT$", "!**/*.test.*", + "!**/*.spec.*", "!**/test/**", "!**/tests/**", "!**/__tests__/**", "!**/__mocks__/**", "!**/__snapshots__/**", - "!CHANGELOG.md", + "!*.md", + "!docs/**", + "!LICENSE", + "!.gitignore", + "!.claude/**", + "!eslint-suppressions.json", + "!eslint/**", + "!oxlint.config.*", + "!playwright.config.*", + "!sandbox/**", + "!typedoc.json", + "!vercel.json", + "!vitest.config.*", + "!vitest.setup.*", "!coverage/**", "!dist/**", "!examples/**", "!node_modules/**" ], "outputLogs": "new-only", - "outputs": ["*/package.json", "dist/**", "scripts/**"] + "outputs": ["dist/**"] }, "build:declarations": { "dependsOn": ["build"],