Browse Source

emit exit code only in lint mode

tags/v4.20.0
Tobias Koppers 1 year ago
parent
commit
44955b7600
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      tooling/compile-to-definitions.js
  2. +1
    -1
      tooling/format-schemas.js
  3. +1
    -1
      tooling/inherit-types.js

+ 1
- 1
tooling/compile-to-definitions.js View File

@@ -65,8 +65,8 @@ const makeDefinitionsForSchema = absSchemaPath => {
"/"
)}.d.ts need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
},
err => {

+ 1
- 1
tooling/format-schemas.js View File

@@ -124,8 +124,8 @@ const formatSchema = schemaPath => {
console.error(
`schemas/${basename.replace(/\\/g, "/")} need to be updated`
);
process.exitCode = 1;
}
process.exitCode = 1;
}
});
};

+ 1
- 1
tooling/inherit-types.js View File

@@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) {
);
}
console.log();
process.exitCode = 1;
}
process.exitCode = 1;
}
}
}

Loading…
Cancel
Save