Skip to content

Fix the use of generate.mjs on Windows#202

Merged
kainino0x merged 1 commit into
gpuweb:mainfrom
Jiawei-Shao:fix-generate-mjs-windows
May 13, 2026
Merged

Fix the use of generate.mjs on Windows#202
kainino0x merged 1 commit into
gpuweb:mainfrom
Jiawei-Shao:fix-generate-mjs-windows

Conversation

@Jiawei-Shao
Copy link
Copy Markdown
Contributor

Replace bikeshed-to-ts and prettier with bare command names (bikeshed-to-ts, prettier). The ./ prefix is not recognized by cmd.exe, causing npm run generate to fail on Windows. Since npm run adds .bin to PATH, we can directly use bare command names on all platforms.

Replace `bikeshed-to-ts` and `prettier` with bare command names
(`bikeshed-to-ts`, `prettier`). The `./ prefix` is not recognized by
`cmd.exe`, causing `npm run generate` to fail on Windows. Since
`npm run` adds `.bin` to `PATH`, we can directly use bare command
names on all platforms.
@Jiawei-Shao Jiawei-Shao requested review from Kangz and kainino0x May 13, 2026 03:18
@Jiawei-Shao Jiawei-Shao changed the title fix: use bare command names for Windows compatibility in generate.mjs Fix the use of generate.mjs on Windows May 13, 2026
Copy link
Copy Markdown
Collaborator

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I didn't realize they would be in the PATH. LGTM

@kainino0x kainino0x merged commit 34d2260 into gpuweb:main May 13, 2026
1 check passed
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.

2 participants