Open
Description
Binaries can also be set using directories.bin
and not only bin
. bats
is an example of it.
https://docs.npmjs.com/cli/v7/configuring-npm/package-json#directoriesbin
To reproduce:
❯ volta --version
1.0.4
❯ npm --version
7.11.1
❯ npm install --global bats
added 1 package, and audited 2 packages in 2s
found 0 vulnerabilities
❯ which bats
bats not found
❯ docker run --rm -it node:14 bash -xc 'npm install --global bats && bats --version'
+ npm install --global bats
/usr/local/bin/bats -> /usr/local/lib/node_modules/bats/bin/bats
+ bats@1.3.0
added 1 package from 1 contributor in 0.353s
+ bats --version
Bats 1.3.0
The above works fine when not using volta.
References bats-core/bats-core#430.