Skip to content

Support chocolatey's .exe wrapper #20

@koppor

Description

@koppor

Result from https://github.com/orgs/jbangdev/discussions/2025 --> https://github.com/orgs/jbangdev/discussions/2025#discussioncomment-13920781

The npm wrapper does not search for jbang.exe created by chocolatey.

That results in different JBang versions on Windows:

>npx @jbangdev/jbang jabkit@jabref --help
[jbang] There is a new version of jbang available!
[jbang] You have version 0.116.0 and 0.126.1 is the latest.
...
>jbang --version
0.126.0
>C:\ProgramData\chocolatey\bin\jbang.exe --version
0.128.5

>C:\Users\olive\.jbang\bin\jbang --version
0.126.3

>C:\Users\olive\.jbang\bin\jbang.cmd --version
0.126.3
`´`

https://github.com/jbangdev/jbang-npm/blob/main/jbang.js#L58 needs to be adapted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions