@netlify/build 27.11.2 → 27.11.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "27.11.
|
|
3
|
+
"version": "27.11.5",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./src/core/main.js",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"@bugsnag/js": "^7.0.0",
|
|
59
59
|
"@netlify/edge-bundler": "^1.12.1",
|
|
60
60
|
"@netlify/cache-utils": "^4.0.0",
|
|
61
|
-
"@netlify/config": "^18.1.
|
|
62
|
-
"@netlify/functions-utils": "^4.2.
|
|
61
|
+
"@netlify/config": "^18.1.4",
|
|
62
|
+
"@netlify/functions-utils": "^4.2.4",
|
|
63
63
|
"@netlify/git-utils": "^4.0.0",
|
|
64
64
|
"@netlify/plugins-list": "^6.36.0",
|
|
65
65
|
"@netlify/run-utils": "^4.0.0",
|
|
66
|
-
"@netlify/zip-it-and-ship-it": "5.13.
|
|
66
|
+
"@netlify/zip-it-and-ship-it": "^5.13.5",
|
|
67
67
|
"@sindresorhus/slugify": "^2.0.0",
|
|
68
68
|
"@types/node": "^16.0.0",
|
|
69
69
|
"ajv": "^8.11.0",
|
package/src/core/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable
|
|
1
|
+
/* eslint-disable import/max-dependencies */
|
|
2
2
|
import { handleBuildError } from '../error/handle.js'
|
|
3
3
|
import { getErrorInfo } from '../error/info.js'
|
|
4
4
|
import { startErrorMonitor } from '../error/monitor/start.js'
|
|
@@ -700,4 +700,4 @@ const telemetryReport = async function ({
|
|
|
700
700
|
await handleBuildError(error, errorParams)
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
/* eslint-enable
|
|
703
|
+
/* eslint-enable import/max-dependencies */
|
|
@@ -5,7 +5,7 @@ import { getSeverity } from '../core/severity.js'
|
|
|
5
5
|
import { handleBuildError } from '../error/handle.js'
|
|
6
6
|
import { getErrorInfo } from '../error/info.js'
|
|
7
7
|
import { startErrorMonitor } from '../error/monitor/start.js'
|
|
8
|
-
import { getBufferLogs } from '../log/logger.js'
|
|
8
|
+
import { getBufferLogs, getSystemLogger } from '../log/logger.js'
|
|
9
9
|
import { logBuildStart } from '../log/messages/core.js'
|
|
10
10
|
import { reportStatuses } from '../status/report.js'
|
|
11
11
|
|
|
@@ -39,6 +39,7 @@ import { runSteps } from './run_steps.js'
|
|
|
39
39
|
export const runCoreSteps = async (buildSteps, flags = {}) => {
|
|
40
40
|
const { errorMonitor, mode, logs, debug, ...flagsA } = startBuild(flags)
|
|
41
41
|
const errorParams = { errorMonitor, mode, logs, debug }
|
|
42
|
+
const systemLog = getSystemLogger(logs, debug)
|
|
42
43
|
|
|
43
44
|
try {
|
|
44
45
|
const { netlifyConfig: netlifyConfigA, configMutations } = await executeBuildStep({
|
|
@@ -49,6 +50,7 @@ export const runCoreSteps = async (buildSteps, flags = {}) => {
|
|
|
49
50
|
debug,
|
|
50
51
|
errorParams,
|
|
51
52
|
buildSteps,
|
|
53
|
+
systemLog,
|
|
52
54
|
})
|
|
53
55
|
const { success, severityCode } = getSeverity('success')
|
|
54
56
|
|
|
@@ -93,6 +95,7 @@ const executeBuildStep = async function ({
|
|
|
93
95
|
featureFlags,
|
|
94
96
|
buildSteps,
|
|
95
97
|
repositoryRoot,
|
|
98
|
+
systemLog,
|
|
96
99
|
}) {
|
|
97
100
|
const configOpts = getConfigOpts({
|
|
98
101
|
config,
|
|
@@ -140,6 +143,7 @@ const executeBuildStep = async function ({
|
|
|
140
143
|
childEnv,
|
|
141
144
|
buildSteps,
|
|
142
145
|
repositoryRoot: repositoryRootA,
|
|
146
|
+
systemLog,
|
|
143
147
|
})
|
|
144
148
|
|
|
145
149
|
return {
|
|
@@ -175,6 +179,7 @@ const runBuildStep = async function ({
|
|
|
175
179
|
childEnv,
|
|
176
180
|
buildSteps,
|
|
177
181
|
repositoryRoot,
|
|
182
|
+
systemLog,
|
|
178
183
|
}) {
|
|
179
184
|
const { netlifyConfig: netlifyConfigA, configMutations } = await runSteps({
|
|
180
185
|
steps: getBuildSteps(buildSteps),
|
|
@@ -188,6 +193,7 @@ const runBuildStep = async function ({
|
|
|
188
193
|
featureFlags,
|
|
189
194
|
childEnv,
|
|
190
195
|
repositoryRoot,
|
|
196
|
+
systemLog,
|
|
191
197
|
})
|
|
192
198
|
|
|
193
199
|
return { netlifyConfig: netlifyConfigA, configMutations }
|
package/src/steps/run_step.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
1
|
import { addMutableConstants } from '../core/constants.js'
|
|
3
2
|
import { logStepStart } from '../log/messages/steps.js'
|
|
4
3
|
import { runsAlsoOnBuildFailure, runsOnlyOnBuildFailure } from '../plugins/events.js'
|
|
@@ -303,4 +302,3 @@ const tFireStep = function ({
|
|
|
303
302
|
verbose,
|
|
304
303
|
})
|
|
305
304
|
}
|
|
306
|
-
/* eslint-enable max-lines */
|
package/src/steps/run_steps.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
1
|
import pReduce from 'p-reduce'
|
|
3
2
|
|
|
4
3
|
import { addErrorInfo } from '../error/info.js'
|
|
@@ -178,4 +177,3 @@ export const runSteps = async function ({
|
|
|
178
177
|
configMutations: configMutationsB,
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
|
-
/* eslint-enable max-lines */
|