@netlify/build 29.31.1 → 29.31.3

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.
@@ -12,15 +12,15 @@ export const addExpectedVersions = async function ({ pluginsOptions, autoPlugins
12
12
  return pluginsOptions;
13
13
  }
14
14
  const pluginsList = await getPluginsList({ debug, logs, testOpts });
15
- return await Promise.all(pluginsOptions.map((pluginOptions) => addExpectedVersion({ pluginsList, autoPluginsDir, packageJson, pluginOptions, buildDir, featureFlags })));
15
+ return await Promise.all(pluginsOptions.map((pluginOptions) => addExpectedVersion({ pluginsList, autoPluginsDir, packageJson, pluginOptions, buildDir, featureFlags, testOpts })));
16
16
  };
17
17
  // Any `pluginOptions` with `expectedVersion` set will be automatically installed
18
- const addExpectedVersion = async function ({ pluginsList, autoPluginsDir, packageJson, pluginOptions, pluginOptions: { packageName, pluginPath, loadedFrom, nodeVersion, pinnedVersion }, buildDir, featureFlags, }) {
18
+ const addExpectedVersion = async function ({ pluginsList, autoPluginsDir, packageJson, pluginOptions, pluginOptions: { packageName, pluginPath, loadedFrom, nodeVersion, pinnedVersion }, buildDir, featureFlags, testOpts, }) {
19
19
  if (!needsExpectedVersion(pluginOptions)) {
20
20
  return pluginOptions;
21
21
  }
22
22
  if (pluginsList[packageName] === undefined) {
23
- validateUnlistedPlugin(packageName, loadedFrom);
23
+ validateUnlistedPlugin(packageName, loadedFrom, testOpts);
24
24
  return pluginOptions;
25
25
  }
26
26
  const unfilteredVersions = pluginsList[packageName];
@@ -70,7 +70,10 @@ const needsExpectedVersion = function ({ loadedFrom }) {
70
70
  // Plugins that are not in our official list can only be specified in
71
71
  // `netlify.toml` providing they are also installed in the site's package.json.
72
72
  // Otherwise, the build should fail.
73
- const validateUnlistedPlugin = function (packageName, loadedFrom) {
73
+ const validateUnlistedPlugin = function (packageName, loadedFrom, testOpts) {
74
+ if (testOpts.skipPluginList) {
75
+ return;
76
+ }
74
77
  if (loadedFrom === 'package.json') {
75
78
  return;
76
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.31.1",
3
+ "version": "29.31.3",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -157,5 +157,5 @@
157
157
  "engines": {
158
158
  "node": "^14.16.0 || >=16.0.0"
159
159
  },
160
- "gitHead": "efc258f3a0669d69d47b989e4d8154b18d60af35"
160
+ "gitHead": "a623ef20d9da0c1ce753e5c97db1de8dd987c857"
161
161
  }