@netlify/build 36.1.5 → 36.2.0
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/README.md +12 -0
- package/lib/log/header.js +1 -1
- package/lib/log/messages/core_steps.js +0 -20
- package/package.json +12 -12
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Netlify Build
|
|
2
|
+
|
|
3
|
+
`@netlify/build` implements the core of Netlify's procedures for preparing a project for deployment or local preview. It
|
|
4
|
+
is used under the hood by [Netlify CLI](https://developers.netlify.com/cli/) and
|
|
5
|
+
[continuous deployment on the Netlify platform](https://docs.netlify.com/deploy/create-deploys/#deploy-with-git).
|
|
6
|
+
|
|
7
|
+
You almost certainly do not need to depend on this package directly.
|
|
8
|
+
|
|
9
|
+
## Contributors
|
|
10
|
+
|
|
11
|
+
Please see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on how to set up and work on this repository. Thanks for
|
|
12
|
+
contributing!
|
package/lib/log/header.js
CHANGED
|
@@ -22,9 +22,6 @@ const logBundleResultFunctions = ({ functions, headerMessage, logs, error }) =>
|
|
|
22
22
|
export const logBundleResults = ({ logs, results = [] }) => {
|
|
23
23
|
const resultsWithErrors = results.filter(({ bundlerErrors }) => bundlerErrors && bundlerErrors.length !== 0);
|
|
24
24
|
const resultsWithWarnings = results.filter(({ bundler, bundlerWarnings }) => bundler === 'esbuild' && bundlerWarnings && bundlerWarnings.length !== 0);
|
|
25
|
-
const modulesWithDynamicImports = [
|
|
26
|
-
...new Set(results.flatMap((result) => result.nodeModulesWithDynamicImports || [])),
|
|
27
|
-
];
|
|
28
25
|
if (resultsWithErrors.length !== 0) {
|
|
29
26
|
logBundleResultFunctions({
|
|
30
27
|
functions: resultsWithErrors,
|
|
@@ -41,9 +38,6 @@ export const logBundleResults = ({ logs, results = [] }) => {
|
|
|
41
38
|
error: false,
|
|
42
39
|
});
|
|
43
40
|
}
|
|
44
|
-
if (modulesWithDynamicImports.length !== 0) {
|
|
45
|
-
logModulesWithDynamicImports({ logs, modulesWithDynamicImports });
|
|
46
|
-
}
|
|
47
41
|
};
|
|
48
42
|
/**
|
|
49
43
|
* Sibling of `logBundleResults`. Derives structured telemetry from the same
|
|
@@ -151,20 +145,6 @@ export const logDbMigrations = function ({ logs, migrations, srcDir }) {
|
|
|
151
145
|
log(logs, `Loading migrations from ${THEME.highlightWords(srcDir)} directory:`);
|
|
152
146
|
logArray(logs, migrations, { indent: false });
|
|
153
147
|
};
|
|
154
|
-
const logModulesWithDynamicImports = ({ logs, modulesWithDynamicImports }) => {
|
|
155
|
-
const externalNodeModules = modulesWithDynamicImports.map((moduleName) => `"${moduleName}"`).join(', ');
|
|
156
|
-
logWarningSubHeader(logs, `The following Node.js modules use dynamic expressions to include files:`);
|
|
157
|
-
logArray(logs, modulesWithDynamicImports);
|
|
158
|
-
log(logs, `\n Because files included with dynamic expressions aren't bundled with your serverless functions by default,
|
|
159
|
-
this may result in an error when invoking a function. To resolve this error, you can mark these Node.js
|
|
160
|
-
modules as external in the [functions] section of your \`netlify.toml\` configuration file:
|
|
161
|
-
|
|
162
|
-
[functions]
|
|
163
|
-
external_node_modules = [${externalNodeModules}]
|
|
164
|
-
|
|
165
|
-
Visit https://ntl.fyi/dynamic-imports for more information.
|
|
166
|
-
`);
|
|
167
|
-
};
|
|
168
148
|
export const logSecretsScanSkipMessage = function (logs, msg) {
|
|
169
149
|
log(logs, msg, { color: THEME.warningHighlightWords });
|
|
170
150
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "36.
|
|
3
|
+
"version": "36.2.0",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -68,20 +68,21 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@bugsnag/js": "^8.0.0",
|
|
70
70
|
"@netlify/blobs": "^10.4.4",
|
|
71
|
-
"@netlify/cache-utils": "^7.
|
|
72
|
-
"@netlify/config": "^25.0
|
|
73
|
-
"@netlify/edge-bundler": "15.0
|
|
74
|
-
"@netlify/functions-utils": "^7.0
|
|
75
|
-
"@netlify/git-utils": "^7.
|
|
76
|
-
"@netlify/opentelemetry-utils": "^3.
|
|
71
|
+
"@netlify/cache-utils": "^7.1.0",
|
|
72
|
+
"@netlify/config": "^25.1.0",
|
|
73
|
+
"@netlify/edge-bundler": "15.1.0",
|
|
74
|
+
"@netlify/functions-utils": "^7.1.0",
|
|
75
|
+
"@netlify/git-utils": "^7.1.0",
|
|
76
|
+
"@netlify/opentelemetry-utils": "^3.1.0",
|
|
77
77
|
"@netlify/plugins-list": "^6.81.6",
|
|
78
|
-
"@netlify/run-utils": "^7.
|
|
79
|
-
"@netlify/zip-it-and-ship-it": "15.
|
|
78
|
+
"@netlify/run-utils": "^7.1.0",
|
|
79
|
+
"@netlify/zip-it-and-ship-it": "15.3.0",
|
|
80
80
|
"@sindresorhus/slugify": "^2.0.0",
|
|
81
81
|
"ansi-escapes": "^7.0.0",
|
|
82
82
|
"ansis": "^4.1.0",
|
|
83
83
|
"clean-stack": "^5.0.0",
|
|
84
84
|
"execa": "^8.0.0",
|
|
85
|
+
"fast-string-width": "^3.0.2",
|
|
85
86
|
"fdir": "^6.0.1",
|
|
86
87
|
"figures": "^6.0.0",
|
|
87
88
|
"filter-obj": "^6.0.0",
|
|
@@ -109,7 +110,6 @@
|
|
|
109
110
|
"rfdc": "^1.3.0",
|
|
110
111
|
"safe-json-stringify": "^1.2.0",
|
|
111
112
|
"semver": "^7.3.8",
|
|
112
|
-
"string-width": "^7.0.0",
|
|
113
113
|
"supports-color": "^10.0.0",
|
|
114
114
|
"terminal-link": "^4.0.0",
|
|
115
115
|
"ts-node": "^10.9.1",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"zod": "^3.25.76"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
|
-
"@netlify/nock-udp": "^6.
|
|
122
|
+
"@netlify/nock-udp": "^6.1.0",
|
|
123
123
|
"@opentelemetry/api": "~1.8.0",
|
|
124
124
|
"@opentelemetry/sdk-trace-base": "~1.24.0",
|
|
125
125
|
"@types/node": "^22.12.0",
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=22.12.0"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "0a4aa4be3f9abbb49ebe00e82c64898148986715"
|
|
156
156
|
}
|