Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Set tsup.config clean: true only on Vercel (#3668)

Steven Tey700531dd9725
diff --git a/packages/ui/tsup.config.ts b/packages/ui/tsup.config.ts
index 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.ts
index 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,
}));