mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> Co-authored-by: Andrew Branch <andrew@wheream.io>
This commit is contained in:
136 files changed
+1947
-1614
No files matched your search
@@ -729,7 +729,7 @@ function executeCommandLineWorker(
|
||||
}
|
||||
|
||||
/** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */
|
||||
export function isBuildCommand(commandLineArgs: readonly string[]) {
|
||||
export function isBuildCommand(commandLineArgs: readonly string[]): boolean {
|
||||
if (commandLineArgs.length > 0 && commandLineArgs[0].charCodeAt(0) === CharacterCodes.minus) {
|
||||
const firstOption = commandLineArgs[0].slice(commandLineArgs[0].charCodeAt(1) === CharacterCodes.minus ? 2 : 1).toLowerCase();
|
||||
return firstOption === tscBuildOption.name || firstOption === tscBuildOption.shortName;
|
||||
|
||||
Reference in new issue
Block a user