Skip to content

Commit

Permalink
fix: pass through cwd flag in getBuildOptions (#4455)
Browse files Browse the repository at this point in the history
  • Loading branch information
lourd authored Mar 15, 2022
1 parent 27366a4 commit fa32955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
},
Expand Down

1 comment on commit fa32955

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 380 MB

Please sign in to comment.