mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
fix(cli): correct strict warning hint (#2221)
This commit is contained in:
@@ -825,7 +825,7 @@ export default defineCommand({
|
||||
console.log("");
|
||||
process.exit(1);
|
||||
}
|
||||
console.log(c.dim(" Continuing render despite lint issues. Use --strict to block."));
|
||||
console.log(c.dim(renderLintContinuationHint(strictErrors)));
|
||||
console.log("");
|
||||
}
|
||||
}
|
||||
@@ -1004,6 +1004,12 @@ export interface SingleRenderResult {
|
||||
renderTimeMs: number;
|
||||
}
|
||||
|
||||
export function renderLintContinuationHint(strictErrors: boolean): string {
|
||||
return strictErrors
|
||||
? " Continuing render despite lint warnings. Use --strict-all to block warnings."
|
||||
: " Continuing render despite lint issues. Use --strict to block errors.";
|
||||
}
|
||||
|
||||
interface RenderOptions {
|
||||
fps: Fps;
|
||||
quality: "draft" | "standard" | "high";
|
||||
|
||||
Reference in New Issue
Block a user