You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dlx): smart binary detection for packages with mismatched names
Fixes issue where dlxPackage couldn't find binaries when package name
didn't match binary name (e.g., @socketsecurity/cli with bin: { socket }).
Changes:
- Auto-detects single binaries regardless of name
- Added optional binaryName parameter for multi-binary packages
- Improved fallback logic for binary name resolution
Resolves socket-cli bootstrap issues with @socketsecurity/cli package.
-**Smart binary detection in dlxPackage**: Automatically finds the correct binary even when package name doesn't match binary name
13
+
- If package has single binary, uses it automatically regardless of name
14
+
- Resolves packages like `@socketsecurity/cli` (binary: `socket`) without manual configuration
15
+
- Falls back to intelligent name matching for multi-binary packages
16
+
-**Optional binaryName parameter**: Added `binaryName` option to `DlxPackageOptions` for explicit binary selection when auto-detection isn't sufficient
17
+
18
+
### Fixed
19
+
20
+
-**Binary resolution for scoped packages**: Fixed issue where `dlxPackage` couldn't find binaries when package name didn't match binary name (e.g., `@socketsecurity/cli` with `bin: { socket: '...' }`)
0 commit comments