From b2e6388d141142f1a06e1d32181b0ed22a1ad128 Mon Sep 17 00:00:00 2001 From: Iulian-Constantin Marcu Date: Mon, 24 Jun 2024 13:16:18 +0100 Subject: [PATCH] feat(vercel): add archive option for deploy executor --- packages/vercel/src/executors/deploy/deploy.impl.ts | 2 ++ packages/vercel/src/executors/deploy/schema.json | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/packages/vercel/src/executors/deploy/deploy.impl.ts b/packages/vercel/src/executors/deploy/deploy.impl.ts index 64bd4d3b..8a897f35 100644 --- a/packages/vercel/src/executors/deploy/deploy.impl.ts +++ b/packages/vercel/src/executors/deploy/deploy.impl.ts @@ -11,6 +11,7 @@ import { vercelToken } from '../../utils/vercel-token' export interface DeployOptions { buildTarget?: string regions?: string + archive?: 'tgz' } export async function deployExecutor( @@ -51,6 +52,7 @@ export async function deployExecutor( context.configurationName === 'production' && '--prod', vercelToken && `--token=${vercelToken}`, options.regions && `--regions=${options.regions}`, + options.archive && `--archive=${options.archive}`, USE_VERBOSE_LOGGING && '--debug' ]), { diff --git a/packages/vercel/src/executors/deploy/schema.json b/packages/vercel/src/executors/deploy/schema.json index 3d6afaea..228912a2 100644 --- a/packages/vercel/src/executors/deploy/schema.json +++ b/packages/vercel/src/executors/deploy/schema.json @@ -9,6 +9,18 @@ "regions": { "type": "string", "description": "Regions to deploy to" + }, + "buildTarget": { + "type": "string", + "description": "Build target to deploy" + }, + "archive": { + "type": "string", + "description": "Type of archive to use when uploading the build", + "enum": ["tgz"], + "$default": "atom", + "x-prompt": "Archive type", + "x-display": "radio" } } }