()
| 5 | import { PKG_ROOT } from "~/consts.js"; |
| 6 | |
| 7 | export const getVersion = () => { |
| 8 | const packageJsonPath = path.join(PKG_ROOT, "package.json"); |
| 9 | |
| 10 | const packageJsonContent = fs.readJSONSync(packageJsonPath) as PackageJson; |
| 11 | |
| 12 | return packageJsonContent.version ?? "1.0.0"; |
| 13 | }; |
no outgoing calls
no test coverage detected