From 8c537ad6787b23c683eeb91dbea2fc48c37a3c4b Mon Sep 17 00:00:00 2001 From: Lukas Holzer Date: Mon, 18 Sep 2023 10:17:38 +0100 Subject: [PATCH] fix: fixes an issue where the provided --dir flag was not used (#6001) Fixes #6000 --- src/commands/deploy/deploy.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/deploy/deploy.mjs b/src/commands/deploy/deploy.mjs index 778c3fa2dc9..58267aea3c8 100644 --- a/src/commands/deploy/deploy.mjs +++ b/src/commands/deploy/deploy.mjs @@ -79,7 +79,7 @@ const getDeployFolder = async ({ command, config, options, site, siteData }) => // - in mono repositories this will be the root of the jsWorkspace if (options.dir) { deployFolder = command.workspacePackage - ? resolve(command.jsWorkspaceRoot || site.root) + ? resolve(command.jsWorkspaceRoot || site.root, options.dir) : resolve(command.workingDir, options.dir) } else if (config?.build?.publish) { deployFolder = resolve(site.root, config.build.publish)