cspotcode / npm-pwsh

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

Fix `npm install` failure for development #7

Closed cspotcode closed 6 years ago

cspotcode commented 6 years ago

This only affects contributors to npm-get-powershell, not users.

git clone https://github.com/cspotcode/npm-get-powershell/
npm install

... attempts to run the postinstall script, which fails because that script is built and not versioned in git. Also it doesn't need to run in development.

Fix is to commit a shim script to git that detects absense of postinstall script and skips it. Don't forget to add the shim to published .tgzs as well.