Skip to content

deno install -g npm:bats-core@1 does not install bats #30696

@felipecrs

Description

@felipecrs

Version: Deno 2.5.0

bats-core has the binary defined through directories.bin inside package.json.

https://github.com/bats-core/bats-core/blob/855844b8344e67d60dc0f43fa39817ed7787f141/package.json#L11

But looks like Deno does not handle this, although this should be supported as per the npm's package.json spec:

https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin:~:text=Note%20that%20you%20can%20also%20set%20the%20executable%20files%20using%20directories.bin.

And of course, it works with npm install -g bats-core@1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions