Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 25c2ba0

Browse files
vsavkinFrozenPandaz
authored andcommittedOct 9, 2020
fix(misc): increase buffer limit of run-commands
1 parent 589a480 commit 25c2ba0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎packages/workspace/src/builders/run-commands/run-commands.impl.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { BuilderOutput, createBuilder } from '@angular-devkit/architect';
22
import { JsonObject } from '@angular-devkit/core';
33
import { exec, execSync } from 'child_process';
44
import { Observable } from 'rxjs';
5-
import { TEN_MEGABYTES } from '@nrwl/workspace/src/core/file-utils';
5+
6+
export const LARGE_BUFFER = 1024 * 1000000;
67

78
function loadEnvVars(path?: string) {
89
if (path) {
@@ -151,7 +152,7 @@ function createProcess(
151152
): Promise<boolean> {
152153
return new Promise((res) => {
153154
const childProcess = exec(command, {
154-
maxBuffer: TEN_MEGABYTES,
155+
maxBuffer: LARGE_BUFFER,
155156
env: processEnv(color),
156157
cwd,
157158
});
@@ -183,6 +184,7 @@ function createSyncProcess(command: string, color: boolean, cwd: string) {
183184
execSync(command, {
184185
env: processEnv(color),
185186
stdio: [0, 1, 2],
187+
maxBuffer: LARGE_BUFFER,
186188
cwd,
187189
});
188190
}

0 commit comments

Comments
 (0)
Please sign in to comment.