Add hint for Node.js script compatibility (#1113)

This commit is contained in:
Casey Rodarmor 2022-02-22 17:15:00 -08:00 committed by GitHub
parent a56af47e88
commit fecb5e3f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1847,6 +1847,14 @@ You can customize the above aliases with additional options. For example, if you
alias .j='just --justfile ~/.user.justfile --working-directory ~'
```
### Node.js `package.json` Script Compatibility
The following export statement gives `just` recipes access to local Node module binaries, and makes `just` recipe commands behave more like `script` entries in Node.js `package.json` files:
```make
export PATH := "./node_modules/.bin:" + env_var('PATH')
```
### Alternatives and Prior Art
There is no shortage of command runners out there! Some more or less similar alternatives to `just` include: