chore: support Windows in dev env - #68
Draft
bespoyasov wants to merge 7 commits into
Draft
Conversation
Add CLAUDE.md to .prettierignore so Prettier skips the symlink target, and enable core.symlinks in the prepare script so Windows clones checkout the symlink correctly after pnpm install. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
URL.pathname returns /C:/Users/... on Windows, breaking path alias resolution. fileURLToPath() handles this correctly cross-platform. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
/tmp/ doesn't exist on Windows. Use perPlatform() to pick os.tmpdir() on Windows while keeping /tmp/ on Unix for stable e2e snapshot column alignment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
On Windows, scripts need a .cmd launcher instead of a Unix shebang and chmod. Split binary writing into writeUnixBinary/writeWindowsBinary in a new fs.ts module and add IS_WINDOWS to the e2e env constants. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Windows uses ; not : as the PATH separator. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Windows uses USERPROFILE/TEMP/TMP instead of HOME/TMPDIR. Set the Windows equivalents alongside the Unix vars so both are available. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test relies on /usr/bin as a PATH with git but not node, which has no portable Windows equivalent. Other system-check tests already validate the failure UI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows up on #67.
Fixes Windows compatibility issues in the dev pipeline so tests can pass on Windows.
fileURLToPath()in Vitest configs instead ofURL.pathnameos.tmpdir()on Windows for test temp directories.cmdlaunchers on Windows)path.delimiterfor PATH separator in e2e sessionsUSERPROFILE,TEMP,TMP) in e2e sessions/usr/bin-dependent e2e test on Windows (so far)Not included
xterm-256coloris harmless on Windows, left as-isRemaining work
__tests__/shared/project-scaffold/index.ts:22-24)__tests__/e2e/system-check-failure.e2e.ts:22-26)Test plan
pnpm qapasses (typecheck + lint + 189 tests)pnpm installsetscore.symlinks=trueandCLAUDE.mdis a real symlinkpnpm test:e2epasses on Windows