@netlify/build 26.1.4 → 26.1.5
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/package.json +2 -2
- package/src/core/flags.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "26.1.
|
|
3
|
+
"version": "26.1.5",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"ts-node": "^10.4.0",
|
|
106
106
|
"update-notifier": "^5.0.0",
|
|
107
107
|
"uuid": "^8.0.0",
|
|
108
|
-
"yargs": "^
|
|
108
|
+
"yargs": "^17.3.1"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@netlify/nock-udp": "^1.0.0",
|
package/src/core/flags.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* eslint eslint-comments/no-use: off, max-lines: off */
|
|
2
2
|
|
|
3
|
+
const jsonParse = function (value) {
|
|
4
|
+
return value === undefined ? undefined : JSON.parse(value)
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
// All CLI flags
|
|
4
8
|
export const FLAGS = {
|
|
5
9
|
config: {
|
|
@@ -12,7 +16,7 @@ Defaults to any netlify.toml in the git repository root directory or the base di
|
|
|
12
16
|
describe: `JSON configuration object containing default values.
|
|
13
17
|
Each configuration default value is used unless overriden through the main configuration file.
|
|
14
18
|
Default: none.`,
|
|
15
|
-
coerce:
|
|
19
|
+
coerce: jsonParse,
|
|
16
20
|
hidden: true,
|
|
17
21
|
},
|
|
18
22
|
cachedConfig: {
|
|
@@ -21,7 +25,7 @@ Default: none.`,
|
|
|
21
25
|
or when using @netlify/config programmatically.
|
|
22
26
|
This is done as a performance optimization to cache the configuration loading logic.
|
|
23
27
|
Default: none.`,
|
|
24
|
-
coerce:
|
|
28
|
+
coerce: jsonParse,
|
|
25
29
|
hidden: true,
|
|
26
30
|
},
|
|
27
31
|
cachedConfigPath: {
|