npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.46k stars 3.15k forks source link

[BUG] package binaries with .hidden folders don't install globally #7728

Closed thepiwo closed 1 month ago

thepiwo commented 2 months ago

Is there an existing issue for this?

This issue exists in the latest npm version

Current Behavior

With nodejs 20.16.0 (npm 10.8.1) global install seems to not install binaries from hidden folders.

e.g.

"bin": {
    "debug-bin": ".build/cli.js"
  },

Expected Behavior

With nodejs 20.15.1 (npm 10.7.0) it still worked.

Steps To Reproduce

I described steps to reproduce the issue in a repository with an example: https://github.com/thepiwo/nodejs-debug-bin

Environment

milaninfy commented 2 months ago

Reproduced the issue locally with 10.8.1. works fine on 10.8.0.

milaninfy commented 1 month ago

fixed in https://github.com/npm/package-json/pull/119