Skip to content
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: update to using dmn 1.0.11 #22035

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools/update-babel-eslint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Shell script to update babel-eslint in the source tree to the latest release.

# Depends on npm and node being in $PATH.
# Depends on npm, npx, and node being in $PATH.

# This script must be be in the tools directory when it runs because it uses
# $BASH_SOURCE[0] to determine directories to work in.
Expand All @@ -15,11 +15,11 @@ npm init --yes

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

# Install dmn if it is not in path.
type -P dmn || npm install -g dmn

# Use dmn to remove some unneeded files.
dmn -f clean
npx dmn@1.0.11 -f clean
# Use removeNPMAbsolutePaths to remove unused data in package.json.
# This avoids churn as absolute paths can change from one dev to another.
npx removeNPMAbsolutePaths@1.0.4 .

cd ..
mv babel-eslint-tmp/node_modules/babel-eslint node_modules/babel-eslint
Expand Down
2 changes: 1 addition & 1 deletion tools/update-eslint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown
cd ../..

# Use dmn to remove some unneeded files.
npx dmn@1.0.10 -f clean
npx dmn@1.0.11 -f clean
# Use removeNPMAbsolutePaths to remove unused data in package.json.
# This avoids churn as absolute paths can change from one dev to another.
npx removeNPMAbsolutePaths@1.0.4 .
Expand Down