Powershell Core is the only version which is available for Linux and macOS, so the ability to use "usePWSH" parameter should be allowed only for Windows platform. On Linux and macOS usage of pwsh should be default and should not require additional parameters/configuration.
Because how Powershell Core is distributed and installed on Windows platform, it should be possible to use pwsh executable which was distributed inside application itself, either from top-level or from 'powershell' directory. I think that adding 'https://www.npmjs.com/package/pwsh' as dependency could help achieving this goal.
Powershell Core has now also 'pwsh-preview' executable for preview versions.
@rannn505 This feedback is based on @BenjaminMichael version but it seems likely that his PR will be merged. Thoughts?
Hi,
Powershell Core is the only version which is available for Linux and macOS, so the ability to use "usePWSH" parameter should be allowed only for Windows platform. On Linux and macOS usage of pwsh should be default and should not require additional parameters/configuration.
Because how Powershell Core is distributed and installed on Windows platform, it should be possible to use pwsh executable which was distributed inside application itself, either from top-level or from 'powershell' directory. I think that adding 'https://www.npmjs.com/package/pwsh' as dependency could help achieving this goal.
Powershell Core has now also 'pwsh-preview' executable for preview versions.
@rannn505 This feedback is based on @BenjaminMichael version but it seems likely that his PR will be merged. Thoughts?