symplify / monorepo-builder

Composer tools to maintain a monorepo

Home Page:https://www.tomasvotruba.cz/blog/2019/02/18/how-we-automated-shopsys-packages-release-from-2-days-to-1-console-command/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package with the name 'tests' in the name are always ignored?

pjordaan opened this issue · comments

Hi,
I have a monorepo and I added a package with classes that are used for writing integration tests much more easily. However, it seems symplify/monorepo-builder was ignoring this package because the name contained the string 'tests' in it.

If I look in the source code I see a hardcoded if statement in PackageComposerFinder that is probably the culprit.
https://github.com/symplify/monorepo-builder/blob/main/src/Finder/PackageComposerFinder.php#L82

Shouldn't this be at least configurable? It could be the default for the path exclude or maybe a test path exclude config?

It's not high priority to fix as I will fix it by just renaming the package for now.