@opendoc/openapi-shaking
Version:
Remove the useless components and paths of openapi document.
13 lines (11 loc) • 347 B
text/typescript
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
tsconfig: 'tsconfig.lib.json',
dts: true,
splitting: false,
sourcemap: true,
clean: true,
// onSuccess: 'tsc --emitDeclarationOnly -d --declarationMap -p ./tsconfig.lib.json && tsc-alias -p ./tsconfig.lib.json',
})