Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ __pycache__
.next
.turbo/
.cursorrules
.corepack
5 changes: 1 addition & 4 deletions apps/api-reference/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"ignoreCommand": "../../vercel-ignore.sh"
}
5 changes: 1 addition & 4 deletions apps/entropy-debugger/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"ignoreCommand": "../../vercel-ignore.sh"
}
5 changes: 1 addition & 4 deletions apps/insights/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"ignoreCommand": "../../vercel-ignore.sh"
}
5 changes: 1 addition & 4 deletions apps/staking/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"ignoreCommand": "../../vercel-ignore.sh"
}
5 changes: 1 addition & 4 deletions governance/xc_admin/packages/xc_admin_frontend/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"ignoreCommand": "../../../../vercel-ignore.sh"
}
7 changes: 2 additions & 5 deletions packages/component-library/vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"buildCommand": "turbo --filter @pythnetwork/component-library build:storybook",
"ignoreCommand": "pnpm dlx turbo-ignore --fallback=HEAD^",
"ignoreCommand": "../../vercel-ignore.sh",
"framework": null,
"outputDirectory": "storybook-static",
"env": {
"ENABLE_EXPERIMENTAL_COREPACK": "1"
}
"outputDirectory": "storybook-static"
}
14 changes: 14 additions & 0 deletions vercel-ignore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh

# Vercel currently does not properly enable corepack when running the
# ignoreCommand. This was recommended as a stopgap by Vercel support until they
# fix that issue.
COREPACK_ROOT="$PWD/.corepack"
COREPACK_SHIM="$COREPACK_ROOT/shim"
export COREPACK_HOME="$COREPACK_ROOT/home"
export PATH="$COREPACK_SHIM:$PATH"
mkdir -p "$COREPACK_HOME"
mkdir -p "$COREPACK_SHIM"
corepack enable --install-directory "$COREPACK_SHIM"

exec pnpm dlx turbo-ignore --fallback=HEAD^