Skip to content

docs: note for running the repo's pnpm scripts on native Windows - #1918

Merged
amrmelsayed merged 1 commit into
mainfrom
builder/task-_205
Nov 18, 2026
Merged

amrmelsayed merged 1 commit into
mainfrom
builder/task-_205

Conversation

@amrmelsayed

@amrmelsayed amrmelsayed commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On native Windows, pnpm runs package.json scripts through cmd.exe, so the root scripts that invoke .sh files directly (local-install, and build, which starts with scripts/check-main-fresh.sh) fail with:

'scripts' is not recognized as an internal or external command

This adds a short Native Windows note to the codev skill's "Local build and install (this repository)" section, directly under the local-install paragraph. It covers:

  • the one-time fix: pnpm config set script-shell "C:\Program Files\Git\bin\bash.exe"
  • use the full Git Bash path, because a bare bash can resolve to WSL
  • the setting is user-global, so it applies to every pnpm project on the machine
  • undo with pnpm config delete script-shell

Placement

The codev skill is the only place that documents local build/install for contributors. README's Contributing section has no build instructions and there is no CONTRIBUTING.md, so the note sits next to the existing instructions instead of starting a second home for them.

Why a docs PR touches five files

  • The skill is one document held in four copies (.claude, .codex, and both under codev-skeleton/). spec-1280-skills-parity.test.ts requires the codev skill to be byte-identical across all four, so the skeleton copies had to change with the root ones.
  • packages/codev/src/lib/shipped-skill-hashes.ts is the generated registry of shipped skill versions. It was regenerated with the repo's generator (two new hash lines, one per provider) so codev update does not treat the new text as a user edit.

No package.json or script changes. CLAUDE.md / AGENTS.md are untouched.

Verification

  • The four skill copies are identical (cmp).
  • The hash registry was regenerated by generate-shipped-skill-hashes.mts.
  • Not run locally: vitest. The worktree has no node_modules, so the parity and skill-refresh tests are left to CI on this PR.
  • The fix itself was verified by the architect on a Windows 11 machine.

…Windows

pnpm runs package.json scripts through cmd.exe on Windows, so `pnpm build`
and `pnpm local-install` (which invoke .sh files) fail until script-shell
points at Git Bash. Document the one-time setting, its user-global scope,
how to undo it, and why the full path is needed, in the codev skill's local
build section (four mirrored copies; shipped skill hashes regenerated).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant