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! |
|
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
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 --yesensuring there is a package.jsonand that the script can do it's thing.