From 33d0d4f7ff51c109015bc18d31dc4560fda11b17 Mon Sep 17 00:00:00 2001 From: Jonondarnad Battuya Date: Thu, 21 Nov 2024 16:30:29 +0800 Subject: [PATCH 1/2] fix:biome exec maxBuffer size --- .idea/workspace.xml | 95 +++++++++++++++++++ .../src/checkers/biome/cli.ts | 1 + 2 files changed, 96 insertions(+) create mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 00000000..376c0350 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1732177413375 + + + + + + \ No newline at end of file diff --git a/packages/vite-plugin-checker/src/checkers/biome/cli.ts b/packages/vite-plugin-checker/src/checkers/biome/cli.ts index ce45c103..3f3fb489 100644 --- a/packages/vite-plugin-checker/src/checkers/biome/cli.ts +++ b/packages/vite-plugin-checker/src/checkers/biome/cli.ts @@ -31,6 +31,7 @@ export function runBiome(command: string, cwd: string) { command, { cwd, + maxBuffer: Infinity }, (error, stdout, stderr) => { resolve([...parseBiomeOutput(stdout)]) From 2f7d83409983afb6e5d27b74c4f8a8ba8dbdcbe0 Mon Sep 17 00:00:00 2001 From: Jonondarnad Battuya Date: Thu, 21 Nov 2024 18:39:15 +0800 Subject: [PATCH 2/2] removed workspace file and lint fix --- .idea/workspace.xml | 95 ------------------- .../src/checkers/biome/cli.ts | 2 +- 2 files changed, 1 insertion(+), 96 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 376c0350..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1732177413375 - - - - - - \ No newline at end of file diff --git a/packages/vite-plugin-checker/src/checkers/biome/cli.ts b/packages/vite-plugin-checker/src/checkers/biome/cli.ts index 3f3fb489..2b1c4a81 100644 --- a/packages/vite-plugin-checker/src/checkers/biome/cli.ts +++ b/packages/vite-plugin-checker/src/checkers/biome/cli.ts @@ -31,7 +31,7 @@ export function runBiome(command: string, cwd: string) { command, { cwd, - maxBuffer: Infinity + maxBuffer: Number.POSITIVE_INFINITY }, (error, stdout, stderr) => { resolve([...parseBiomeOutput(stdout)])