Skip to content

Commit 5a4abba

Browse files
Trotttargos
authored andcommitted
tools: update to using dmn 1.0.11
dmn 1.0.11 is available. Update update-eslint.sh to use it. Update update-babel-eslint.sh to use it too via npx. Add removeNPMAbsolutePaths to the latter while we're at it. PR-URL: #22035 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 311ec12 commit 5a4abba

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tools/update-babel-eslint.sh

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

33
# Shell script to update babel-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.
@@ -15,11 +15,11 @@ npm init --yes
1515

1616
npm install --global-style --no-bin-links --production --no-package-lock babel-eslint@latest
1717

18-
# Install dmn if it is not in path.
19-
type -P dmn || npm install -g dmn
20-
2118
# Use dmn to remove some unneeded files.
22-
dmn -f clean
19+
npx [email protected] -f clean
20+
# Use removeNPMAbsolutePaths to remove unused data in package.json.
21+
# This avoids churn as absolute paths can change from one dev to another.
22+
2323

2424
cd ..
2525
mv babel-eslint-tmp/node_modules/babel-eslint node_modules/babel-eslint

tools/update-eslint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown
2020
cd ../..
2121

2222
# Use dmn to remove some unneeded files.
23-
npx [email protected].10 -f clean
23+
npx [email protected].11 -f clean
2424
# Use removeNPMAbsolutePaths to remove unused data in package.json.
2525
# This avoids churn as absolute paths can change from one dev to another.
2626

0 commit comments

Comments
 (0)