Skip to content

Conversation

@danymarques
Copy link
Contributor

Add an "install" script to "override" npm behavior of adding a "node-gyp rebuild" install script on the fly when publishing.

.DS_Store Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you remove the .DS_Store files and i can give this a merge

@YOU54F
Copy link
Member

YOU54F commented Mar 13, 2024

thanks for the change dude and the investigation. it would be nice to add in the additional context to the pr for posterity

Add an "install" script in order to "override" npm behavior of adding a
"node-gyp rebuild" install script on the fly when publishing
@YOU54F YOU54F merged commit eabc89f into pact-foundation:master Mar 13, 2024
@danymarques
Copy link
Contributor Author

The purpose of this change is to prevent npm from adding an "install" script with the value "node-gyp rebuild". This script is added on the fly on the manifest when** the "npm publish" command is executed. This script is not visible in the package.json file published in the tarball. Some registries use the manifest during installation (e.g. Sonatype Nexus), while other registries replace the manifest with the real package.json in order to mitigate the "manifest confusion" vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants