From 74b9275268da1861b7ade9556e2864b842f5f31b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Fri, 10 May 2024 00:20:44 +0200 Subject: [PATCH] Build system work --- package.json | 10 ++++++++++ tsup.config.ts | 5 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d5b0c92..76862df 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,16 @@ "types": "./dist/lib.d.cts", "default": "./dist/lib.cjs" } + }, + "./effect": { + "import": { + "types": "./dist/effect/lib.d.ts", + "default": "./dist/effect/lib.js" + }, + "require": { + "types": "./dist/effect/lib.d.cts", + "default": "./dist/effect/lib.cjs" + } } }, "scripts": { diff --git a/tsup.config.ts b/tsup.config.ts index 3f59156..8d6a0de 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -2,10 +2,11 @@ import { defineConfig } from "tsup" export default defineConfig({ - entry: ["./src/lib.ts"], + entry: ["./src/lib.ts", "./src/effect/lib.ts"], format: ["esm", "cjs"], + skipNodeModulesBundle: true, dts: true, - splitting: false, + splitting: true, sourcemap: true, clean: true, })