keycloak_theme/src/bin/tools/grant-exec-perms.ts

9 lines
338 B
TypeScript
Raw Normal View History

2021-02-28 18:40:57 +01:00
import { getProjectRoot } from "./getProjectRoot";
import { join as pathJoin } from "path";
import child_process from "child_process";
Object.entries<string>(require(pathJoin(getProjectRoot(), "package.json"))["bin"])
.forEach(([, scriptPath]) => child_process.execSync(`chmod +x ${scriptPath}`, { "cwd": getProjectRoot() }));