package.json script runner: add feature
package.json script runner: add feature: a task in smol-software-harbor (Harbor dataset). Like npm, the runner should execute pre<name before and post<name after a script when those scripts exist. Change plan() in src/plan.js (an ES module) so that, for example, plan(scripts, 'build') returns the…
The task
Like npm, the runner should execute `pre<name>` before and `post<name>` after a script when those scripts exist. Change `plan()` in `src/plan.js` (an ES module) so that, for example, `plan(scripts, 'build')` returns the steps `prebuild`, `build`, `postbuild` in that order (each as `{ name, cmd }`). Hooks alone are…
Part of efederici/smol-software-harbor.