Skip to content

Commit

Permalink
docs(nextjs): adjust script for affected deployments to Vercel (nrwl#…
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr authored and ManojBahuguna committed Sep 16, 2021
1 parent ee2c6fa commit 33c0b16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/react/guides/deploy-nextjs-to-vercel.md
Expand Up @@ -42,11 +42,14 @@ We are going to achieve this by creating a shell script in our Nx workspace that

# Name of the app to check. Change this to your application name!
APP=tuskdesk

# Determine version of Nx installed
NX_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@nrwl/workspace'])")
TS_VERSION=$(node -e "console.log(require('./package.json').devDependencies['typescript'])")

# Install @nrwl/workspace in order to run the affected command
npm install -D @nrwl/workspace@$NX_VERSION --prefer-offline
npm install -D typescript@$TS_VERSION --prefer-offline

# Run the affected command, comparing latest commit to the one before that
npx nx affected:apps --plain --base HEAD~1 --head HEAD | grep $APP -q
Expand Down

0 comments on commit 33c0b16

Please sign in to comment.