Skip to content

Conversation

@lukekarrys
Copy link
Contributor

No description provided.

@lukekarrys lukekarrys requested a review from a team as a code owner June 14, 2023 04:29
@lukekarrys lukekarrys force-pushed the lk/pkg-cleanup branch 3 times, most recently from 5d2330f to 1ae5f61 Compare June 14, 2023 05:42
This removes `directories.bin` from npm's `package.json` since it
instead uses the `bin` object syntax to create the bins for `npm` and
`npx`. The non-JS files in that directory are used by the Node
installer, and are not actually bin files that npm is responsible for
linking.

This also does a few items of cleanup around those `bin/` files:

- Removes the unused `node-gyp-bin` files. Those are remnants from
  before `@npmcli/run-script` was introduced in `npm@7`. Now that
  package is responsible for setting `PATH` with the appropriate
  `node-gyp` bin.
- Fixes an issue in `bin/npx` where the exit code was not being read
  from the `npx prefix` call.
- Test the contents of the `bin/(npm|npx)(.cmd)?` files to ensure the
  only differences between them are `npm -> npx`
@lukekarrys lukekarrys force-pushed the lk/pkg-cleanup branch 2 times, most recently from 05aee06 to c3160cf Compare June 14, 2023 07:29
Base automatically changed from lk/bin-cleanup to latest June 14, 2023 18:54
@lukekarrys lukekarrys merged commit 40d7e09 into latest Jun 14, 2023
@lukekarrys lukekarrys deleted the lk/pkg-cleanup branch June 14, 2023 18:55
@github-actions github-actions bot mentioned this pull request Jun 14, 2023
@github-actions github-actions bot mentioned this pull request Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants