From 5d641c38936f57b64c8424bcfaf0e88989d23e3f Mon Sep 17 00:00:00 2001 From: Jeremy Zongker Date: Mon, 17 Aug 2026 03:59:57 +0000 Subject: [PATCH] Build workspace packages after their devDependencies. CI topological build compiled apihelper before helpers/dist existed; --topological-dev honors the helpers devDependency, and the S3 allowlist is wrapped to satisfy array-bracket-newline. --- apihelper/src/helpers/S3UploadPolicy.ts | 11 ++++++++++- package.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apihelper/src/helpers/S3UploadPolicy.ts b/apihelper/src/helpers/S3UploadPolicy.ts index 293f49b..a046fc3 100644 --- a/apihelper/src/helpers/S3UploadPolicy.ts +++ b/apihelper/src/helpers/S3UploadPolicy.ts @@ -1,4 +1,13 @@ -export const PUBLIC_CONTENT_TYPE_PREFIXES = ["image/", "video/", "audio/", "application/pdf", "font/", "application/font-", "application/vnd.ms-fontobject", "text/css"] as const; +export const PUBLIC_CONTENT_TYPE_PREFIXES = [ + "image/", + "video/", + "audio/", + "application/pdf", + "font/", + "application/font-", + "application/vnd.ms-fontobject", + "text/css" +] as const; export const MAX_UPLOAD_BYTES = 512 * 1024 * 1024; export const DEFAULT_CONTENT_TYPE = "application/octet-stream"; diff --git a/package.json b/package.json index aa0cbbd..19203e7 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ ], "scripts": { "preinstall": "node -e \"if(!(process.env.npm_config_user_agent||'').startsWith('yarn')){console.error('\\n[Packages] This repo uses Yarn (Berry). Run \\'yarn install\\' instead of npm/pnpm.\\n');process.exit(1)}\"", - "build": "yarn workspaces foreach --all --topological run build", + "build": "yarn workspaces foreach --all --topological-dev run build", "test": "yarn workspaces foreach --all run test", "lint": "yarn workspaces foreach --all run lint:check", "changeset": "changeset",