-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add support for time-traveling installs. #90
Conversation
doc/misc/npm-config.md
Outdated
@@ -350,6 +350,21 @@ commands, eg `dist-tags`, `owner`, etc. | |||
|
|||
The command to run for `npm edit` or `npm config edit`. | |||
|
|||
### enjoy-by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned on Twitter, this does also need a more straightforward name, especially for non-English speakers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I forgot to push the commit. I aliased it to --before
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I almost did --published-by
, but after seeing it, realized it looked like it wanted a maintainer name, not a timestamp.
lib/install.js
Outdated
@@ -703,8 +703,25 @@ Installer.prototype.cloneCurrentTreeToIdealTree = function (cb) { | |||
validate('F', arguments) | |||
log.silly('install', 'cloneCurrentTreeToIdealTree') | |||
|
|||
this.idealTree = copyTree(this.currentTree) | |||
this.idealTree.warnings = [] | |||
if (npm.config.get('enjoy-by')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does have potentially interesting interactions with lock files, which is to say, I'm not sure it does anything in the presence of a valid lock file. We should probably warn in that scenario, as otherwise we're setting up a foot gun.
just like just tried |
faa224c
to
fcdbeae
Compare
6e607fe
to
813905c
Compare
27bcbe4
to
749dd8d
Compare
50b63fc
to
49eb8e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 ⭐️ 🍏
No description provided.