cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open thepiwo opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

This issue exists in the latest npm version

  • [X] I am using the latest npm

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

  • npm: 10.8.1
  • node: 20.16.0

thepiwo avatar Aug 16 '24 08:08 thepiwo

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

milaninfy avatar Aug 16 '24 18:08 milaninfy

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

milaninfy avatar Sep 17 '24 14:09 milaninfy