A note on adding @vercel/ncc as a devDependency of this project:
This makes it so you can run the documented command for building ifnpx is put in front. Note that if a dependency is installed locally (i.e. it's in the node_modules/.bin dir), npx will use that.
This ensures everyone building this action gets the same result.
This avoids having to install ncc globally (which is not always desirable).
Further changes are possible (e.g. creating a build script so you can just run npm run build and abstract the exact build command away and removes the need for invoking npx), but the aim of this Pull Request is to be the minimal set of changes (I could think of) to make the build instructions work.
Followup to https://github.com/gitleaks/gitleaks-action/pull/101#issuecomment-1310501081 - update the quickstart so that one can follow the build instructions on a "clean system" (i.e. one where nvm/Node.js are already installed).
A note on adding
@vercel/ncc
as adevDependency
of this project:npx
is put in front. Note that if a dependency is installed locally (i.e. it's in thenode_modules/.bin
dir),npx
will use that.ncc
globally (which is not always desirable).Further changes are possible (e.g. creating a build script so you can just run
npm run build
and abstract the exact build command away and removes the need for invokingnpx
), but the aim of this Pull Request is to be the minimal set of changes (I could think of) to make the build instructions work.