Skip to content

Commit c26ba08

Browse files
Trotttargos
authored andcommitted
tools: avoid global install of dmn for lint update
When updating ESLint, use npx to run dmn rather than installing dmn globally. PR-URL: #21744 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent e030dd7 commit c26ba08

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tools/update-eslint.sh

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Shell script to update ESLint in the source tree to the latest release.
44

5-
# Depends on npm and node being in $PATH.
5+
# Depends on npm, npx, and node being in $PATH.
66

77
# This script must be be in the tools directory when it runs because it uses
88
# $BASH_SOURCE[0] to determine directories to work in.
@@ -19,11 +19,8 @@ cd node_modules/eslint
1919
npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown@next
2020
cd ../..
2121

22-
# Install dmn if it is not in path.
23-
type -P dmn || npm install -g dmn
24-
2522
# Use dmn to remove some unneeded files.
26-
dmn -f clean
23+
npx dmn -f clean
2724

2825
cd ..
2926
mv eslint-tmp/node_modules/eslint node_modules/eslint

0 commit comments

Comments
 (0)