Skip to content

Commit a398ad1

Browse files
committed
Update baselines
1 parent 2b06e62 commit a398ad1

File tree

13 files changed

+19
-0
lines changed

13 files changed

+19
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7023,6 +7023,7 @@ declare namespace ts {
70237023
removeComments?: boolean;
70247024
resolvePackageJsonExports?: boolean;
70257025
resolvePackageJsonImports?: boolean;
7026+
rewriteRelativeImportExtensions?: boolean;
70267027
rootDir?: string;
70277028
rootDirs?: string[];
70287029
skipLibCheck?: boolean;
@@ -8697,6 +8698,7 @@ declare namespace ts {
86978698
function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration;
86988699
function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration;
86998700
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
8701+
function isPartOfTypeOnlyImportOrExportDeclaration(node: Node): boolean;
87008702
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
87018703
function isImportAttributeName(node: Node): node is ImportAttributeName;
87028704
function isModifier(node: Node): node is Modifier;

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)