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, })