19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
import process from 'node:process'
|
|
import { defineConfig } from 'tsdown'
|
|
import ApiSnapshot from 'tsnapi/rolldown'
|
|
|
|
export default defineConfig({
|
|
entry: [
|
|
'src/index.ts',
|
|
],
|
|
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,
|
|
}),
|
|
],
|
|
})
|