Przeglądaj źródła

dev: remove Vercel's `ignoreCommand`, using skip deployments instead

Vercel has released a new [skip
deployments](https://vercel.com/docs/monorepos#skipping-unaffected-projects)
feature which should be more stable than using the `ignoreCommand` feature.
I've recently set up the skip deployments feature on all our apps; this PR
removes the old `ignoreCommand` config from them
Connor Prussin 6 miesięcy temu
rodzic
commit
b85d7c8b4b

+ 0 - 1
apps/api-reference/vercel.json

@@ -1,5 +1,4 @@
 {
   "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../vercel-ignore.sh",
   "buildCommand": "turbo run build:vercel --filter @pythnetwork/api-reference"
 }

+ 1 - 2
apps/entropy-debugger/vercel.json

@@ -1,4 +1,3 @@
 {
-  "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../vercel-ignore.sh"
+  "$schema": "https://openapi.vercel.sh/vercel.json"
 }

+ 0 - 1
apps/entropy-explorer/vercel.json

@@ -1,5 +1,4 @@
 {
   "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../vercel-ignore.sh",
   "buildCommand": "turbo run build:vercel --filter @pythnetwork/entropy-explorer"
 }

+ 0 - 1
apps/insights/vercel.json

@@ -1,5 +1,4 @@
 {
   "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../vercel-ignore.sh",
   "buildCommand": "turbo run build:vercel --filter @pythnetwork/insights"
 }

+ 0 - 1
apps/staking/vercel.json

@@ -1,5 +1,4 @@
 {
   "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../vercel-ignore.sh",
   "buildCommand": "turbo run build:vercel --filter @pythnetwork/staking"
 }

+ 1 - 2
governance/xc_admin/packages/xc_admin_frontend/vercel.json

@@ -1,4 +1,3 @@
 {
-  "$schema": "https://openapi.vercel.sh/vercel.json",
-  "ignoreCommand": "../../../../vercel-ignore.sh"
+  "$schema": "https://openapi.vercel.sh/vercel.json"
 }

+ 0 - 1
packages/component-library/vercel.json

@@ -1,7 +1,6 @@
 {
   "$schema": "https://openapi.vercel.sh/vercel.json",
   "buildCommand": "turbo --filter @pythnetwork/component-library build:storybook",
-  "ignoreCommand": "../../vercel-ignore.sh",
   "framework": null,
   "outputDirectory": "storybook-static"
 }

+ 0 - 14
vercel-ignore.sh

@@ -1,14 +0,0 @@
-#!/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^