tools: make update-eslint.sh work with npm@9#46088
tools: make update-eslint.sh work with npm@9#46088lpinca wants to merge 2 commits intonodejs:mainfrom
Conversation
| (cd node_modules/eslint && "$NODE" "$NPM" install --no-save --no-bin-links --ignore-scripts --production --omit=peer eslint-plugin-jsdoc eslint-plugin-markdown @babel/core @babel/eslint-parser @babel/plugin-syntax-import-assertions) | ||
| "$NODE" "$NPM" install \ | ||
| --ignore-scripts \ | ||
| --install-strategy=shallow \ |
There was a problem hiding this comment.
The --global-style option has been deprecated in favor of --install-strategy=shallow.
| ( | ||
| cd node_modules/eslint | ||
| "$NODE" "$NPM" uninstall \ | ||
| --install-links=false \ |
There was a problem hiding this comment.
The default value has been flipped.
| cd node_modules/eslint | ||
| "$NODE" "$NPM" install \ | ||
| --ignore-scripts \ | ||
| --install-links=false \ |
| ) | ||
| # Use dmn to remove some unneeded files. | ||
| "$NODE" "$NPM" exec -- dmn@2.2.2 -f clean | ||
| "$NODE" "$NPM" exec --package=dmn@2.2.2 --yes -- dmn -f clean |
There was a problem hiding this comment.
I'm not sure why but an ENOENT error is raised with the original command.
dc78120 to
975aeff
Compare
|
Duplicate of #45974? |
|
I did not see #45974 but it seems it does not include the |
My PR works FWIW (yes even without |
It did not work on WSL (Ubuntu 22.04). I don't have access to it at the moment, but I can test again tomorrow.
Yes, I can add a commit for it. I will do it later. |
975aeff to
e78ebf0
Compare
Make the `update-eslint.sh` script work with `npm@9`.
Move the `update-eslint.sh` script to the `dep_updaters/` directory.
e78ebf0 to
9766106
Compare
|
Landed in 6f50acd...6668c4d |
Make the `update-eslint.sh` script work with `npm@9`. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Make the `update-eslint.sh` script work with `npm@9`. PR-URL: nodejs#46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: nodejs#46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Make the `update-eslint.sh` script work with `npm@9`. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Make the `update-eslint.sh` script work with `npm@9`. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Make the `update-eslint.sh` script work with `npm@9`. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Make the
update-eslint.shscript work withnpm@9.Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64