From a0a4613df63d61ea54f8effb781fa15f5424a748 Mon Sep 17 00:00:00 2001 From: seunheejo <50866506+sa02045@users.noreply.github.com> Date: Tue, 16 Apr 2024 20:43:49 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20tsup.config.ts=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- tsup.config.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tsup.config.ts 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, +});