1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-04-08 08:31:57 +08:00
Michael Shilman e69eae0e1c
Fix typo
2022-10-18 00:33:49 +08:00

25 lines
644 B
TypeScript

import { exec } from '../utils/exec';
import type { Task } from '../task';
const command = `nx run-many --target="check" --all --parallel --exclude=@storybook/addon-storyshots,@storybook/addon-storyshots-puppeteer`;
export const check: Task = {
description: 'Typecheck the source code of the monorepo',
dependsOn: ['compile'],
async ready() {
return false;
},
async run({ codeDir }, { dryRun, debug }) {
return exec(
command,
{ cwd: codeDir },
{
startMessage: '🥾 Checking types validity',
errorMessage: '❌ Unsound types detected',
dryRun,
debug,
}
);
},
};