fix: wrongly packaging child bundles on MacOS #827
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
macOS's
pkgbuild
look for valid components in sub-directories when using the--root
flag. This cause the build process to mark some files in a project to be processed bypkgbuild
and breaks the resulting CLI.On my CLI project https://github.com/IGassmann/web-img-optimizer
pkgbuild
would process Chrome which exists in the npm dependencypuppeteer
. Due to that, puppeteer wouldn't work anymore since Chrome was modified bypkgbuild
.To avoid that,
pkgbuild
needs to be passed an empty configuration file. It will then not look for valid component in the sub-directories of the project to process them, and will ship the whole directory root as it is.Here's the man page of
pkgbuild
.