Skip to content

Commit 1aa85aa

Browse files
committed
fix(docs): package.json#exports doesn't work for tsconfig extends yet
- see TS issue: microsoft/TypeScript#48665
1 parent 78b72f7 commit 1aa85aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ npm i -D @agilgur5/tsconfig
2121
```json5
2222
{
2323
// https://github.com/agilgur5/tsconfig
24-
"extends": "@agilgur5/tsconfig/library",
24+
"extends": "@agilgur5/tsconfig/src/tsconfig.library.json",
2525
// exclude node_modules (the default), dist dir, coverage dir
2626
"exclude": ["node_modules/", "dist/", "coverage/"],
2727
// see https://www.typescriptlang.org/tsconfig to better understand tsconfigs
@@ -32,7 +32,7 @@ npm i -D @agilgur5/tsconfig
3232
}
3333
```
3434

35-
Please see the [`package.json#exports`](package.json) for how to import the different base files found here.
35+
**NOTE**: Due to [microsoft/TypeScript#48665](https://github.com/microsoft/TypeScript/issues/48665), we import from `@agilgur5/tsconfig/src` instead of the shortened [`package.json#exports`](package.json).
3636

3737
**NOTE**: Due to [microsoft/TypeScript#29172](https://github.com/microsoft/TypeScript/issues/29172), we repeat some configurations (`files`, `include`, `exclude`, `outDir`) from the base config as relative paths are currently resolved _within_ `node_modules`.
3838

0 commit comments

Comments
 (0)