Skip to content

Commit d65b407

Browse files
committed
added vercel
1 parent 5d236c2 commit d65b407

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

vercel-ignore.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
# Vercel currently does not properly enable corepack when running the
4+
# ignoreCommand. This was recommended as a stopgap by Vercel support until they
5+
# fix that issue.
6+
COREPACK_ROOT="$PWD/.corepack"
7+
COREPACK_SHIM="$COREPACK_ROOT/shim"
8+
export COREPACK_HOME="$COREPACK_ROOT/home"
9+
export PATH="$COREPACK_SHIM:$PATH"
10+
mkdir -p "$COREPACK_HOME"
11+
mkdir -p "$COREPACK_SHIM"
12+
corepack enable --install-directory "$COREPACK_SHIM"
13+
14+
exec pnpm dlx turbo-ignore --fallback=HEAD^

0 commit comments

Comments
 (0)