From 30ef105bb03898274d7f96d34de99fc9d2559ea5 Mon Sep 17 00:00:00 2001 From: BittuBarnwal7479 Date: Sat, 27 Jun 2026 17:48:42 +0530 Subject: [PATCH 1/5] fix: smart formats support on windows --- tasks/smart-format.mts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/smart-format.mts b/tasks/smart-format.mts index babd6a38d0..d7010a58ef 100644 --- a/tasks/smart-format.mts +++ b/tasks/smart-format.mts @@ -61,5 +61,10 @@ if (existingFiles.length > 0) { } function quoteAll(files: string[]): string { + if (process.platform === 'win32') { + return files.join(' ') + } + return files.map((f) => `'${f.replaceAll("'", "'\\''")}'`).join(' ') } + From 1e184778e71a5a7157f692b87a72e41dbe6dc2f3 Mon Sep 17 00:00:00 2001 From: BittuBarnwal7479 Date: Sat, 27 Jun 2026 17:49:09 +0530 Subject: [PATCH 2/5] fix: format code --- tasks/smart-format.mts | 1 - 1 file changed, 1 deletion(-) diff --git a/tasks/smart-format.mts b/tasks/smart-format.mts index d7010a58ef..7bc90cd4d0 100644 --- a/tasks/smart-format.mts +++ b/tasks/smart-format.mts @@ -67,4 +67,3 @@ function quoteAll(files: string[]): string { return files.map((f) => `'${f.replaceAll("'", "'\\''")}'`).join(' ') } - From 93be17e7151a5e697eed746154b464cc64730802 Mon Sep 17 00:00:00 2001 From: BittuBarnwal7479 Date: Sat, 27 Jun 2026 18:11:23 +0530 Subject: [PATCH 3/5] fix(dev): make native git hooks work on Windows --- tasks/git-hooks/shared.mts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tasks/git-hooks/shared.mts b/tasks/git-hooks/shared.mts index f129696d4e..7a5d0e0676 100644 --- a/tasks/git-hooks/shared.mts +++ b/tasks/git-hooks/shared.mts @@ -6,7 +6,13 @@ export function execAsync( extraEnv: Record = {}, ) { return new Promise((resolve, reject) => { - const child = spawn(command, args, { + const isWindowsYarn = process.platform === 'win32' && command === 'yarn' + const commandForPlatform = isWindowsYarn ? 'cmd.exe' : command + const argsForPlatform = isWindowsYarn + ? ['/d', '/s', '/c', 'yarn.cmd', ...args] + : args + + const child = spawn(commandForPlatform, argsForPlatform, { stdio: 'inherit', env: { ...process.env, ...extraEnv }, }) From e54861ce616079230a3bd7278e3837e358116dc3 Mon Sep 17 00:00:00 2001 From: BittuBarnwal7479 Date: Sat, 27 Jun 2026 18:21:00 +0530 Subject: [PATCH 4/5] fix: fail prettier check --- .prettierignore | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.prettierignore b/.prettierignore index 8e678fb814..6547d6d1a4 100644 --- a/.prettierignore +++ b/.prettierignore @@ -48,3 +48,7 @@ packages/testing/config /.nx/cache /.nx/workspace-data + +# Ignore agent instruction symlinks that are checked out as placeholder files on Windows +/CLAUDE.md +/GEMINI.md From e1be0abc065f8f57d09589d62184545625b21500 Mon Sep 17 00:00:00 2001 From: BittuBarnwal7479 Date: Sat, 27 Jun 2026 18:26:02 +0530 Subject: [PATCH 5/5] fix(dev): run hook build before lint --- tasks/git-hooks/pre-push.mts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasks/git-hooks/pre-push.mts b/tasks/git-hooks/pre-push.mts index 04539e41e9..f2b424505f 100644 --- a/tasks/git-hooks/pre-push.mts +++ b/tasks/git-hooks/pre-push.mts @@ -16,8 +16,13 @@ if (currentBranch === 'next' || currentBranch.startsWith('release/')) { process.exit(0) } +const buildResult = await execAsync('yarn', ['build'], { NX_TUI: 'false' }) + +if (buildResult !== 0) { + process.exit(buildResult) +} + const results = await Promise.allSettled([ - execAsync('yarn', ['build'], { NX_TUI: 'false' }), execAsync('yarn', ['lint']), execAsync('yarn', ['prettier', '--check', '.']), execAsync('yarn', ['check']),