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] npm install modifies the package.json funding field #1964
Comments
It also modifies the {
"name": "foo",
- "bin": "bar.js"
+ "bin": {
+ "foo": "bar.js"
+ }
} |
I have a similar issue with using relative paths in the "bin" field.
"bin": {
"foo": "./bin/bar.js"
},
"bin": {
- "foo": "./bin/bar.js"
+ "foo": "bin/bar.js"
}, |
If anything, it should include the |
@ruyadorno Any chance you would be able to look into this? Anyone using my |
Currently, bin and funding values from the root package.json file are being normalized when reifying. This changes it to avoid overriding bin/funding shorthands and always use the original values instead of their normalized results when writing to the root package.json file. Fix: npm/cli#1964
Currently, bin and funding values from the root package.json file are being normalized when reifying. This changes it to avoid overriding bin/funding shorthands and always use the original values instead of their normalized results when writing to the root package.json file. Fix: npm/cli#1964
Currently, bin and funding values from the root package.json file are being normalized when reifying. This changes it to avoid overriding bin/funding shorthands and always use the original values instead of their normalized results when writing to the root package.json file. Fix: npm/cli#1964
Currently, bin and funding values from the root package.json file are being normalized when reifying. This changes it to avoid overriding bin/funding shorthands and always use the original values instead of their normalized results when writing to the root package.json file. Fix: npm/cli#1964
Fixed in |
Current Behavior:
Running
npm install
with npm v7 undesirably modifies thepackage.json
funding field from a URL string, to an object with aurl
property.Expected Behavior:
Running
npm install
should not modify a valid format for thepackage.json
funding field.Steps To Reproduce:
package.json
, add afunding
field with a URL string as a value.npm install
.Notice the resulting change to
package.json
, e.g:Environment:
The text was updated successfully, but these errors were encountered: