From ef68211bae66b1ef07ef5776eebe08017a68f3c7 Mon Sep 17 00:00:00 2001 From: Dan Groshev Date: Wed, 17 Jan 2024 14:17:06 +0000 Subject: [PATCH] add bash scripts for Vercel (#2494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A neighbouring PR #2481 changes Yarn version, which fails the build on Vercel. This PR extracts the invocations Vercel uses into bash scripts, so they can be changed atomically. ### Change Type - [ ] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [x] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know --- scripts/vercel/build.sh | 4 ++++ scripts/vercel/install.sh | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 scripts/vercel/build.sh create mode 100755 scripts/vercel/install.sh diff --git a/scripts/vercel/build.sh b/scripts/vercel/build.sh new file mode 100755 index 000000000..1a3769a08 --- /dev/null +++ b/scripts/vercel/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eux + +.yarn/releases/yarn-3.5.0.cjs run -T lazy build --filter=apps/examples --filter=packages/tldraw \ No newline at end of file diff --git a/scripts/vercel/install.sh b/scripts/vercel/install.sh new file mode 100755 index 000000000..be1671bd0 --- /dev/null +++ b/scripts/vercel/install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -eux + +.yarn/releases/yarn-3.5.0.cjs \ No newline at end of file