Init
This commit is contained in:
12
tsup.config.ts
Normal file
12
tsup.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { defineConfig } from 'tsup'
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'], // Entry point for your library/application
|
||||
format: ['cjs', 'esm'], // Bundle in CommonJS and ES Module formats
|
||||
outDir: 'dist',
|
||||
dts: true, // Generate TypeScript declaration files
|
||||
name: 'MaimaiAPI',
|
||||
target: 'esnext',
|
||||
clean: true, // Clean output directory before each build
|
||||
minify: false // Set to true if you need minification
|
||||
})
|
||||
Reference in New Issue
Block a user