Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fafbd1c

Browse filesBrowse files
lpincajuanarbol
authored andcommitted
tools: move update-eslint.sh to dep_updaters/
Move the `update-eslint.sh` script to the `dep_updaters/` directory. PR-URL: #46088 Refs: https://github.com/nodejs/node/actions/runs/3814364920/jobs/6488613583#step:3:64 Reviewed-By: Ruy Adorno <ruyadorno@google.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 609df01 commit fafbd1c
Copy full SHA for fafbd1c

File tree

Expand file treeCollapse file tree

2 files changed

+5
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-6
lines changed
Open diff view settings
Collapse file

‎.github/workflows/tools.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/tools.yml
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ jobs:
2121
subsystem: tools
2222
label: tools
2323
run: |
24-
cd tools
2524
NEW_VERSION=$(npm view eslint dist-tags.latest)
26-
CURRENT_VERSION=$(node -p "require('./node_modules/eslint/package.json').version")
25+
CURRENT_VERSION=$(node -p "require('./tools/node_modules/eslint/package.json').version")
2726
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
2827
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
29-
./update-eslint.sh
28+
./tools/dep_updaters/update-eslint.sh
3029
fi
3130
- id: corepack
3231
subsystem: deps
Collapse file
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
set -ex
99

1010
cd "$( dirname "$0" )" || exit
11-
rm -rf node_modules/eslint
11+
rm -rf ../node_modules/eslint
1212
(
1313
rm -rf eslint-tmp
1414
mkdir eslint-tmp
1515
cd eslint-tmp || exit
1616

17-
ROOT="$PWD/../.."
17+
ROOT="$PWD/../../.."
1818
[ -z "$NODE" ] && NODE="$ROOT/out/Release/node"
1919
[ -x "$NODE" ] || NODE=$(command -v node)
2020
NPM="$ROOT/deps/npm/bin/npm-cli.js"
@@ -61,5 +61,5 @@ rm -rf node_modules/eslint
6161
find node_modules -name 'README*' -exec rm {} \;
6262
)
6363

64-
mv eslint-tmp/node_modules/eslint node_modules/eslint
64+
mv eslint-tmp/node_modules/eslint ../node_modules/eslint
6565
rm -rf eslint-tmp/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.