diff --git a/.gitignore b/.gitignore index bfb020a9..6ba00853 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.idea/ /build/ /fixtures/*/history.js diff --git a/scripts/version.js b/scripts/version.js index cda1ce77..880a807c 100644 --- a/scripts/version.js +++ b/scripts/version.js @@ -20,9 +20,8 @@ function ensureCleanWorkingDirectory() { let status = execSync(`git status --porcelain`) .toString() .trim(); - let lines = status.split('\n'); invariant( - lines.every(line => line === '' || line.startsWith('?')), + status === '', 'Working directory is not clean. Please commit or stash your changes.' ); }