diff --git a/tsup.config.ts b/tsup.config.ts index d982b9d..4f56ca7 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,7 +3,13 @@ import { defineConfig } from "tsup"; export default defineConfig({ entry: { index: "src/index.ts", sentry: "src/sentry.ts" }, format: ["esm", "cjs"], - dts: true, + // tsup injects baseUrl for DTS; TS 6 treats that as an error until tsup stops + // (https://github.com/egoist/tsup/issues/1388) + dts: { + compilerOptions: { + ignoreDeprecations: "6.0", + }, + }, clean: true, target: "es2022", sourcemap: true,