11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import * as child_process from "child_process";
|
|
|
|
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 });
|
|
}
|