Skip to content

Commit fafbd1c

Browse 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

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/tools.yml

+2-3
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

tools/update-eslint.sh tools/dep_updaters/update-eslint.sh

+3-3
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)