From a17d1fbc466764f413e2bebf0b6902015a76832d Mon Sep 17 00:00:00 2001 From: LekoArts Date: Wed, 1 Nov 2023 15:58:11 +0100 Subject: [PATCH 1/2] fix(repo): Ignore tests from build output --- packages/chrome-extension/tsup.config.ts | 2 +- packages/nextjs/tsup.config.ts | 2 +- packages/react/tsup.config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/chrome-extension/tsup.config.ts b/packages/chrome-extension/tsup.config.ts index 43dfad2b87d..f8ec87a96a5 100644 --- a/packages/chrome-extension/tsup.config.ts +++ b/packages/chrome-extension/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig(overrideOptions => { const shouldPublish = !!overrideOptions.env?.publish; const common: Options = { - entry: ['./src/**/*.{ts,tsx,js,jsx}'], + entry: ['./src/**/*.{ts,tsx,js,jsx}', '!./src/**/*.test.{ts,tsx}'], bundle: false, clean: true, minify: false, diff --git a/packages/nextjs/tsup.config.ts b/packages/nextjs/tsup.config.ts index 50c492a3b22..b8449fc3e96 100644 --- a/packages/nextjs/tsup.config.ts +++ b/packages/nextjs/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig(overrideOptions => { const shouldPublish = !!overrideOptions.env?.publish; const common: Options = { - entry: ['./src/**/*.{ts,tsx,js,jsx}'], + entry: ['./src/**/*.{ts,tsx,js,jsx}', '!./src/**/*.test.{ts,tsx}'], // We want to preserve original file structure // so that the "use client" directives are not lost // and make debugging easier via node_modules easier diff --git a/packages/react/tsup.config.ts b/packages/react/tsup.config.ts index 93f9237b1ab..36498142370 100644 --- a/packages/react/tsup.config.ts +++ b/packages/react/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig(overrideOptions => { const shouldPublish = !!overrideOptions.env?.publish; const common: Options = { - entry: ['./src/**/*.{ts,tsx,js,jsx}'], + entry: ['./src/**/*.{ts,tsx,js,jsx}', '!./src/**/*.test.{ts,tsx}'], bundle: false, clean: true, minify: false, From f2576a34314f5fc7d18901cd97fba5d715a17dd0 Mon Sep 17 00:00:00 2001 From: Lennart Date: Wed, 1 Nov 2023 15:59:43 +0100 Subject: [PATCH 2/2] Create lovely-plums-sin.md --- .changeset/lovely-plums-sin.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/lovely-plums-sin.md diff --git a/.changeset/lovely-plums-sin.md b/.changeset/lovely-plums-sin.md new file mode 100644 index 00000000000..6dbc4dad0e0 --- /dev/null +++ b/.changeset/lovely-plums-sin.md @@ -0,0 +1,7 @@ +--- +"@clerk/chrome-extension": patch +"@clerk/nextjs": patch +"@clerk/clerk-react": patch +--- + +Ignore `.test.ts` files for the build output. Should result in smaller bundle size.