Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Feature: Glob patterns to affect package.<PKG_NAME>.trace #21

Open
2 tasks
ryan-roemer opened this issue Nov 17, 2020 · 0 comments
Open
2 tasks

Feature: Glob patterns to affect package.<PKG_NAME>.trace #21

ryan-roemer opened this issue Nov 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@ryan-roemer
Copy link
Member

In Jetpack, package.include|exclude can be used to later exclude files found during tracing. In trace-pkg .trace is completely separate from .include and thus .include globs can't affect/remove files found during tracing.

Task:

  • Consider either having .include do glob matching of some sort on .trace or having a .traceInclude or something that just applies patterns over .trace results
  • Update docs

Docs sections to update:

This would have otherwise been ported over from Jetpack for the "handling collapsed files" section:

  • Use packages.<PKG_NAME>.include: You can manually adjust packaging by excluding files that would be collapsed and then allowing the other ones to come into play. In the two lodashs example above, a negative package.include for !node_modules/lodash/** would solve our problem in a semver-acceptable way by leaving only root-level lodash.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant