@netlify/config
Advanced tools
Comparing version 20.2.0 to 20.3.0
@@ -13,3 +13,3 @@ import { promises as fs } from 'fs'; | ||
// If `netlify.toml` does not exist, creates it. Otherwise, merges the changes. | ||
export const updateConfig = async function (configMutations, { buildDir, configPath, headersPath, redirectsPath, context, branch, logs, featureFlags }) { | ||
export const updateConfig = async function (configMutations, { buildDir, configPath, headersPath, outputConfigPath = configPath, redirectsPath, context, branch, logs, featureFlags, }) { | ||
if (configMutations.length === 0) { | ||
@@ -26,3 +26,3 @@ return; | ||
await Promise.all([ | ||
saveConfig(configPath, simplifiedConfig), | ||
saveConfig(outputConfigPath, simplifiedConfig), | ||
deleteSideFile(headersPath), | ||
@@ -29,0 +29,0 @@ deleteSideFile(redirectsPath), |
{ | ||
"name": "@netlify/config", | ||
"version": "20.2.0", | ||
"version": "20.3.0", | ||
"description": "Netlify config module", | ||
@@ -98,3 +98,3 @@ "type": "module", | ||
}, | ||
"gitHead": "48bc6057d30ef3c5173629d4345f804271c0a426" | ||
"gitHead": "87d6d9344ac37b4c40b70c582958347c0f7fd8eb" | ||
} |
126160