Skip to content

Commit bf25d52

Browse files
committed
Update baselines
1 parent 2b06e62 commit bf25d52

File tree

13 files changed

+24
-19
lines changed

13 files changed

+24
-19
lines changed

tests/baselines/reference/api/typescript.d.ts

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2808,6 +2808,7 @@ declare namespace ts {
28082808
abstract class Project implements LanguageServiceHost, ModuleResolutionHost {
28092809
readonly projectKind: ProjectKind;
28102810
readonly projectService: ProjectService;
2811+
private documentRegistry;
28112812
private compilerOptions;
28122813
compileOnSaveEnabled: boolean;
28132814
protected watchOptions: WatchOptions | undefined;
@@ -2930,6 +2931,7 @@ declare namespace ts {
29302931
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
29312932
refreshDiagnostics(): void;
29322933
private isDefaultProjectForOpenFiles;
2934+
private getCompilerOptionsForNoDtsResolutionProject;
29332935
}
29342936
/**
29352937
* If a file is opened and no tsconfig (or jsconfig) is found,
@@ -3981,11 +3983,10 @@ declare namespace ts {
39813983
JSDocImportTag = 351,
39823984
SyntaxList = 352,
39833985
NotEmittedStatement = 353,
3984-
NotEmittedTypeElement = 354,
3985-
PartiallyEmittedExpression = 355,
3986-
CommaListExpression = 356,
3987-
SyntheticReferenceExpression = 357,
3988-
Count = 358,
3986+
PartiallyEmittedExpression = 354,
3987+
CommaListExpression = 355,
3988+
SyntheticReferenceExpression = 356,
3989+
Count = 357,
39893990
FirstAssignment = 64,
39903991
LastAssignment = 79,
39913992
FirstCompoundAssignment = 65,
@@ -5211,9 +5212,6 @@ declare namespace ts {
52115212
interface NotEmittedStatement extends Statement {
52125213
readonly kind: SyntaxKind.NotEmittedStatement;
52135214
}
5214-
interface NotEmittedTypeElement extends TypeElement {
5215-
readonly kind: SyntaxKind.NotEmittedTypeElement;
5216-
}
52175215
/**
52185216
* A list of comma-separated expressions. This node is only created by transformations.
52195217
*/
@@ -7023,6 +7021,7 @@ declare namespace ts {
70237021
removeComments?: boolean;
70247022
resolvePackageJsonExports?: boolean;
70257023
resolvePackageJsonImports?: boolean;
7024+
rewriteRelativeImportExtensions?: boolean;
70267025
rootDir?: string;
70277026
rootDirs?: string[];
70287027
skipLibCheck?: boolean;
@@ -7815,7 +7814,6 @@ declare namespace ts {
78157814
createSourceFile(statements: readonly Statement[], endOfFileToken: EndOfFileToken, flags: NodeFlags): SourceFile;
78167815
updateSourceFile(node: SourceFile, statements: readonly Statement[], isDeclarationFile?: boolean, referencedFiles?: readonly FileReference[], typeReferences?: readonly FileReference[], hasNoDefaultLib?: boolean, libReferences?: readonly FileReference[]): SourceFile;
78177816
createNotEmittedStatement(original: Node): NotEmittedStatement;
7818-
createNotEmittedTypeElement(): NotEmittedTypeElement;
78197817
createPartiallyEmittedExpression(expression: Expression, original?: Node): PartiallyEmittedExpression;
78207818
updatePartiallyEmittedExpression(node: PartiallyEmittedExpression, expression: Expression): PartiallyEmittedExpression;
78217819
createCommaListExpression(elements: readonly Expression[]): CommaListExpression;
@@ -9123,7 +9121,6 @@ declare namespace ts {
91239121
jsDocParsingMode?: JSDocParsingMode;
91249122
}
91259123
function parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => string | undefined): ParsedCommandLine;
9126-
function parseBuildCommand(commandLine: readonly string[]): ParsedBuildCommand;
91279124
/**
91289125
* Reads the config file, reports errors if any and exits if the config file cannot be found
91299126
*/
@@ -9178,13 +9175,6 @@ declare namespace ts {
91789175
options: TypeAcquisition;
91799176
errors: Diagnostic[];
91809177
};
9181-
/** Parsed command line for build */
9182-
interface ParsedBuildCommand {
9183-
buildOptions: BuildOptions;
9184-
watchOptions: WatchOptions | undefined;
9185-
projects: string[];
9186-
errors: Diagnostic[];
9187-
}
91889178
type DiagnosticReporter = (diagnostic: Diagnostic) => void;
91899179
/**
91909180
* Reports config file diagnostics
@@ -9912,8 +9902,6 @@ declare namespace ts {
99129902
emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
99139903
}
99149904
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;
99179905
function getDefaultFormatCodeSettings(newLineCharacter?: string): FormatCodeSettings;
99189906
/**
99199907
* Represents an immutable snapshot of a script at a specified time.Once acquired, the

tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */

tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3737
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3838
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39+
// "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
3940
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
4041
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4142
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"compilerOptions": {
3+
"rewriteRelativeImportExtensions": true,
4+
"allowImportingTsExtensions": true
5+
}
6+
}

0 commit comments

Comments
 (0)