mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-16 05:03:11 +08:00
11 lines
330 B
JavaScript
11 lines
330 B
JavaScript
/* eslint-disable no-console */
|
|
const shell = require('shelljs');
|
|
|
|
// exit with code 1 if there are some changed files
|
|
if (shell.exec('git status --porcelain').stdout.trim() !== '') {
|
|
console.error(
|
|
'Git repo is dirty, please consider updating lockfiles by running `yarn bootstrap --reset --core`'
|
|
);
|
|
process.exit(1);
|
|
}
|