Releases: exogen/postinstall-build
Releases · exogen/postinstall-build
v2.1.0
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 isnpm run build
.
Changed
- Bail earlier and print a more useful error when you don't supply a build artifact.
v2.0.0
Changes
- Smarter
npm prune
whenpostinstall-build
is finishing up. Ifpostinstall-build
happens to run due to annpm install
(no arguments) in a package's directory in order to install its dependencies (for development or testing purposes), the finalnpm prune --production
would removedevDependencies
. We now attempt to detect this case so as to leave the expected dependencies around afterward.