cspotcode / npm-pwsh

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

Force install? #4

Closed cspotcode closed 6 years ago

cspotcode commented 6 years ago

I.e. don't trust powershell on the path; always install. Can be hidden behind an npm config option that you can put in your package.json.

Related idea: always put a symlink in .bin even if it's to the pre-installed PowerShell. That way scripts can naively node_modules/.bin/powershell and know it will work. Might be useful in certain situations.

cspotcode commented 6 years ago

This is current behavior. The code that checks for pre-existing pwsh on your $PATH is effectively ignored.