Path of a script that gets executed before running
The script arguments are:
- the publish output directory.That directory is guaranteed to exist when
git-based publish targets, all files are almost ready in there, just waiting for a
git add .that follows
prepublish.This means that you can use this script to place or remove files from the final publish output.
prepublishscript returns with a non-zero exit value, the publish is aborted.