mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Consistently respect --no-typecheck flag in build (#51575)
This commit is contained in:
@@ -51,6 +51,10 @@ if (options.built) {
|
||||
options.lkg = false;
|
||||
}
|
||||
|
||||
if (!options.bundle && !options.typecheck) {
|
||||
throw new Error("--no-typecheck cannot be passed when bundling is disabled");
|
||||
}
|
||||
|
||||
export default options;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user