From 5468dc23546c447e205cf7b5b76d1147e6af9b74 Mon Sep 17 00:00:00 2001 From: Juri Strumpflohner Date: Mon, 30 Aug 2021 18:35:37 +0200 Subject: [PATCH] docs(nextjs): adjust script for affected deployments to Vercel (#6894) --- docs/react/guides/deploy-nextjs-to-vercel.md | 3 +++ 1 file changed, 3 insertions(+) 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