From fa32955638d61ed1114866339b00223412f4b582 Mon Sep 17 00:00:00 2001 From: Louis DeScioli Date: Tue, 15 Mar 2022 10:57:38 -0400 Subject: [PATCH] fix: pass through cwd flag in getBuildOptions (#4455) --- src/lib/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/build.js b/src/lib/build.js index 27745d9fb34..096d8485a36 100644 --- a/src/lib/build.js +++ b/src/lib/build.js @@ -18,7 +18,7 @@ const netlifyBuildPromise = import('@netlify/build') * @param {import('commander').OptionValues} config.options * @returns {BuildConfig} */ -const getBuildOptions = ({ cachedConfig, options: { context, debug, dry, json, offline, silent }, token }) => ({ +const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, json, offline, silent }, token }) => ({ cachedConfig, token, dry, @@ -29,6 +29,7 @@ const getBuildOptions = ({ cachedConfig, options: { context, debug, dry, json, o // buffer = true will not stream output buffer: json || silent, offline, + cwd, featureFlags: { functionsBundlingManifest: true, },