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:
authored and GitHub committed 2024-09-15 18:10:52 -07:00
1 parent 89e004f632
commit 52eaa7b02f
136 files changed
+1947 -1614

No files matched your search

+1 -1
View File
@@ -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;