@sentry/wizard
Version:
Sentry wizard helping you to configure your project
14 lines (13 loc) • 609 B
TypeScript
export declare function checkPackageVersion(appPackage: {
dependencies?: Record<string, string>;
devDependencies?: Record<string, string>;
}, 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;