From 92bfa4c97dc3196433f4764ab950d32e93c29e10 Mon Sep 17 00:00:00 2001 From: Sebastian Pekarek Date: Mon, 9 Sep 2024 10:48:40 +0200 Subject: [PATCH] fix: Fix tsup config / bundled modules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There where packages bundled which are not even used… :/ --- tsup.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tsup.config.ts b/tsup.config.ts index 9cc8e6d..4548563 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -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, @@ -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,