Skip to content

Commit

Permalink
refactor: optimize tsup config type (#16)
Browse files Browse the repository at this point in the history
* refactor: optimize tsup config type

* refactor: optimize tsup config type

---------

Co-authored-by: ZhongxuYang <[email protected]>
  • Loading branch information
chouchouji and ZhongxuYang authored Dec 5, 2024
1 parent ba49cfc commit e1e39e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {defineConfig, Format, Options} from 'tsup'
import {defineConfig, type Options} from 'tsup'

const defaultConfig = {
const defaultConfig: Options = {
sourcemap: true,
clean: true,
dts: true,
target: 'esnext' as unknown as Options['target'],
format: ['cjs', 'esm'] as unknown as Format,
target: 'esnext',
format: ['cjs', 'esm'],
}

export default defineConfig([
Expand Down

0 comments on commit e1e39e7

Please sign in to comment.