The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Set tsup.config clean: true only on Vercel (#3668)
Steven Tey700531dd9725
diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.tsindex 0a38c590af..af494dadf7 100644--- a/packages/ui/tsup.config.ts+++ b/packages/ui/tsup.config.ts@@ -14,7 +14,7 @@ export default defineConfig((options: Options) => ({},dts: true,minify: true,- clean: true,+ clean: process.env.VERCEL === "1",external: ["react"],...options,}));diff --git a/packages/utils/tsup.config.ts b/packages/utils/tsup.config.tsindex 75950b5465..950469bee6 100644--- a/packages/utils/tsup.config.ts+++ b/packages/utils/tsup.config.ts@@ -5,7 +5,7 @@ export default defineConfig((options: Options) => ({format: ["esm"],dts: true,minify: true,- clean: true,+ clean: process.env.VERCEL === "1",external: ["react"],...options,}));