docs(core): remove ignore script in favor of nx-ignore bin (#10504)

This commit is contained in:
Jack Hsu 2022-05-28 12:52:11 -04:00 committed by GitHub
parent 7bfceb6d6d
commit 3e45bafffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 24 deletions

View File

@ -3,7 +3,6 @@
"implicitDependencies": {
"package.json": "*",
".eslintrc.json": "*",
"scripts/vercel/*": ["nx-dev"],
".circleci/config.yml": "*",
"tools/eslint-rules/**/*": "*"
},

View File

@ -1,23 +0,0 @@
#!/bin/bash
# This script is used in Vercel to determine whether to continue the build or not for nx-dev.
# Exits with 0 if the build should be skipped, and exits with 1 to continue.
APP=$1
# Need the workspace in order to run affected
yarn add -D nx@latest --prefer-offline
# We don't have a good way to check from base due to Vercel's shallow clone
# TODO: Fix this once we figure out a better solution
npx nx affected:apps --plain --base HEAD~1 --head HEAD | grep $APP -q
STATUS=$?
if [ $STATUS -eq 1 ]; then
echo "🛑 - Build cancelled"
exit 0
elif [ $STATUS -eq 0 ]; then
echo "✅ - Build can proceed"
exit 1
fi