2024-06-03 23:26:04 +02:00
|
|
|
import * as child_process from "child_process";
|
|
|
|
|
2024-09-10 19:31:03 +02:00
|
|
|
run("yarn build");
|
|
|
|
run("npx build-storybook");
|
|
|
|
|
2024-06-03 23:26:04 +02:00
|
|
|
function run(command: string, options?: { env?: NodeJS.ProcessEnv }) {
|
|
|
|
console.log(`$ ${command}`);
|
|
|
|
|
|
|
|
child_process.execSync(command, { stdio: "inherit", ...options });
|
|
|
|
}
|