fix: resolve executable against PATH instead of cwd on Windows
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
### Describe the bug
On Windows, programs will prefer executables in the current working directory over those in path e.g. a node.exe file in the working directory. This is not the intended behavior, and can cause problems when the developer expects to use executables in their PATH.
### Regression Issue
- [ ] Select this option if this issue appears to be a regression.
### Last Known Working CDK Version
_No response_
### Expected Behavior
Prefer executables on PATH over cwd.
### Current Behavior
Searches for executables in cwd before consulting PATH.
### Reproduction Steps
N/A.
### Possible Solution
_No response_
### Additional Information/Context
_No response_
### CDK CLI Version
N/A
### Framework Version
_No response_
### Node.js Version
All
### OS
Windows
### Language
TypeScript
### Language Version
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.