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",