@netlify/build 18.13.4 → 18.13.8
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": "18.13.
|
|
3
|
+
"version": "18.13.8",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"main": "src/core/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@netlify/plugin-edge-handlers": "^1.11.22",
|
|
60
60
|
"@netlify/plugins-list": "^4.0.0",
|
|
61
61
|
"@netlify/run-utils": "^2.0.0",
|
|
62
|
-
"@netlify/zip-it-and-ship-it": "^4.23.
|
|
62
|
+
"@netlify/zip-it-and-ship-it": "^4.23.4",
|
|
63
63
|
"@sindresorhus/slugify": "^1.1.0",
|
|
64
64
|
"@ungap/from-entries": "^0.2.1",
|
|
65
65
|
"ansi-escapes": "^4.3.2",
|
package/src/core/config.js
CHANGED
|
@@ -162,6 +162,7 @@ const saveUpdatedConfig = async function ({
|
|
|
162
162
|
headersPath,
|
|
163
163
|
redirectsPath,
|
|
164
164
|
logs,
|
|
165
|
+
featureFlags,
|
|
165
166
|
context,
|
|
166
167
|
branch,
|
|
167
168
|
debug,
|
|
@@ -171,7 +172,16 @@ const saveUpdatedConfig = async function ({
|
|
|
171
172
|
return
|
|
172
173
|
}
|
|
173
174
|
|
|
174
|
-
await updateConfig(configMutations, {
|
|
175
|
+
await updateConfig(configMutations, {
|
|
176
|
+
buildDir,
|
|
177
|
+
configPath,
|
|
178
|
+
headersPath,
|
|
179
|
+
redirectsPath,
|
|
180
|
+
context,
|
|
181
|
+
branch,
|
|
182
|
+
logs,
|
|
183
|
+
featureFlags,
|
|
184
|
+
})
|
|
175
185
|
|
|
176
186
|
await logConfigOnUpload({ logs, configPath, debug })
|
|
177
187
|
await logHeadersOnUpload({ logs, headersPath, debug })
|
|
@@ -17,6 +17,7 @@ const getFeatureFlag = function (name) {
|
|
|
17
17
|
const DEFAULT_FEATURE_FLAGS = {
|
|
18
18
|
buildbot_es_modules_esbuild: false,
|
|
19
19
|
buildbot_zisi_esbuild_parser: false,
|
|
20
|
+
netlify_config_toml_backslash: false,
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
module.exports = { normalizeCliFeatureFlags, DEFAULT_FEATURE_FLAGS }
|
|
@@ -11,12 +11,12 @@ const { addErrorInfo } = require('../error/info')
|
|
|
11
11
|
|
|
12
12
|
// Local plugins and `package.json`-installed plugins use user's preferred Node.js version if higher than our minimum
|
|
13
13
|
// supported version (Node v10). Else default to the system Node version.
|
|
14
|
-
// Local builds use
|
|
15
|
-
//
|
|
16
|
-
const addPluginsNodeVersion = function ({ pluginsOptions,
|
|
14
|
+
// Local and programmatic builds use `@netlify/build` Node.js version, which is
|
|
15
|
+
// usually the system's Node.js version.
|
|
16
|
+
const addPluginsNodeVersion = function ({ pluginsOptions, nodePath, userNodeVersion }) {
|
|
17
17
|
const currentNodeVersion = cleanVersion(currentVersion)
|
|
18
18
|
return pluginsOptions.map((pluginOptions) =>
|
|
19
|
-
addPluginNodeVersion({ pluginOptions, currentNodeVersion, userNodeVersion,
|
|
19
|
+
addPluginNodeVersion({ pluginOptions, currentNodeVersion, userNodeVersion, nodePath }),
|
|
20
20
|
)
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -25,15 +25,11 @@ const addPluginNodeVersion = function ({
|
|
|
25
25
|
pluginOptions: { loadedFrom },
|
|
26
26
|
currentNodeVersion,
|
|
27
27
|
userNodeVersion,
|
|
28
|
-
mode,
|
|
29
28
|
nodePath,
|
|
30
29
|
}) {
|
|
31
30
|
if (loadedFrom === 'local' || loadedFrom === 'package.json') {
|
|
32
31
|
return nonUIPluginNodeVersion({ pluginOptions, currentNodeVersion, userNodeVersion, nodePath })
|
|
33
32
|
}
|
|
34
|
-
if (loadedFrom !== 'core' && mode !== 'buildbot') {
|
|
35
|
-
return { ...pluginOptions, nodePath, nodeVersion: userNodeVersion }
|
|
36
|
-
}
|
|
37
33
|
|
|
38
34
|
return { ...pluginOptions, nodePath: execPath, nodeVersion: currentNodeVersion }
|
|
39
35
|
}
|
package/src/plugins/resolve.js
CHANGED
|
@@ -18,6 +18,7 @@ const coreCommand = async function ({
|
|
|
18
18
|
buildbotServerSocket,
|
|
19
19
|
events,
|
|
20
20
|
logs,
|
|
21
|
+
featureFlags,
|
|
21
22
|
context,
|
|
22
23
|
branch,
|
|
23
24
|
configMutations,
|
|
@@ -37,6 +38,7 @@ const coreCommand = async function ({
|
|
|
37
38
|
headersPath,
|
|
38
39
|
redirectsPath,
|
|
39
40
|
logs,
|
|
41
|
+
featureFlags,
|
|
40
42
|
context,
|
|
41
43
|
branch,
|
|
42
44
|
debug,
|
|
@@ -108,6 +108,7 @@ const getModuleNameFromZISIError = function (error) {
|
|
|
108
108
|
// Netlify Functions has a `package.json` but no `node_modules`
|
|
109
109
|
const lacksNodeModules = async function (functionsSrc) {
|
|
110
110
|
return (
|
|
111
|
+
functionsSrc !== undefined &&
|
|
111
112
|
(await hasFunctionRootFile('package.json', functionsSrc)) &&
|
|
112
113
|
!(await hasFunctionRootFile('node_modules', functionsSrc))
|
|
113
114
|
)
|