@sentry/wizard
Version:
Sentry wizard helping you to configure your project
11 lines (10 loc) • 524 B
TypeScript
export declare function checkPackageVersion(appPackage: unknown, packageName: string, acceptableVersions: string, canBeLatest: boolean): boolean;
/**
* Determines if the passed `package.json` object has the passed package installed.
*
* @param appPackage The `package.json` object
* @param packageName The name of the package to check for
*
* @returns `true` if the package is installed, `false` otherwise
*/
export declare function hasPackageInstalled(appPackage: Record<string, any>, packageName: string): boolean;