@typescript-deploys/pr-build 5.7.0-pr-59860-2 → 5.7.0-pr-53017-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2808,7 +2808,6 @@ declare namespace ts {
2808
2808
  abstract class Project implements LanguageServiceHost, ModuleResolutionHost {
2809
2809
  readonly projectKind: ProjectKind;
2810
2810
  readonly projectService: ProjectService;
2811
- private documentRegistry;
2812
2811
  private compilerOptions;
2813
2812
  compileOnSaveEnabled: boolean;
2814
2813
  protected watchOptions: WatchOptions | undefined;
@@ -2842,14 +2841,14 @@ declare namespace ts {
2842
2841
  readonly jsDocParsingMode: JSDocParsingMode | undefined;
2843
2842
  isKnownTypesPackageName(name: string): boolean;
2844
2843
  installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
2845
- getCompilationSettings(): ts.CompilerOptions;
2846
- getCompilerOptions(): ts.CompilerOptions;
2844
+ getCompilationSettings(): CompilerOptions;
2845
+ getCompilerOptions(): CompilerOptions;
2847
2846
  getNewLine(): string;
2848
2847
  getProjectVersion(): string;
2849
2848
  getProjectReferences(): readonly ProjectReference[] | undefined;
2850
2849
  getScriptFileNames(): string[];
2851
2850
  private getOrCreateScriptInfoAndAttachToProject;
2852
- getScriptKind(fileName: string): ts.ScriptKind;
2851
+ getScriptKind(fileName: string): ScriptKind;
2853
2852
  getScriptVersion(filename: string): string;
2854
2853
  getScriptSnapshot(filename: string): IScriptSnapshot | undefined;
2855
2854
  getCancellationToken(): HostCancellationToken;
@@ -2885,16 +2884,16 @@ declare namespace ts {
2885
2884
  getProjectName(): string;
2886
2885
  protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
2887
2886
  getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
2888
- getSourceFile(path: Path): ts.SourceFile | undefined;
2887
+ getSourceFile(path: Path): SourceFile | undefined;
2889
2888
  close(): void;
2890
2889
  private detachScriptInfoIfNotRoot;
2891
2890
  isClosed(): boolean;
2892
2891
  hasRoots(): boolean;
2893
2892
  getRootFiles(): NormalizedPath[];
2894
- getRootScriptInfos(): ts.server.ScriptInfo[];
2893
+ getRootScriptInfos(): ScriptInfo[];
2895
2894
  getScriptInfos(): ScriptInfo[];
2896
2895
  getExcludedFiles(): readonly NormalizedPath[];
2897
- getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): ts.server.NormalizedPath[];
2896
+ getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[];
2898
2897
  hasConfigFile(configFilePath: NormalizedPath): boolean;
2899
2898
  containsScriptInfo(info: ScriptInfo): boolean;
2900
2899
  containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean;
@@ -2919,19 +2918,18 @@ declare namespace ts {
2919
2918
  private isValidGeneratedFileWatcher;
2920
2919
  private clearGeneratedFileWatch;
2921
2920
  getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
2922
- getScriptInfo(uncheckedFileName: string): ts.server.ScriptInfo | undefined;
2921
+ getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined;
2923
2922
  filesToString(writeProjectFileNames: boolean): string;
2924
2923
  private filesToStringWorker;
2925
2924
  setCompilerOptions(compilerOptions: CompilerOptions): void;
2926
2925
  setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
2927
- getTypeAcquisition(): ts.TypeAcquisition;
2926
+ getTypeAcquisition(): TypeAcquisition;
2928
2927
  protected removeRoot(info: ScriptInfo): void;
2929
2928
  protected enableGlobalPlugins(options: CompilerOptions): void;
2930
2929
  protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
2931
2930
  /** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
2932
2931
  refreshDiagnostics(): void;
2933
2932
  private isDefaultProjectForOpenFiles;
2934
- private getCompilerOptionsForNoDtsResolutionProject;
2935
2933
  }
2936
2934
  /**
2937
2935
  * If a file is opened and no tsconfig (or jsconfig) is found,
@@ -2958,7 +2956,7 @@ declare namespace ts {
2958
2956
  getScriptFileNames(): string[];
2959
2957
  getLanguageService(): never;
2960
2958
  getHostForAutoImportProvider(): never;
2961
- getProjectReferences(): readonly ts.ProjectReference[] | undefined;
2959
+ getProjectReferences(): readonly ProjectReference[] | undefined;
2962
2960
  }
2963
2961
  /**
2964
2962
  * If a file is opened, the server will look for a tsconfig (or jsconfig)
@@ -2975,7 +2973,7 @@ declare namespace ts {
2975
2973
  * @returns: true if set of files in the project stays the same and false - otherwise.
2976
2974
  */
2977
2975
  updateGraph(): boolean;
2978
- getConfigFilePath(): ts.server.NormalizedPath;
2976
+ getConfigFilePath(): NormalizedPath;
2979
2977
  getProjectReferences(): readonly ProjectReference[] | undefined;
2980
2978
  updateReferences(refs: readonly ProjectReference[] | undefined): void;
2981
2979
  /**
@@ -2999,14 +2997,14 @@ declare namespace ts {
2999
2997
  compileOnSaveEnabled: boolean;
3000
2998
  excludedFiles: readonly NormalizedPath[];
3001
2999
  updateGraph(): boolean;
3002
- getExcludedFiles(): readonly ts.server.NormalizedPath[];
3000
+ getExcludedFiles(): readonly NormalizedPath[];
3003
3001
  }
3004
3002
  function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings;
3005
3003
  function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin;
3006
3004
  function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined;
3007
3005
  function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined;
3008
3006
  function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind;
3009
- function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind.Unknown | ScriptKind.JS | ScriptKind.JSX | ScriptKind.TS | ScriptKind.TSX;
3007
+ function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind;
3010
3008
  const maxProgramSizeForNonTsFiles: number;
3011
3009
  const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
3012
3010
  interface ProjectsUpdatedInBackgroundEvent {
@@ -9125,6 +9123,7 @@ declare namespace ts {
9125
9123
  jsDocParsingMode?: JSDocParsingMode;
9126
9124
  }
9127
9125
  function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine;
9126
+ function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand;
9128
9127
  /**
9129
9128
  * Reads the config file, reports errors if any and exits if the config file cannot be found
9130
9129
  */
@@ -9179,6 +9178,13 @@ declare namespace ts {
9179
9178
  options: TypeAcquisition;
9180
9179
  errors: Diagnostic[];
9181
9180
  };
9181
+ /** Parsed command line for build */
9182
+ interface ParsedBuildCommand {
9183
+ buildOptions: BuildOptions;
9184
+ watchOptions: WatchOptions | undefined;
9185
+ projects: string[];
9186
+ errors: Diagnostic[];
9187
+ }
9182
9188
  type DiagnosticReporter = (diagnostic: Diagnostic) => void;
9183
9189
  /**
9184
9190
  * Reports config file diagnostics
@@ -9906,6 +9912,8 @@ declare namespace ts {
9906
9912
  emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
9907
9913
  }
9908
9914
  type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T>;
9915
+ /** Returns true if commandline is --build and needs to be parsed useing parseBuildCommand */
9916
+ function isBuildCommand(commandLineArgs: readonly string[]): boolean;
9909
9917
  function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
9910
9918
  /**
9911
9919
  * Represents an immutable snapshot of a script at a specified time.Once acquired, the