@netlify/config 20.16.0 → 20.17.0
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.
- package/lib/main.js +4 -1
- package/package.json +2 -2
package/lib/main.js
CHANGED
|
@@ -28,7 +28,10 @@ export const resolveConfig = async function (opts) {
|
|
|
28
28
|
// `api` is not JSON-serializable, so we cannot cache it inside `cachedConfig`
|
|
29
29
|
const api = getApiClient({ token, offline, host, scheme, pathPrefix, testOpts });
|
|
30
30
|
const parsedCachedConfig = await getCachedConfig({ cachedConfig, cachedConfigPath, token, api });
|
|
31
|
-
|
|
31
|
+
// If there is a cached config, use it. The exception is when a default config,
|
|
32
|
+
// which consumers like the CLI can set, is present. In those cases, let the
|
|
33
|
+
// flow continue so that the default config is parsed and used.
|
|
34
|
+
if (parsedCachedConfig !== undefined && opts.defaultConfig === undefined) {
|
|
32
35
|
return parsedCachedConfig;
|
|
33
36
|
}
|
|
34
37
|
const { config: configOpt, defaultConfig, inlineConfig, configMutations, cwd, context, repositoryRoot, base, branch, siteId, accountId, deployId, buildId, baseRelDir, mode, debug, logs, featureFlags, } = await normalizeOpts(optsA);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.17.0",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"engines": {
|
|
96
96
|
"node": "^14.16.0 || >=16.0.0"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "0f0dfefdc7df94b4083dbb827751d015cb2c8c88"
|
|
99
99
|
}
|