From 8efa67970ff2db6850a28f1ab372b6564ca5c261 Mon Sep 17 00:00:00 2001 From: Saihajpreet Singh Date: Fri, 29 Jul 2022 14:33:36 -0400 Subject: [PATCH] feat: ignore more test paths --- .changeset/tasty-feet-complain.md | 5 +++++ src/commands/build.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/tasty-feet-complain.md diff --git a/.changeset/tasty-feet-complain.md b/.changeset/tasty-feet-complain.md new file mode 100644 index 00000000..3f3972a4 --- /dev/null +++ b/.changeset/tasty-feet-complain.md @@ -0,0 +1,5 @@ +--- +"bob-the-bundler": minor +--- + +Ignore `__tests__` and `__testUtils__` from bundling diff --git a/src/commands/build.ts b/src/commands/build.ts index 6d5eadd6..5b22d90e 100644 --- a/src/commands/build.ts +++ b/src/commands/build.ts @@ -33,6 +33,8 @@ interface PackageInfo { const filesToExcludeFromDist = [ "**/test/**", "**/tests/**", + "**/__tests__/**", + "**/__testUtils__/**", "**/*.spec.*", "**/*.test.*", "**/dist",