mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 22:15:05 -05: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:
@@ -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