Commit f62a25e
authored
feat: add package exclusion presets, enable default exclusion list (#2652)
This allows us to define multiple "exclude presets" such as the existing `yarn_autoclean` list,
but also a less aggressive one that we can enable by default and possibly others
for different use cases or strictness.
### Changes are visible to end-users: yes
- Searched for relevant documentation and updated as needed: yes
- Breaking change (forces users to change their own code or config): yes
- Suggested release notes appear below: yes
The default package content exclusion via
`npm_exclude_package_contents(use_defaults=True)` is now done using
`npm_exclude_package_contents(presets = ["yarn_autoclean"])`. A simpler
`"basic"` preset is available and enabled by default for all packages
unless overridden by a custom
`npm_exclude_package_contents(patterns|presets)`.
### Test plan
- Covered by existing test cases
- New test cases added1 parent 22d81a7 commit f62a25e
34 files changed
Lines changed: 209 additions & 140 deletions
File tree
- e2e
- gyp_no_install_script/snapshots
- npm_translate_lock_disable_hooks/snapshots
- npm_translate_lock_exclude_package_contents
- pnpm_lockfiles
- v101/snapshots
- v90/snapshots
- js/private/test/image
- npm
- private
- test
- snapshots
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | 290 | | |
297 | 291 | | |
298 | 292 | | |
| |||
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments