docs(nxdev): lookup to package.json version for vercel script (#9803)

This commit is contained in:
Benjamin Cabanes 2022-04-12 10:09:41 -04:00 committed by GitHub
parent ad0002586b
commit a622ee5f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@
# Exits with 0 if the build should be skipped, and exits with 1 to continue.
APP=$1
NX_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@nrwl/workspace'])")
NX_VERSION=$(node -e "console.log(require('./package.json').version)")
# Need the workspace in order to run affected
yarn add -D @nrwl/workspace@$NX_VERSION --prefer-offline