keycloak_theme/scripts/build-storybook.ts

13 lines
304 B
TypeScript
Raw Normal View History

import * as child_process from "child_process";
2024-07-27 00:44:32 +02:00
(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 });
}