-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG/QUESTION] since npm 9.x some files[] globs undermatch #152
Comments
Furthermore, given the following rules: "files": [
"/*.{gradle,js,md,podspec,rb}",
"/android/**/*.gradle",
"/android/app/lint.xml",
"/android/app/src",
"!/android/app/src/test",
"/android/support/src",
"/common",
"/example/_gitignore",
"/example/android/gradle*",
"/example/windows/_gitignore",
"/example/{metro,react-native}.config.js",
"/ios",
"/macos",
"/plugins",
"/schema.json",
"/scripts/*.js",
"/scripts/apply-config-plugins.mjs",
"/scripts/config-plugins/**/*.mjs",
"/windows/*.{js,props}",
"/windows/ReactTestApp"
], I am seeing it include/exclude random files (before/after):
|
@fritzy: Sorry for the random ping but do you happen to know who could take a look at this? |
It also looks like the content of
I couldn't get npm-packlist@7 to run (apparently because bin was removed), but here's the output of 6:
I still don't understand where the extra files are coming from… @lukekarrys: Maybe you have an idea of what's going on here? |
Possibly related to npm/cli#6164. And if not, still worth investigating both issues together I think. |
Is there an existing issue for this?
Current Behavior
Given this:
and a tree like this:
before the hefty refactor that happened around npm 9 (in npm-packlist), that glob would result in this:
After the refactor, this is the resulting packed tree:
meaning the glob was ignored really (since
${main}
is enforceably included).it can be solved by changing the files array to this:
which im fine with, but it does mean you've introduced a breaking change which i can't see in the changelog (could be me being blind though).
can you clarify if this is a bug or intentional? and close this if it is the latter, with an explanation if you can
Expected Behavior
glob is respected
Steps To Reproduce
N/A
Environment
The text was updated successfully, but these errors were encountered: