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