diff --git a/packages/nx/src/command-line/run/run.ts b/packages/nx/src/command-line/run/run.ts index 22db2d3fe70bd..f33b863b53135 100644 --- a/packages/nx/src/command-line/run/run.ts +++ b/packages/nx/src/command-line/run/run.ts @@ -70,19 +70,8 @@ async function* promiseToIterator( async function iteratorToProcessStatusCode( i: AsyncIterableIterator<{ success: boolean }> ): Promise { - // This is a workaround to fix an issue that only happens with - // the @angular-devkit/build-angular:browser builder. Starting - // on version 12.0.1, a SASS compilation implementation was - // introduced making use of workers and it's unref()-ing the worker - // too early, causing the process to exit early in environments - // like CI or when running Docker builds. - const keepProcessAliveInterval = setInterval(() => {}, 1000); - try { - const { success } = await getLastValueFromAsyncIterableIterator(i); - return success ? 0 : 1; - } finally { - clearInterval(keepProcessAliveInterval); - } + const { success } = await getLastValueFromAsyncIterableIterator(i); + return success ? 0 : 1; } async function parseExecutorAndTarget(