@netlify/build 29.42.5 → 29.42.6
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/log/logger.d.ts +1 -1
- package/lib/log/logger.js +1 -1
- package/lib/plugins/compatibility.d.ts +1 -1
- package/lib/plugins/manifest/main.d.ts +1 -1
- package/lib/plugins/options.d.ts +1 -1
- package/lib/plugins/plugin_conditions.d.ts +1 -1
- package/lib/steps/core_step.js +2 -2
- package/lib/steps/plugin.js +2 -2
- package/lib/utils/json.d.ts +1 -1
- package/lib/utils/package.d.ts +1 -1
- package/lib/utils/package.js +1 -1
- package/package.json +3 -3
package/lib/log/logger.d.ts
CHANGED
|
@@ -38,4 +38,4 @@ export declare const reduceLogLines: (lines: any) => any;
|
|
|
38
38
|
* the user-facing build logs)
|
|
39
39
|
*/
|
|
40
40
|
export declare const getSystemLogger: (logs: BufferedLogs | undefined, debug: boolean, systemLogFile?: number) => (...args: any[]) => void;
|
|
41
|
-
export declare const
|
|
41
|
+
export declare const addOutputFlusher: (logs: Logs, outputFlusher: OutputFlusher) => Logs;
|
package/lib/log/logger.js
CHANGED
|
@@ -144,7 +144,7 @@ systemLogFile) {
|
|
|
144
144
|
});
|
|
145
145
|
return (...args) => fileDescriptor.write(`${reduceLogLines(args)}\n`);
|
|
146
146
|
};
|
|
147
|
-
export const
|
|
147
|
+
export const addOutputFlusher = (logs, outputFlusher) => {
|
|
148
148
|
if (logsAreBuffered(logs)) {
|
|
149
149
|
return {
|
|
150
150
|
...logs,
|
package/lib/plugins/options.d.ts
CHANGED
package/lib/steps/core_step.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setEnvChanges } from '../env/changes.js';
|
|
2
2
|
import { addErrorInfo, isBuildError } from '../error/info.js';
|
|
3
|
-
import {
|
|
3
|
+
import { addOutputFlusher } from '../log/logger.js';
|
|
4
4
|
import { updateNetlifyConfig, listConfigSideFiles } from './update_config.js';
|
|
5
5
|
// Fire a core step
|
|
6
6
|
export const fireCoreStep = async function ({ coreStep, coreStepId, coreStepName, configPath, outputConfigPath, buildDir, repositoryRoot, packagePath, constants, buildbotServerSocket, events, logs, quiet, nodePath, childEnv, context, branch, envChanges, errorParams, configOpts, netlifyConfig, configMutations, headersPath, redirectsPath, featureFlags, debug, systemLog, saveConfig, userNodeVersion, explicitSecretKeys, edgeFunctionsBootstrapURL, deployId, outputFlusher, }) {
|
|
7
|
-
const logsA =
|
|
7
|
+
const logsA = outputFlusher ? addOutputFlusher(logs, outputFlusher) : logs;
|
|
8
8
|
try {
|
|
9
9
|
const configSideFiles = await listConfigSideFiles([headersPath, redirectsPath]);
|
|
10
10
|
const childEnvA = setEnvChanges(envChanges, { ...childEnv });
|
package/lib/steps/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { context, propagation } from '@opentelemetry/api';
|
|
2
2
|
import { addErrorInfo } from '../error/info.js';
|
|
3
|
-
import {
|
|
3
|
+
import { addOutputFlusher } from '../log/logger.js';
|
|
4
4
|
import { logStepCompleted } from '../log/messages/ipc.js';
|
|
5
5
|
import { pipePluginOutput, unpipePluginOutput } from '../log/stream.js';
|
|
6
6
|
import { callChild } from '../plugins/ipc.js';
|
|
@@ -13,7 +13,7 @@ export const firePluginStep = async function ({ event, childProcess, packageName
|
|
|
13
13
|
const listeners = pipePluginOutput(childProcess, logs, outputFlusher);
|
|
14
14
|
const otelCarrier = {};
|
|
15
15
|
propagation.inject(context.active(), otelCarrier);
|
|
16
|
-
const logsA =
|
|
16
|
+
const logsA = addOutputFlusher(logs, outputFlusher);
|
|
17
17
|
try {
|
|
18
18
|
const configSideFiles = await listConfigSideFiles([headersPath, redirectsPath]);
|
|
19
19
|
const { newEnvChanges, configMutations: newConfigMutations, status, } = await callChild({
|
package/lib/utils/json.d.ts
CHANGED
package/lib/utils/package.d.ts
CHANGED
package/lib/utils/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "29.42.
|
|
3
|
+
"version": "29.42.6",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"pkg-dir": "^7.0.0",
|
|
112
112
|
"pretty-ms": "^8.0.0",
|
|
113
113
|
"ps-list": "^8.0.0",
|
|
114
|
-
"read-
|
|
114
|
+
"read-package-up": "^11.0.0",
|
|
115
115
|
"readdirp": "^3.4.0",
|
|
116
116
|
"resolve": "^2.0.0-next.1",
|
|
117
117
|
"rfdc": "^1.3.0",
|
|
@@ -165,5 +165,5 @@
|
|
|
165
165
|
"engines": {
|
|
166
166
|
"node": "^14.16.0 || >=16.0.0"
|
|
167
167
|
},
|
|
168
|
-
"gitHead": "
|
|
168
|
+
"gitHead": "be380af1c62fd62a202bbca551a30f290b0d3f99"
|
|
169
169
|
}
|