Browse Source

ref: use node version from .volta.json (#57930)

<!-- Describe your PR here. -->
anthony sottile 1 year ago
parent
commit
d3cdf99afa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/lib.sh

+ 1 - 1
scripts/lib.sh

@@ -134,7 +134,7 @@ setup-git() {
 
 node-version-check() {
     # Checks to see if node's version matches the one specified in package.json for Volta.
-    node -pe "process.exit(Number(!(process.version == 'v' + require('./package.json').volta.node )))" ||
+    node -pe "process.exit(Number(!(process.version == 'v' + require('./.volta.json').volta.node )))" ||
         (
             echo 'Unexpected node version. Recommended to use https://github.com/volta-cli/volta'
             echo 'Run `volta install node` and `volta install yarn` to update your toolchain.'