Skip to content
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

Scripts documentation incorrectly states all package.json fields are provided via the environment #1178

Open
mistydemeo opened this issue Jun 27, 2024 · 0 comments

Comments

@mistydemeo
Copy link

According to the scripts documentation, all of the fields in package.json are exposed to scripts via environment variables. However, this isn't true: they were removed in 2021 in npm 7 without replacement. I eventually had to track down the 7.0.0-rc0 changelog to find out what changed and the motivation; it would be great if the docs accurately reflected the current state of what's available for scripts.

There are a few issues about this in the npm repo, a couple of which are still open and mention that the docs are out of date:
npm/cli#3022
npm/cli#2452

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

No branches or pull requests

1 participant