Skip to content

Commit

Permalink
fix(config-validator): don't ignore arguments after --strict option (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
fgreinacher committed Aug 11, 2023
1 parent 4484cbc commit c38e46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config-validator.ts
Expand Up @@ -62,7 +62,7 @@ type PackageJson = {
const strictArgIndex = process.argv.indexOf('--strict');
const strict = strictArgIndex >= 0;
if (strict) {
process.argv.splice(strictArgIndex);
process.argv.splice(strictArgIndex, 1);
}
if (process.argv.length > 2) {
for (const file of process.argv.slice(2)) {
Expand Down

0 comments on commit c38e46f

Please sign in to comment.