feat: use tsnapi for exports snapshoting

This commit is contained in:
Anthony Fu committed 2026-04-10 17:12:24 +09:00
1 parent 68c00a2b25
commit 83cf9c396b
9 files changed
+1550 -1712

No files matched your search

+8
View File
@@ -1,4 +1,6 @@
import process from 'node:process'
import { defineConfig } from 'tsdown'
import ApiSnapshot from 'tsnapi/rolldown'
export default defineConfig({
entry: [
@@ -7,4 +9,10 @@ export default defineConfig({
dts: true,
exports: true,
publint: true,
plugins: [
ApiSnapshot({
// TODO: remove this when the library is stable to guard against breaking changes
update: !process.env.CI,
}),
],
})