import { resolve } from 'path' ; import { readFile } from 'fs-extra' ; returns internal export async function getSdkVersion ( ) { return JSON . parse ( await readFile ( resolve ( __dirname , '../../package.json' ) , 'utf8' ) ) . version ; }