Skip to content

Commit 8a6feab

Browse files
marco-ippolitopull[bot]
authored andcommitted
tools: fix current version check
PR-URL: #50951 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1589665 commit 8a6feab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tools/dep_updaters/update-acorn-walk.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DEPS_DIR="$BASE_DIR/deps"
1717
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1818

1919
NEW_VERSION=$("$NODE" "$NPM" view acorn-walk dist-tags.latest)
20-
CURRENT_VERSION=$("$NODE" "$NPM" --prefix './deps/acorn/acorn-walk/' pkg get version)
20+
CURRENT_VERSION=$("$NODE" -p "require('./deps/acorn/acorn-walk/package.json').version")
2121

2222
# This function exit with 0 if new version and current version are the same
2323
compare_dependency_version "acorn-walk" "$NEW_VERSION" "$CURRENT_VERSION"

tools/dep_updaters/update-acorn.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DEPS_DIR="$BASE_DIR/deps"
1717
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1818

1919
NEW_VERSION=$("$NODE" "$NPM" view acorn dist-tags.latest)
20-
CURRENT_VERSION=$("$NODE" "$NPM" --prefix './deps/acorn/acorn/' pkg get version)
20+
CURRENT_VERSION=$("$NODE" -p "require('./deps/acorn/acorn/package.json').version")
2121

2222
# This function exit with 0 if new version and current version are the same
2323
compare_dependency_version "acorn" "$NEW_VERSION" "$CURRENT_VERSION"

tools/dep_updaters/update-minimatch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NPM="$DEPS_DIR/npm/bin/npm-cli.js"
1717
. "$BASE_DIR/tools/dep_updaters/utils.sh"
1818

1919
NEW_VERSION=$("$NODE" "$NPM" view minimatch dist-tags.latest)
20-
CURRENT_VERSION=$("$NODE" "$NPM" --prefix './deps/minimatch' pkg get version)
20+
CURRENT_VERSION=$("$NODE" -p "require('./deps/minimatch/package.json').version")
2121

2222
# This function exit with 0 if new version and current version are the same
2323
compare_dependency_version "minimatch" "$NEW_VERSION" "$CURRENT_VERSION"

0 commit comments

Comments
 (0)