Skip to content

Releases: exogen/postinstall-build

v2.1.0

21 Sep 10:02
Compare
Choose a tag to compare

Added

  • If your build command is an npm script (npm run …), you can supply the new option --script with the script name instead of the full command, e.g. --script build or --script=build.
  • If you don't supply a build command (or --script), the default is npm run build.

Changed

  • Bail earlier and print a more useful error when you don't supply a build artifact.

v2.0.0

19 Sep 16:47
Compare
Choose a tag to compare

Changes

  • Smarter npm prune when postinstall-build is finishing up. If postinstall-build happens to run due to an npm install (no arguments) in a package's directory in order to install its dependencies (for development or testing purposes), the final npm prune --production would remove devDependencies. We now attempt to detect this case so as to leave the expected dependencies around afterward.

v1.0.1

19 Sep 10:25
Compare
Choose a tag to compare

Changed

  • Update Babel and postinstall-build versions used in README example.

v1.0.0

19 Sep 10:11
Compare
Choose a tag to compare

Changed

  • Use spawn with stdio: "inherit" instead of exec to run commands; output won't be swallowed anymore unless the new --silent flag is passed. (#4)