tsup/tsup.config.ts
EGOIST f7c53f70a6 feat: update default target to node14
BREAKING CHANGE:

Now tsup requires node 14 or above, the build target is also changed to `node14` by default
2022-05-25 16:31:21 +08:00

13 lines
333 B
TypeScript

import { defineConfig } from 'tsup'
export default defineConfig({
name: 'tsup',
target: 'node14',
dts: {
resolve: true,
// build types for `src/index.ts` only
// otherwise `Options` will not be exported by `tsup`, not sure how this happens, probably a bug in rollup-plugin-dts
entry: './src/index.ts',
},
})