Skip to content

Commit

Permalink
RFC21: bring back subset of npm_package_* environs
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 26, 2020
1 parent ed67c2b commit bb18d43
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions accepted/0021-reduce-lifecycle-script-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,18 @@ that config defaults are maintained, without blowing up the size of the
environment for lifecycle processes, or requiring access to the npm config
subsystem in every npm CLI dependency.

In addition to these, the following environment variables will be
preserved from npm v6's set, in order to provide an easier upgrade path:

* `npm_package_name`
* `npm_package_version`
* `npm_package_config_*` Each key in the `config` object will be included,
but npm will _not_ override values with a `<pkgname>:<keyname>` config
value if one exists.
* `npm_package_engines_*`
* `npm_package_main`
* `npm_package_bin_*`

## Rationale and Alternatives

Possible alternatives:
Expand Down

0 comments on commit bb18d43

Please sign in to comment.