@netlify/config 20.2.0 → 29.4.1-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ import { serializeToml } from '../utils/toml.js';
10
10
  import { applyMutations } from './apply.js';
11
11
  // Persist configuration changes to `netlify.toml`.
12
12
  // If `netlify.toml` does not exist, creates it. Otherwise, merges the changes.
13
- export const updateConfig = async function (configMutations, { buildDir, configPath, headersPath, redirectsPath, context, branch, logs, featureFlags }) {
13
+ export const updateConfig = async function (configMutations, { buildDir, configPath, headersPath, outputConfigPath = configPath, redirectsPath, context, branch, logs, featureFlags, }) {
14
14
  if (configMutations.length === 0) {
15
15
  return;
16
16
  }
@@ -22,7 +22,7 @@ export const updateConfig = async function (configMutations, { buildDir, configP
22
22
  const simplifiedConfig = simplifyConfig(finalConfig);
23
23
  await backupConfig({ buildDir, configPath, headersPath, redirectsPath });
24
24
  await Promise.all([
25
- saveConfig(configPath, simplifiedConfig),
25
+ saveConfig(outputConfigPath, simplifiedConfig),
26
26
  deleteSideFile(headersPath),
27
27
  deleteSideFile(redirectsPath),
28
28
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/config",
3
- "version": "20.2.0",
3
+ "version": "29.4.1-rc",
4
4
  "description": "Netlify config module",
5
5
  "type": "module",
6
6
  "exports": "./lib/main.js",
@@ -94,6 +94,5 @@
94
94
  },
95
95
  "engines": {
96
96
  "node": "^14.16.0 || >=16.0.0"
97
- },
98
- "gitHead": "48bc6057d30ef3c5173629d4345f804271c0a426"
97
+ }
99
98
  }