mirror of
https://github.com/hanzoai/lint-staged.git
synced 2026-10-30 19:37:36 +00:00
7 lines
203 B
JavaScript
7 lines
203 B
JavaScript
import fs from 'node:fs/promises'
|
|
|
|
export const getVersion = async () => {
|
|
const packageJson = JSON.parse(await fs.readFile(new URL('../package.json', import.meta.url)))
|
|
return packageJson.version
|
|
}
|