Socket
Socket
Sign inDemoInstall

@capgo/find-package-manager

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capgo/find-package-manager - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

2

index.d.ts

@@ -1,2 +0,2 @@

export function findPackageManagerType (path?: string): 'yarn' | 'npm' | 'bun' | 'pnpm' | 'unknown';
export function findPackageManagerType (path?: string, defaultPackageManager?: string): 'yarn' | 'npm' | 'bun' | 'pnpm' | 'unknown';
export function findInstallCommand (packageManagerType?: 'yarn' | 'npm' | 'bun' | 'pnpm' | 'unknown'): 'install' | 'add';
import { existsSync } from 'fs';
export const findPackageManagerType = (path = '.') => {
export const findPackageManagerType = (path = '.', defaultPackageManager = 'unknown') => {
const bunPath = `${path}/bun.lockb`;

@@ -20,3 +20,3 @@ const pnpmPath = `${path}/pnpm-lock.yaml`;

}
return 'unknown'
return defaultPm
}

@@ -23,0 +23,0 @@

@@ -5,3 +5,3 @@ {

"public": true,
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",

@@ -8,0 +8,0 @@ "description": "Live update for capacitor apps",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc