2022-08-12 17:17:18 +10:00

14 lines
362 B
TypeScript

import { pathExists } from 'fs-extra';
import type { Task } from '../task';
import { exec } from '../utils/exec';
export const build: Task = {
before: ['create'],
async ready(_, { builtSandboxDir }) {
return pathExists(builtSandboxDir);
},
async run(_, { sandboxDir }) {
return exec(`yarn build-storybook --quiet`, { cwd: sandboxDir });
},
};