@netlify/build 26.1.4 → 26.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.2.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -63,8 +63,9 @@
|
|
|
63
63
|
"@netlify/plugin-edge-handlers": "^3.0.4",
|
|
64
64
|
"@netlify/plugins-list": "^6.3.0",
|
|
65
65
|
"@netlify/run-utils": "^4.0.0",
|
|
66
|
-
"@netlify/zip-it-and-ship-it": "^5.
|
|
66
|
+
"@netlify/zip-it-and-ship-it": "^5.5.0",
|
|
67
67
|
"@sindresorhus/slugify": "^1.1.0",
|
|
68
|
+
"@types/node": "^16.0.0",
|
|
68
69
|
"ansi-escapes": "^4.3.2",
|
|
69
70
|
"chalk": "^4.1.2",
|
|
70
71
|
"clean-stack": "^3.0.1",
|
|
@@ -103,9 +104,10 @@
|
|
|
103
104
|
"supports-color": "^8.0.0",
|
|
104
105
|
"tmp-promise": "^3.0.2",
|
|
105
106
|
"ts-node": "^10.4.0",
|
|
107
|
+
"typescript": "^4.5.4",
|
|
106
108
|
"update-notifier": "^5.0.0",
|
|
107
109
|
"uuid": "^8.0.0",
|
|
108
|
-
"yargs": "^
|
|
110
|
+
"yargs": "^17.3.1"
|
|
109
111
|
},
|
|
110
112
|
"devDependencies": {
|
|
111
113
|
"@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: {
|
|
@@ -24,6 +24,7 @@ const normalizeFunctionConfig = ({ buildDir, functionConfig = {}, isRunningLocal
|
|
|
24
24
|
includedFiles: functionConfig.included_files,
|
|
25
25
|
includedFilesBasePath: buildDir,
|
|
26
26
|
ignoredNodeModules: functionConfig.ignored_node_modules,
|
|
27
|
+
schedule: functionConfig.schedule,
|
|
27
28
|
|
|
28
29
|
// When the user selects esbuild as the Node bundler, we still want to use
|
|
29
30
|
// the legacy ZISI bundler as a fallback. Rather than asking the user to
|
|
@@ -37,7 +38,9 @@ const normalizeFunctionConfig = ({ buildDir, functionConfig = {}, isRunningLocal
|
|
|
37
38
|
// build process.
|
|
38
39
|
rustTargetDirectory: isRunningLocally ? undefined : resolve(buildDir, '.netlify', 'rust-functions-cache', '[name]'),
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
// Go functions should be zipped only when building locally. When running in
|
|
42
|
+
// buildbot, the Go API client will handle the zipping.
|
|
43
|
+
zipGo: isRunningLocally ? true : undefined,
|
|
41
44
|
})
|
|
42
45
|
|
|
43
46
|
const getZisiParameters = ({
|