@nx/next
Version:
8 lines (7 loc) • 353 B
TypeScript
/**
* Get the installed Next.js major version at runtime without requiring a Tree object.
* This is useful for executors that need to detect the Next.js version during execution.
*
* @returns The major version number of the installed Next.js package, or null if not found
*/
export declare function getInstalledNextVersionRuntime(): number | null;