@netlify/build 29.20.9 → 29.20.11
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/install/main.d.ts +1 -1
- package/lib/install/main.js +3 -0
- package/lib/install/missing.js +6 -0
- package/lib/plugins/resolve.js +3 -0
- package/package.json +4 -4
package/lib/install/main.d.ts
CHANGED
package/lib/install/main.js
CHANGED
|
@@ -8,6 +8,9 @@ export const installDependencies = function ({ packageRoot, isLocal }) {
|
|
|
8
8
|
};
|
|
9
9
|
// Add new Node.js dependencies, with exact semver ranges
|
|
10
10
|
export const addExactDependencies = function ({ packageRoot, isLocal, packages }) {
|
|
11
|
+
if (!packages || packages.length === 0) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
11
14
|
return runCommand({ packageRoot, packages, isLocal, type: 'addExact' });
|
|
12
15
|
};
|
|
13
16
|
const runCommand = async function ({ packageRoot, packages = [], isLocal, type }) {
|
package/lib/install/missing.js
CHANGED
|
@@ -12,12 +12,18 @@ import { addExactDependencies } from './main.js';
|
|
|
12
12
|
export const installMissingPlugins = async function ({ missingPlugins, autoPluginsDir, mode, logs }) {
|
|
13
13
|
const packages = missingPlugins.map(getPackage);
|
|
14
14
|
logInstallMissingPlugins(logs, packages);
|
|
15
|
+
if (packages.length === 0) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
15
18
|
await createAutoPluginsDir(logs, autoPluginsDir);
|
|
16
19
|
await addExactDependencies({ packageRoot: autoPluginsDir, isLocal: mode !== 'buildbot', packages });
|
|
17
20
|
};
|
|
18
21
|
export const installIntegrationPlugins = async function ({ integrations, autoPluginsDir, mode, logs }) {
|
|
19
22
|
const packages = integrations.map(getIntegrationPackage);
|
|
20
23
|
logInstallIntegrations(logs, integrations);
|
|
24
|
+
if (packages.length === 0) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
21
27
|
await createAutoPluginsDir(logs, autoPluginsDir);
|
|
22
28
|
await addExactDependencies({ packageRoot: autoPluginsDir, isLocal: mode !== 'buildbot', packages });
|
|
23
29
|
};
|
package/lib/plugins/resolve.js
CHANGED
|
@@ -110,6 +110,9 @@ const handleMissingPlugins = async function ({ pluginsOptions, autoPluginsDir, m
|
|
|
110
110
|
const handleIntegrations = async function ({ integrations, autoPluginsDir, mode, logs }) {
|
|
111
111
|
const toInstall = integrations.filter((integration) => integration.has_build);
|
|
112
112
|
await installIntegrationPlugins({ integrations: toInstall, autoPluginsDir, mode, logs });
|
|
113
|
+
if (toInstall.length === 0) {
|
|
114
|
+
return [];
|
|
115
|
+
}
|
|
113
116
|
return Promise.all(toInstall.map((integration) => resolveIntegration({
|
|
114
117
|
integration,
|
|
115
118
|
autoPluginsDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.20.
|
|
3
|
+
"version": "29.20.11",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"@netlify/config": "^20.8.0",
|
|
71
71
|
"@netlify/edge-bundler": "8.19.0",
|
|
72
72
|
"@netlify/framework-info": "^9.8.10",
|
|
73
|
-
"@netlify/functions-utils": "^5.2.
|
|
73
|
+
"@netlify/functions-utils": "^5.2.26",
|
|
74
74
|
"@netlify/git-utils": "^5.1.1",
|
|
75
75
|
"@netlify/plugins-list": "^6.71.0",
|
|
76
76
|
"@netlify/run-utils": "^5.1.1",
|
|
77
|
-
"@netlify/zip-it-and-ship-it": "9.17.
|
|
77
|
+
"@netlify/zip-it-and-ship-it": "9.17.2",
|
|
78
78
|
"@opentelemetry/api": "^1.4.1",
|
|
79
79
|
"@sindresorhus/slugify": "^2.0.0",
|
|
80
80
|
"ansi-escapes": "^6.0.0",
|
|
@@ -145,5 +145,5 @@
|
|
|
145
145
|
"engines": {
|
|
146
146
|
"node": "^14.16.0 || >=16.0.0"
|
|
147
147
|
},
|
|
148
|
-
"gitHead": "
|
|
148
|
+
"gitHead": "112f3e48f501af1f586c7fe4f90eb0e8af484044"
|
|
149
149
|
}
|