Skip to content

fix: remove unnecessary package.json values - #6555

Merged
lukekarrys merged 2 commits into
latestfrom
lk/pkg-cleanup
Jun 14, 2023
Merged

fix: remove unnecessary package.json values#6555
lukekarrys merged 2 commits into
latestfrom
lk/pkg-cleanup

Conversation

@lukekarrys

Copy link
Copy Markdown
Contributor

No description provided.

@lukekarrys
lukekarrys requested a review from a team as a code ownerJune 14, 2023 04:29
@lukekarrys
lukekarrysforce-pushed the lk/pkg-cleanup branch 3 times, most recently from 5d2330f to 1ae5f61CompareJune 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
lukekarrysforce-pushed the lk/pkg-cleanup branch 2 times, most recently from 05aee06 to c3160cfCompareJune 14, 2023 07:29
Comment threadworkspaces/arborist/package.json
Base automatically changed from lk/bin-cleanup to latestJune 14, 2023 18:54
@lukekarrys
lukekarrys merged commit 40d7e09 into latestJun 14, 2023
@lukekarrys
lukekarrys deleted the lk/pkg-cleanup branch June 14, 2023 18:55
@github-actionsgithub-actionsBot mentioned this pull request Jun 14, 2023
@github-actionsgithub-actionsBot mentioned this pull request Oct 6, 2023
Sign up for freeto 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

@lukekarrys@wraithgar