mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
14 lines
359 B
JavaScript
14 lines
359 B
JavaScript
|
import shell from 'shelljs';
|
||
|
import dedent from 'ts-dedent';
|
||
|
|
||
|
const logger = console;
|
||
|
|
||
|
// exit with code 1 if there are some changed files
|
||
|
if (shell.exec('git status --porcelain').stdout.trim() !== '') {
|
||
|
logger.error(dedent`
|
||
|
Git repo is dirty,
|
||
|
please consider updating lockfiles by running "yarn bootstrap --reset --core"
|
||
|
`);
|
||
|
process.exit(1);
|
||
|
}
|