GeezerVison is showing github.com — tools: update to using dmn 1.0.11 · nodejs/node@5a4abba
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: tools/update-babel-eslint.sh +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
2 | 2 |
|
3 | 3 | # Shell script to update babel-eslint in the source tree to the latest release. |
4 | 4 |
|
5 | | -# Depends on npm and node being in $PATH. |
| 5 | +# Depends on npm, npx, and node being in $PATH. |
6 | 6 |
|
7 | 7 | # This script must be be in the tools directory when it runs because it uses |
8 | 8 | # $BASH_SOURCE[0] to determine directories to work in. |
@@ -15,11 +15,11 @@ npm init --yes |
15 | 15 |
|
16 | 16 | npm install --global-style --no-bin-links --production --no-package-lock babel-eslint@latest |
17 | 17 |
|
18 | | -# Install dmn if it is not in path. |
19 | | -type -P dmn || npm install -g dmn |
20 | | - |
21 | 18 | # Use dmn to remove some unneeded files. |
22 | | -dmn -f clean |
| 19 | + |
| 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 | + |
23 | 23 |
|
24 | 24 | cd .. |
25 | 25 | mv babel-eslint-tmp/node_modules/babel-eslint node_modules/babel-eslint |
|
Collapse file
Copy file name to clipboardExpand all lines: tools/update-eslint.sh +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,7 +20,7 @@ npm install --no-bin-links --production --no-package-lock eslint-plugin-markdown |
20 | 20 | cd ../.. |
21 | 21 |
|
22 | 22 | # Use dmn to remove some unneeded files. |
23 | | - |
| 23 | + |
24 | 24 | # Use removeNPMAbsolutePaths to remove unused data in package.json. |
25 | 25 | # This avoids churn as absolute paths can change from one dev to another. |
26 | 26 | |
|