@netlify/build 29.4.3-rc → 29.4.4-rc

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/core/build.js CHANGED
@@ -63,10 +63,12 @@ const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cached
63
63
  });
64
64
  if (framework) {
65
65
  const runtime = supportedRuntimes[framework];
66
- const skip = childEnv[runtime.skipFlag];
67
- const installedPlugins = netlifyConfig.plugins.map((plugin) => plugin.package);
68
- if (runtime !== undefined && skip !== 'true' && installedPlugins.contains(runtime.package)) {
69
- netlifyConfig.plugins.push({ package: runtime.package });
66
+ if (runtime !== undefined) {
67
+ const dontSkip = childEnv[runtime.skipFlag] !== 'true';
68
+ const installed = netlifyConfig.plugins.map((plugin) => plugin.package).includes(runtime.package);
69
+ if (!installed && dontSkip) {
70
+ netlifyConfig.plugins.push({ package: runtime.package });
71
+ }
70
72
  }
71
73
  }
72
74
  const constants = await getConstants({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.4.3-rc",
3
+ "version": "29.4.4-rc",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",