cspotcode / npm-pwsh

Install PowerShell via npm for use in npm scripts or elsewhere.
12 stars 5 forks source link

Support cross-drive installation (pwsh extracted to one drive, local npm project on another) #24

Open cspotcode opened 4 years ago

cspotcode commented 4 years ago

The npm ecosystem uses a library called cmd-shim to emulate symlinks on Windows. It spits out .cmd and .ps1 shims that behave like symlinks, invoking the target executable.

It has a bug with creating a shim that delegates to an executable on a different drive letter. (e.g C: -> D: or vice versa)

To support this on our end, we should switch to @zkochan/cmd-shim because they have fixed the bug. https://github.com/pnpm/cmd-shim/issues/17

This issue is awaiting a pull request from the community.