Files
claude-task-master/src/utils/getVersion.js
2025-09-17 15:05:33 +02:00

11 lines
337 B
JavaScript

import packageJson from '../../package.json' with { type: 'json' };
/**
* Reads the version from the nearest package.json relative to this file.
* Returns 'unknown' if not found or on error.
* @returns {string} The version string or 'unknown'.
*/
export function getTaskMasterVersion() {
return packageJson.version || 'unknown';
}