keycloak_theme/scripts/build-storybook.ts
2024-09-08 12:00:07 +02:00

13 lines
304 B
TypeScript

import * as child_process from "child_process";
(async () => {
run("yarn build");
run("npx build-storybook");
})();
function run(command: string, options?: { env?: NodeJS.ProcessEnv }) {
console.log(`$ ${command}`);
child_process.execSync(command, { stdio: "inherit", ...options });
}