Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use endsWith to match modules to exclude from the snapshot #15945
Description of the Change
There's a couple of common packages that need to be excluded from the snapshot. Rather than listing each instance (since they may or may not be deduped), match using
Why Should This Be In Core?
Less code maintenance if a package is un-deduped or a new dependency of that package is added in a different module. Also fixes an intermittent build issue for me where an additional fs-extra shows up in github/node_modules/nsfw/node_modules/fs-extra.
/cc @as-cii just wanted to make sure this is safe to do.