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.
I.e. don't trust
powershell
on the path; always install. Can be hidden behind an npm config option that you can put in yourpackage.json
.Related idea: always put a symlink in
.bin
even if it's to the pre-installed PowerShell. That way scripts can naivelynode_modules/.bin/powershell
and know it will work. Might be useful in certain situations.