From 4089f878dfa0bd0f5bde87e740986c2778528e9e Mon Sep 17 00:00:00 2001 From: Edoardo Ranghieri Date: Sat, 20 Jul 2024 17:17:18 +0200 Subject: [PATCH] build: bundle library (#205) Re-enable library bundling. closes #204 --- packages/next-safe-action/tsup.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next-safe-action/tsup.config.ts b/packages/next-safe-action/tsup.config.ts index cf5c4d13..89a568bf 100644 --- a/packages/next-safe-action/tsup.config.ts +++ b/packages/next-safe-action/tsup.config.ts @@ -1,8 +1,8 @@ import { defineConfig } from "tsup"; export default defineConfig({ - entry: ["src/*.ts", "src/adapters/*.ts"], - bundle: false, + entry: ["src/index.ts", "src/hooks.ts", "src/stateful-hooks.ts", "src/adapters/*.ts"], + bundle: true, format: ["esm"], clean: true, splitting: false,