Needless check for file existence hinders excludes setting
elpadi opened this issue · comments
Hi,
The TLDR for this issue is: Why do we need an Assert::allFileExists
check for the packageDirectoriesExcludes
config setting? And can we please remove it?
monorepo-builder/src/Config/MBConfig.php
Line 44 in a8f1ca0
I'm guessing that was copy / pasted from the packageDirectories
method, where it makes a lot more sense.
Context
I'm trying to add some pattern based excludes to the config. I'm using this tool to manage a WordPress site made up of a bunch of plugins and themes where each one is a composer package, and not being able to exclude composer.json
files found in wp-content
sub-directories is a huge pain point.
For those not familiar with the code, that config option goes straight into Symfony file finder ->exclude(...)
which is meant to accept patterns. So again, I don't understand why we're limiting ourselves here.
monorepo-builder/src/Finder/PackageComposerFinder.php
Lines 77 to 79 in a8f1ca0
I commented out the check in my local and it doesn't seem to have any negative side effects.
P.S. Thanks for this awesome tool, it's been very helpful for us in trying to better organize our code.
Thank for your issue, I agree your point. Can you turn it to PR?