diff --git a/docs/react/guides/deploy-nextjs-to-vercel.md b/docs/react/guides/deploy-nextjs-to-vercel.md index b5e571cd160b3c..1cc28f6edcef91 100644 --- a/docs/react/guides/deploy-nextjs-to-vercel.md +++ b/docs/react/guides/deploy-nextjs-to-vercel.md @@ -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