GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: avoid global install of dmn for lint update · nodejs/node@c26ba08

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tools
    • update-eslint.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tools/update-eslint.sh‎

Copy file name to clipboardExpand all lines: tools/update-eslint.sh
+2-5Lines changed: 2 additions & 5 deletions
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 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.