From 9a8768bfe62c411977c2d6012ef0522650c4e1d6 Mon Sep 17 00:00:00 2001 From: AkashRajpurohit Date: Tue, 9 Jul 2024 17:34:43 +0530 Subject: [PATCH] chore: :wrench: exclude bundling test files --- .changeset/tough-baboons-tease.md | 5 +++++ tsup.config.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tough-baboons-tease.md diff --git a/.changeset/tough-baboons-tease.md b/.changeset/tough-baboons-tease.md new file mode 100644 index 0000000..79c4d32 --- /dev/null +++ b/.changeset/tough-baboons-tease.md @@ -0,0 +1,5 @@ +--- +"@akashrajpurohit/utils": patch +--- + +chore: :wrench: exclude bundling test files diff --git a/tsup.config.ts b/tsup.config.ts index a8a1329..a01d4e9 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -5,7 +5,7 @@ const isProduction = process.env.NODE_ENV === 'production'; export default defineConfig(({ watch = false }) => ({ clean: true, dts: true, - entry: ["src/**/*.ts"], + entry: ["src/**/*.ts", "!src/**/*.test.ts"], external: [], format: ['cjs', 'esm'], treeshake: isProduction,