-
Notifications
You must be signed in to change notification settings - Fork 30.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
tools: fix update-eslint.sh #14850
tools: fix update-eslint.sh #14850
Conversation
It doesn't fail for me |
Fail vs. not fail perhaps dependent on whether or not you are using a recent |
@MylesBorins can you post the error that you get? |
That is certainly incorrect as the empty directory is created just a few lines above. If anything, the script assumes the directory is empty. I just tested with a few npm versions going back to 2.15.11 and can't replicate a problem. Definitely interested in seeing the error you're getting... |
npm's default behavior is to search up the file system for a package.json, I probably have an erroneous package.json somewhere on the filesystem. I think it is good to be explicit here |
Confirmed! |
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.
LGTM.
Does it help to run the command with |
I don't believe that will make a difference
|
207f82a
to
11146a3
Compare
The script currently assumes that there is a package.json in `eslint-tmp`. If there isn't the logic of the script fails. This adds a call to `npm init --yes` ensuring there is a package.json and that the script can do it's thing. PR-URL: nodejs#14850 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
11146a3
to
fb73256
Compare
landed in fb73256 |
The script currently assumes that there is a package.json in `eslint-tmp`. If there isn't the logic of the script fails. This adds a call to `npm init --yes` ensuring there is a package.json and that the script can do it's thing. PR-URL: #14850 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
The script currently assumes that there is a package.json in `eslint-tmp`. If there isn't the logic of the script fails. This adds a call to `npm init --yes` ensuring there is a package.json and that the script can do it's thing. PR-URL: #14850 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
The script currently assumes that there is a package.json in `eslint-tmp`. If there isn't the logic of the script fails. This adds a call to `npm init --yes` ensuring there is a package.json and that the script can do it's thing. PR-URL: #14850 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
The script currently assumes that there is a package.json in
eslint-tmp
. If there isn't the logic of the script fails.This adds a call to
npm init --yes
ensuring there is a package.jsonand that the script can do it's thing.