feat: use vitest controlled api-snapshot

This commit is contained in:
Anthony Fu committed 2026-04-23 13:37:35 +09:00
1 parent b898f3cf9a
commit 977d3d4066
8 files changed
+71 -25

No files matched your search

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