@netlify/build 28.1.13 → 28.1.99-test

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.
@@ -35,6 +35,11 @@ export const getEventFromChild = async function (childProcess, callId) {
35
35
  try {
36
36
  return await Promise.race([getMessage(messagePromise), getError(errorPromise), getExit(exitPromise)]);
37
37
  }
38
+ catch (error) {
39
+ error.stdout = childProcess.stdoutArray.join('');
40
+ error.stderr = childProcess.stderrArray.join('');
41
+ throw error;
42
+ }
38
43
  finally {
39
44
  messagePromise.cancel();
40
45
  errorPromise.cancel();
@@ -32,6 +32,14 @@ const startPlugin = async function ({ pluginDir, nodePath, buildDir, childEnv })
32
32
  extendEnv: false,
33
33
  serialization: 'advanced',
34
34
  });
35
+ childProcess.stdoutArray = [];
36
+ childProcess.stdout.on('data', (data) => {
37
+ childProcess.stdoutArray.push(data);
38
+ });
39
+ childProcess.stderrArray = [];
40
+ childProcess.stderr.on('data', (data) => {
41
+ childProcess.stderrArray.push(data);
42
+ });
35
43
  try {
36
44
  await getEventFromChild(childProcess, 'ready');
37
45
  return { childProcess };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "28.1.13",
3
+ "version": "28.1.99-test",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/core/main.js",
@@ -149,6 +149,5 @@
149
149
  "compilerOptions": {
150
150
  "module": "commonjs"
151
151
  }
152
- },
153
- "gitHead": "d726ecff995441dbba250c7e742d801abd14c92e"
152
+ }
154
153
  }