diff --git a/doc/contributing/building-node-with-ninja.md b/doc/contributing/building-node-with-ninja.md index 01a04c3c2cfbe2..a5e89e87e6febe 100644 --- a/doc/contributing/building-node-with-ninja.md +++ b/doc/contributing/building-node-with-ninja.md @@ -7,6 +7,12 @@ doing so can be significantly quicker than using `make`. Please see [Ninja][] is supported in the Makefile. Run `./configure --ninja` to configure the project to run the regular `make` commands with Ninja. +If you wish to only modify JS layer in `lib`, you can use: + +```bash +./configure --ninja --node-builtin-modules-path "$(pwd)" +``` + For example, `make` will execute `ninja -C out/Release` internally to produce a compiled release binary, It will also execute `ln -fs out/Release/node node`, so that you can execute `./node` at