Skip to content

v5.0.0

Compare
Choose a tag to compare
@exogen exogen released this 15 May 20:18
· 18 commits to master since this release

Added

  • Support for installing only the necessary build dependencies! #20
    • If your package.json contains a buildDependencies field, only those will be installed (instead of all devDependencies).
    • buildDependencies must be an array of package names that are found in devDependencies.
    • See the docs and examples.
  • New --verbose option. When enabled, postinstall-build will print informational messages about what it is doing (and why) at each step. Overrides the --silent option (the last one specified wins). #21
  • A warning is now printed if a potentially incompatible version of npm is detected. There are many broken versions of npm that do not work with postinstall-build 😢 – this should help explain why. #23

Changed

  • If postinstall was triggered from npm install (no args) being run in the package itself, and we expect it to have already installed devDependencies, then the installation step will be skipped completely. Previously, npm install --only=dev was run, which should have been a no-op anyway.
  • Previously, if no build artifact was supplied, an exception was thrown. Now the error is logged and the process exits with status code 1. This should effectively be the same as before, but the exact behavior is consistent with the error handling in other steps.