Skip to content

Commit 6fc6a62

Browse files
marco-ippolitorichardlau
authored andcommitted
tools: fix current version check
PR-URL: #50951 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent be3205a commit 6fc6a62

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)