You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When you run yarn/npm info <package>, the returned package metadata has a gitHead field which points to the git HEAD SHA1 at the time npm publish was run. When you run npm install <package>, you will also find that field in the package.json of the installed package. When you run yarn add <package>, that field is missing from the package.json.
This is a very useful field (see reasoning here: npm/read-package-json#7) and the absence means that yarn users instead need to do an expensive API call with yarn info for every single package if they want to find this information out.
This is not one of npm's underscore-prefixed fields that only get added locally on installation. It gets added to the package data on publish.
If the current behavior is a bug, please provide the steps to reproduce.
Run yarn add <package>
See node_modules/<package>/package.json does not contain gitHead
What is the expected behavior?
See node_modules/<package>/package.json contains gitHead
Please mention your node.js, yarn and operating system version.
yarn v0.21.3
node v7.7.0
macOS
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When you run
yarn/npm info <package>
, the returned package metadata has agitHead
field which points to the git HEAD SHA1 at the timenpm publish
was run. When you runnpm install <package>
, you will also find that field in the package.json of the installed package. When you runyarn add <package>
, that field is missing from the package.json.This is a very useful field (see reasoning here: npm/read-package-json#7) and the absence means that yarn users instead need to do an expensive API call with
yarn info
for every single package if they want to find this information out.This is not one of npm's underscore-prefixed fields that only get added locally on installation. It gets added to the package data on publish.
If the current behavior is a bug, please provide the steps to reproduce.
yarn add <package>
node_modules/<package>/package.json
does not containgitHead
What is the expected behavior?
node_modules/<package>/package.json
containsgitHead
Please mention your node.js, yarn and operating system version.
yarn v0.21.3
node v7.7.0
macOS
The text was updated successfully, but these errors were encountered: