VTable/common/scripts/get-package-json.js
2023-11-23 12:23:05 +08:00

8 lines
200 B
JavaScript

const fs = require('fs')
function getPackageJson(pkgJsonPath) {
const pkgJson = fs.readFileSync(pkgJsonPath, { encoding: 'utf-8' })
return JSON.parse(pkgJson);
}
module.exports = getPackageJson;