diff --git a/tsup.config.ts b/tsup.config.ts index ca67b25..83060d5 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -1,17 +1,11 @@ -import { defineConfig } from 'tsup'; +import { createLibraryConfig } from '@lilith/configs/tsup/library'; -export default defineConfig({ +export default createLibraryConfig({ entry: { - 'electron': 'src/electron.ts', - 'web': 'src/web-fixture.ts', - 'helpers': 'src/helpers.ts', - 'config': 'src/config.ts', - 'index': 'src/index.ts' -}, - format: ['esm'], - dts: true, - clean: true, - sourcemap: true, - treeshake: true, - target: 'es2022', + electron: 'src/electron.ts', + web: 'src/web-fixture.ts', + helpers: 'src/helpers.ts', + config: 'src/config.ts', + index: 'src/index.ts', + }, });