diff --git a/package.json b/package.json index 1eae1e3a..ef8ef14b 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "version": "1.0.7", "license": "MIT", "scripts": { - "build": "tsup src/index.ts --format cjs,esm --dts", + "build": "tsup", "typecheck": "tsc --noEmit", "test": "vitest", "changeset:publish": "changeset publish", diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 00000000..601cef65 --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,7 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['src/index.ts'], + format: ['cjs', 'esm'], + dts: true, +});