INNER CODE UNIT · JavaScript
binaryPath
cerbos/cerbos · npm/packages/cerbosctl/index.js:24
const binaryPath = (() => {
try {
return require.resolve(binaryPackage);
} catch (error) {
throw new Error(`Couldn't find the "${binaryPackage}" package.
Make sure optional dependencies are installed.`, { cause: error });
}
})();
function run(...args) {
execFileSync(binaryPath, args, { stdio: "inherit" });
}
module.exports = { binaryPath, run };