Skip to content

Conversation

lishaduck
Copy link
Contributor

@lishaduck lishaduck commented Jul 29, 2025

I started investigating #1432, but quickly hit Windows incompatibilities.


This fixes pnpm build on Windows.
Otherwise, the string escapes in the build script are misinterpreted.

After enabling shellEmulator, husky needed to be moved off npm. I can't repro the issues noted with pnpm over npm in CONTRIBUTING.


Also, gitdown doesn't work on Windows, this glob evals to windows backslashes when glob wants forward slashes; I have to use git push --no-verify.

@brettz9
Copy link
Collaborator

brettz9 commented Jul 29, 2025

The issue with pnpm run test-index (or pnpm test-index) is that it ends up running all the tests, rather than just the ones supplied via --invalid and such. I think this must be because test/rule/index.js tries to access variables like process.env.npm_config_invalid.

@lishaduck
Copy link
Contributor Author

Alright, fixed it!

The whole npm_config_ hack is deprecated anyway and logs a bunch of warnings since npm 11.2, so I figure this is right direction.

This fixes `pnpm build` on Windows.
Otherwise, the string escapes in the `build` script are misinterpreted.

After enabling `shellEmulator`, husky needed to be moved off npm.
I can't repro the issues noted with pnpm over npm in CONTRIBUTING.
@brettz9 brettz9 merged commit 8451201 into gajus:main Jul 29, 2025
4 checks passed
@brettz9
Copy link
Collaborator

brettz9 commented Jul 29, 2025

The whole npm_config_ hack is deprecated anyway and logs a bunch of warnings since npm 11.2, so I figure this is right direction.

Excellent, thanks for the PRs!

@lishaduck lishaduck deleted the shell-emulator branch July 30, 2025 16:37
Copy link

github-actions bot commented Aug 1, 2025

🎉 This PR is included in version 52.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants