From ec178fc9e4b25f78a586e4ae80d478fe7c977f99 Mon Sep 17 00:00:00 2001 From: Geoffrey Bonneville Date: Wed, 22 Nov 2023 20:53:10 +0100 Subject: [PATCH] README: Add doc for preinstall script --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f712ca6..3a622d1 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ Users can override `node-gyp-build` and force compiling by doing `npm install -- Prebuilds will be attempted loaded from `MODULE_PATH/prebuilds/...` and then next `EXEC_PATH/prebuilds/...` (the latter allowing use with `zeit/pkg`) +You can pass a command to execute before building from sources, for instance, to clone a repository. + +``` sh +node-gyp-build ./clone-repo.js +``` + ## Supported prebuild names If so desired you can bundle more specific flavors, for example `musl` builds to support Alpine, or targeting a numbered ARM architecture version.