diff options
author | Kat Marchán <kzm@zkat.tech> | 2019-02-19 20:19:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 20:19:47 +0300 |
commit | 2ba3a0f6721f6d5a16775aebce6012965634fc7c (patch) | |
tree | b3f3f7b74fd51401fa698432ab2dc8280c232b02 /doc | |
parent | baaedbc6e2fc370d73b35e7721794719115507cc (diff) |
install: add --before date support for time traveling~ (#90)
PR-URL: https://github.com/npm/cli/pull/90
Credit: @zkat
Reviewed-By: @aeschright
Reviewed-By: @iarna
Diffstat (limited to 'doc')
-rw-r--r-- | doc/misc/npm-config.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/misc/npm-config.md b/doc/misc/npm-config.md index 8f04a7601..88d30b62c 100644 --- a/doc/misc/npm-config.md +++ b/doc/misc/npm-config.md @@ -179,6 +179,22 @@ a non-zero exit code. What authentication strategy to use with `adduser`/`login`. +### before + +* Alias: enjoy-by +* Default: null +* Type: Date + +If passed to `npm install`, will rebuild the npm tree such that only versions +that were available **on or before** the `--before` time get installed. +If there's no versions available for the current set of direct dependencies, the +command will error. + +If the requested version is a `dist-tag` and the given tag does not pass the +`--before` filter, the most recent version less than or equal to that tag will +be used. For example, `foo@latest` might install `foo@1.2` even though `latest` +is `2.0`. + ### bin-links * Default: `true` |