@capgo/find-package-manager
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2316