@netlify/build 29.16.2 → 29.16.4

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,6 +63,7 @@ const tExecBuild = async function ({ config, defaultConfig, cachedConfig, cached
63
63
  nodePath,
64
64
  timers,
65
65
  quiet,
66
+ featureFlags,
66
67
  });
67
68
  if (featureFlags.build_automatic_runtime && framework) {
68
69
  const runtime = supportedRuntimes[framework];
@@ -37,8 +37,8 @@ export const getConfigOpts = function ({ config, defaultConfig, cwd, repositoryR
37
37
  };
38
38
  };
39
39
  // Retrieve configuration object
40
- const tLoadConfig = async function ({ configOpts, cachedConfig, cachedConfigPath, envOpt, debug, logs, nodePath, quiet, }) {
41
- const { configPath, headersPath, redirectsPath, buildDir, repositoryRoot, config: netlifyConfig, context: contextA, branch: branchA, token: tokenA, api, siteInfo, env, integrations, } = await resolveInitialConfig(configOpts, cachedConfig, cachedConfigPath);
40
+ const tLoadConfig = async function ({ configOpts, cachedConfig, cachedConfigPath, envOpt, debug, logs, nodePath, quiet, featureFlags, }) {
41
+ const { configPath, headersPath, redirectsPath, buildDir, repositoryRoot, config: netlifyConfig, context: contextA, branch: branchA, token: tokenA, api, siteInfo, env, integrations, } = await resolveInitialConfig(configOpts, cachedConfig, cachedConfigPath, featureFlags);
42
42
  if (!quiet) {
43
43
  logConfigInfo({ logs, configPath, buildDir, netlifyConfig, context: contextA, debug });
44
44
  }
@@ -68,8 +68,8 @@ export const loadConfig = measureDuration(tLoadConfig, 'resolve_config');
68
68
  // Retrieve initial configuration.
69
69
  // In the buildbot and CLI, we re-use the already parsed `@netlify/config`
70
70
  // return value which is passed as `cachedConfig`/`cachedConfigPath`.
71
- const resolveInitialConfig = async function (configOpts, cachedConfig, cachedConfigPath) {
72
- return await resolveConfig({ ...configOpts, cachedConfig, cachedConfigPath });
71
+ const resolveInitialConfig = async function (configOpts, cachedConfig, cachedConfigPath, featureFlags) {
72
+ return await resolveConfig({ ...configOpts, cachedConfig, cachedConfigPath, featureFlags });
73
73
  };
74
74
  const logConfigInfo = function ({ logs, configPath, buildDir, netlifyConfig, context, debug }) {
75
75
  logBuildDir(logs, buildDir);
@@ -36,7 +36,7 @@ export const resolvePluginsPath = async function ({ pluginsOptions, siteInfo, bu
36
36
  logs,
37
37
  });
38
38
  let integrationPluginOptions = [];
39
- if (featureFlags.build_fetch_integrations) {
39
+ if (featureFlags.buildbot_fetch_integrations) {
40
40
  integrationPluginOptions = await handleIntegrations({ integrations, autoPluginsDir, mode, logs });
41
41
  }
42
42
  return [...pluginsOptionsE, ...integrationPluginOptions];
@@ -63,7 +63,7 @@ export function getSecretKeysToScanFor(env, secretKeys) {
63
63
  * @returns string[] of relative paths from base of files that should be searched
64
64
  */
65
65
  export async function getFilePathsToScan({ env, base }) {
66
- const omitPathsAlways = ['.git'];
66
+ const omitPathsAlways = ['.git/'];
67
67
  // node modules is dense and is only useful to scan if the repo itself commits these
68
68
  // files. As a simple check to understand if the repo would commit these files, we expect
69
69
  // that they would not ignore them from their git settings. So if gitignore includes
@@ -91,10 +91,10 @@ export async function getFilePathsToScan({ env, base }) {
91
91
  let omitPaths = [];
92
92
  if (typeof env.SECRETS_SCAN_OMIT_PATHS === 'string') {
93
93
  omitPaths = env.SECRETS_SCAN_OMIT_PATHS.split(',')
94
- .concat(omitPathsAlways)
95
94
  .map((s) => s.trim())
96
95
  .filter(Boolean);
97
96
  }
97
+ omitPaths = omitPaths.concat(omitPathsAlways);
98
98
  if (omitPaths.length > 0) {
99
99
  files = files.filter((relativePath) => !omitPathMatches(relativePath, omitPaths));
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.16.2",
3
+ "version": "29.16.4",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -65,7 +65,7 @@
65
65
  "@bugsnag/js": "^7.0.0",
66
66
  "@honeycombio/opentelemetry-node": "^0.4.0",
67
67
  "@netlify/cache-utils": "^5.1.5",
68
- "@netlify/config": "^20.6.1",
68
+ "@netlify/config": "^20.6.3",
69
69
  "@netlify/edge-bundler": "8.16.4",
70
70
  "@netlify/framework-info": "^9.8.10",
71
71
  "@netlify/functions-utils": "^5.2.18",
@@ -148,5 +148,5 @@
148
148
  "module": "commonjs"
149
149
  }
150
150
  },
151
- "gitHead": "955ef6d9b44d9dd92cef78ba80b15f416044bfc9"
151
+ "gitHead": "28f104de3b83def70a633289c72c70c9c7360ce0"
152
152
  }