Skip to content

Conversation

@mikolalysenko
Copy link
Contributor

Add getDenoGlobalPrefix() function to discover packages installed globally via Deno's npm cache.

Why?

  • Enables socket-patch to find and patch packages installed using deno install npm:<package>
  • Completes runtime support for Node, Bun, and now Deno

Changes

  • Add getDenoGlobalPrefix() in npm-crawler.ts and global-packages.ts
  • Integrate Deno paths into global package discovery

Public Changelog

N/A

Checklist

  • Is PR safe to revert (yes/no)?: yes

Related Issues

Fixes PAT-730 - https://linear.app/socket/issue/PAT-730

🤖 Generated with Claude Code

mikolalysenko and others added 3 commits January 22, 2026 15:26
- Add getBunGlobalPrefix() function to detect bun's global package path
- Update getGlobalNodeModulesPaths() to include pnpm, yarn, and bun paths
- Export getBunGlobalPrefix() for external use

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Export the getBunGlobalPrefix function to allow checking bun's global
package prefix. Also adds test coverage for the export.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add getDenoGlobalPrefix() function to discover packages installed globally
via Deno's npm cache. This enables socket-patch to find and patch packages
installed using `deno install npm:<package>`.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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