flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
16 lines (13 loc) • 411 B
JavaScript
import fs__default from 'fs/promises';
import cjson from 'comment-json';
import { packageJsonFile } from '../consts.js';
async function getPackageJson() {
try {
return cjson.parse(await fs__default.readFile(packageJsonFile, "utf-8"));
} catch {
console.error(`Unable to find ${packageJsonFile}.`);
process.exit(1);
}
}
export { getPackageJson };
//# sourceMappingURL=get-package-json.js.map