@netlify/build 18.13.7 → 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",
|
|
@@ -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
|
}
|