-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #53443 (Support wildcard exports in tsconfi...) into releas…
…e-5.0 (#53557) Co-authored-by: Andrew Branch <[email protected]>
- Loading branch information
1 parent
aebd31b
commit b345c3a
Showing
3 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/baselines/reference/tsconfigExtendsPackageJsonExportsWildcard.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/index.ts(2,1): error TS2454: Variable 'x' is used before being assigned. | ||
|
||
|
||
==== /tsconfig.json (0 errors) ==== | ||
{ | ||
"extends": "foo/strict.json" | ||
} | ||
|
||
==== /node_modules/foo/package.json (0 errors) ==== | ||
{ | ||
"name": "foo", | ||
"version": "1.0.0", | ||
"exports": { | ||
"./*.json": "./configs/*.json" | ||
} | ||
} | ||
|
||
==== /node_modules/foo/configs/strict.json (0 errors) ==== | ||
{ | ||
"compilerOptions": { | ||
"strict": true | ||
} | ||
} | ||
|
||
==== /index.ts (1 errors) ==== | ||
let x: string; | ||
x.toLowerCase(); | ||
~ | ||
!!! error TS2454: Variable 'x' is used before being assigned. | ||
|
27 changes: 27 additions & 0 deletions
27
tests/cases/compiler/tsconfigExtendsPackageJsonExportsWildcard.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// @noTypesAndSymbols: true | ||
// @noEmit: true | ||
|
||
// @Filename: /node_modules/foo/package.json | ||
{ | ||
"name": "foo", | ||
"version": "1.0.0", | ||
"exports": { | ||
"./*.json": "./configs/*.json" | ||
} | ||
} | ||
|
||
// @Filename: /node_modules/foo/configs/strict.json | ||
{ | ||
"compilerOptions": { | ||
"strict": true | ||
} | ||
} | ||
|
||
// @Filename: /tsconfig.json | ||
{ | ||
"extends": "foo/strict.json" | ||
} | ||
|
||
// @Filename: /index.ts | ||
let x: string; | ||
x.toLowerCase(); |