Skip to content

Commit

Permalink
fix: Fix tsup config / bundled modules
Browse files Browse the repository at this point in the history
There where packages bundled which are not even used… :/
  • Loading branch information
sebbo2002 committed Sep 9, 2024
1 parent 599cc94 commit 92bfa4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { defineConfig } from 'tsup';
import fs from 'fs';

const pkg = JSON.parse(
fs.readFileSync('./package.json', 'utf-8')
);

export default defineConfig({
clean: true,
Expand All @@ -7,6 +12,8 @@ export default defineConfig({
'src/bin/cli.ts',
'src/bin/start.ts'
],
external: [...Object.keys(pkg.devDependencies), 'semantic-release'],
noExternal: Object.keys(pkg.dependencies),
format: ['esm'],
dts: true,
sourcemap: true,
Expand Down

0 comments on commit 92bfa4c

Please sign in to comment.