@netlify/build 29.6.6 → 29.6.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.
@@ -79,7 +79,7 @@ const logConfigInfo = function ({ logs, configPath, buildDir, netlifyConfig, con
79
79
  // Retrieve the configuration after it's been changed.
80
80
  // This ensures any configuration changes done by plugins is validated and
81
81
  // normalized.
82
- // We use `debug: false` to avoid any debug logs. Otherwise every configuration
82
+ // We use `debug: false` to avoid any debug logs. Otherwise, every configuration
83
83
  // change would create debug logs which would be too verbose.
84
84
  // Errors are propagated and assigned to the specific plugin or core step
85
85
  // which changed the configuration.
@@ -96,7 +96,7 @@ export const resolveUpdatedConfig = async function (configOpts, configMutations)
96
96
  // If `netlify.toml` does not exist, create it inside repository root.
97
97
  // This is only done when `saveConfig` is `true`. This allows performing this
98
98
  // in the buildbot but not in local builds, since only the latter run in a
99
- // container and we want to avoid saving files on local machines.
99
+ // container, and we want to avoid saving files on local machines.
100
100
  export const saveUpdatedConfig = async function ({ configMutations, buildDir, repositoryRoot, configPath = `${repositoryRoot}/netlify.toml`, outputConfigPath = configPath, headersPath, redirectsPath, logs, featureFlags, context, branch, debug, saveConfig, }) {
101
101
  if (!saveConfig) {
102
102
  return;
package/lib/core/flags.js CHANGED
@@ -11,7 +11,7 @@ Defaults to any netlify.toml in the git repository root directory or the base di
11
11
  defaultConfig: {
12
12
  string: true,
13
13
  describe: `JSON configuration object containing default values.
14
- Each configuration default value is used unless overriden through the main configuration file.
14
+ Each configuration default value is used unless overridden through the main configuration file.
15
15
  Default: none.`,
16
16
  coerce: jsonParse,
17
17
  hidden: true,
@@ -3,7 +3,7 @@ import { logLingeringProcesses } from '../log/messages/core.js';
3
3
  // Print a warning when some build processes are still running.
4
4
  // We cannot rely on using the process tree:
5
5
  // - This is because it is impossible to know whether a process was a child of
6
- // of another once its parent process has exited. When that happens, the s
6
+ // another once its parent process has exited. When that happens, the s
7
7
  // child becomes inherited by `init`, changing its `ppid`. The information
8
8
  // about the original parent is then lost.
9
9
  // - The only way to implement this would be to repeatedly list processes as
@@ -1,7 +1,7 @@
1
1
  import { relative } from 'path';
2
2
  import { pathExists } from 'path-exists';
3
3
  import { logMissingSideFile } from '../log/messages/core.js';
4
- // Some files like `_headers` and `_redirects` must be copied to the publish
4
+ // Some files like `_headers` and `_redirects` must be copied to the publishing
5
5
  // directory to be used in production. When those are present in the repository
6
6
  // but not in the publish directory, this most likely indicates that the build
7
7
  // command accidentally forgot to copy those. We then print a warning message.
@@ -55,7 +55,7 @@ const getDefaultFlags = function ({ env: envOpt = {} }, combinedEnv) {
55
55
  quiet: false,
56
56
  };
57
57
  };
58
- // Compute the telemetry flag, it's disabled by default and we want to always disable it
58
+ // Compute the telemetry flag, it's disabled by default, and we want to always disable it
59
59
  // if BUILD_TELEMETRY_DISABLED is passed.
60
60
  const computeTelemetry = function (flags, envOpts) {
61
61
  return envOpts.BUILD_TELEMETRY_DISABLED ? { telemetry: false } : { telemetry: flags.telemetry };
@@ -1,6 +1,6 @@
1
1
  import { env } from 'process';
2
2
  import filterObj from 'filter-obj';
3
- // Retrieve enviroment variables used in error monitoring
3
+ // Retrieve environment variables used in error monitoring
4
4
  export const getEnvMetadata = function (childEnv = env) {
5
5
  return filterObj(childEnv, isEnvMetadata);
6
6
  };
@@ -25,7 +25,7 @@ const assignErrorProp = function (error, name, value) {
25
25
  // Inverse of `jsonToError()`.
26
26
  export const errorToJson = function (error) {
27
27
  const { name, message, stack, [CUSTOM_ERROR_KEY]: customError, ...errorProps } = error;
28
- // diagnosticText is not enumerable in TSError so we need to grab it manually. destructuring won't work.
28
+ // diagnosticText is not enumerable in TSError, so we need to grab it manually. destructuring won't work.
29
29
  if (error.diagnosticText) {
30
30
  errorProps.diagnosticText = error.diagnosticText;
31
31
  }
@@ -23,7 +23,7 @@ export const handleBuildError = async function (error, { errorMonitor, netlifyCo
23
23
  // However, the process (and build) keeps going. Because no files exist anymore,
24
24
  // the build eventually crashes with a randomly odd error. Those should not be
25
25
  // logged nor reported.
26
- // However builds canceled with `utils.build.cancelBuild()` should still show
26
+ // However, builds canceled with `utils.build.cancelBuild()` should still show
27
27
  // "Build canceled by ..."
28
28
  const isCancelCrash = async function (error) {
29
29
  const [{ type }] = getErrorInfo(error);
@@ -41,6 +41,7 @@ const coreStep = async function ({ buildDir, constants: { EDGE_FUNCTIONS_DIST: d
41
41
  featureFlags,
42
42
  importMapPaths: [userDefinedImportMap],
43
43
  systemLogger: featureFlags.edge_functions_system_logger ? systemLog : undefined,
44
+ internalSrcFolder: internalSrcPath,
44
45
  });
45
46
  systemLog('Edge Functions manifest:', manifest);
46
47
  }
@@ -18,6 +18,7 @@ export const getZisiParameters = ({ buildDir, childEnv, featureFlags, functionsC
18
18
  featureFlags: zisiFeatureFlags,
19
19
  repositoryRoot,
20
20
  configFileDirectories,
21
+ internalSrcFolder: internalFunctionsSrc,
21
22
  };
22
23
  };
23
24
  // The function configuration keys returned by @netlify/config are not an exact
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.6.6",
3
+ "version": "29.6.8",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -64,12 +64,12 @@
64
64
  "license": "MIT",
65
65
  "dependencies": {
66
66
  "@bugsnag/js": "^7.0.0",
67
- "@netlify/cache-utils": "^5.1.2",
68
- "@netlify/config": "^20.3.4",
69
- "@netlify/edge-bundler": "8.11.0",
67
+ "@netlify/cache-utils": "^5.1.3",
68
+ "@netlify/config": "^20.3.5",
69
+ "@netlify/edge-bundler": "8.11.1",
70
70
  "@netlify/framework-info": "^9.8.5",
71
- "@netlify/functions-utils": "^5.2.0",
72
- "@netlify/git-utils": "^5.1.0",
71
+ "@netlify/functions-utils": "^5.2.1",
72
+ "@netlify/git-utils": "^5.1.1",
73
73
  "@netlify/plugins-list": "^6.66.0",
74
74
  "@netlify/run-utils": "^5.1.0",
75
75
  "@netlify/zip-it-and-ship-it": "^8.9.0",
@@ -147,5 +147,5 @@
147
147
  "module": "commonjs"
148
148
  }
149
149
  },
150
- "gitHead": "28a5471ea9834e4a137692213db2e510f74ef535"
150
+ "gitHead": "b7cdb48e8e7096dc4e74d0e1267e1cc894ee147e"
151
151
  }