Repository navigation
Conversation
pkg-up pulls in find-up and five more packages to find the nearest package.json. empathic does the same with no dependencies, as suggested by e18e module-replacements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
pkg-upwithempathic, the replacement suggested by e18e module-replacements.pkg-upwas used only ingetPackageType(util.js), to find the nearestpackage.jsonand read itstype. It now callsrequire('empathic/package').up({ cwd }). That also works whencwdis a file path, whichrequireServerPluginFromPathpasses.empathichas no dependencies, so a production install goes from 95 to 89 packages:pkg-up,find-up@6,locate-path,p-locate,p-limit,yocto-queueandpath-existsare replaced byempathic.Checklist
npm run test: same results asmainlocally on Node 24.11.1 (222 passing). The 7 tests that fail or are cancelled onmainin my environment do the same on this branch: start, graceful shutdown and app-crash tests that time out.util.jsstays at 100% coverage. The global coverage threshold fails on both branches because oflib/watch/fork.js.🤖 Generated with Claude Code