Skip to content

[PAT-730] Add Deno global package support - #26

Closed
Mikola Lysenko (mikolalysenko) wants to merge 3 commits into
mainfrom
feat/pat-730-deno-support
Closed

Mikola Lysenko (mikolalysenko) wants to merge 3 commits into
mainfrom
feat/pat-730-deno-support

Conversation

@mikolalysenko

Copy link
Copy Markdown
Collaborator

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

- 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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
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.

1 participant