Skip to content

Commit b0dcee7

Browse files
committed
fix(typescript): tsconfig does not resolve extends with exports
1 parent 2cfb50b commit b0dcee7

File tree

4 files changed

+27
-27
lines changed

4 files changed

+27
-27
lines changed

configs/typescript.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"exports": {
1515
".": "./index.js",
1616
"./prettier": "./configs/prettier.js",
17-
"./typescript": "./configs/typescript.json",
17+
"./typescript": "./typescript.json",
1818
"./eslint": "./configs/eslint.js"
1919
},
2020
"files": [

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": "./configs/typescript.json",
3-
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
2+
"extends": "./typescript.json",
3+
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
44
}

typescript.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"include": ["**/*.ts", "**/*.tsx"],
4+
"compilerOptions": {
5+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
6+
"isolatedModules": true,
7+
"esModuleInterop": true,
8+
"jsx": "react-jsx",
9+
"module": "ESNext",
10+
"target": "ES2022",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"strict": true,
14+
"noImplicitAny": true,
15+
"allowJs": true,
16+
"forceConsistentCasingInFileNames": true,
17+
"paths": {
18+
"#/*": ["./*"]
19+
},
20+
"skipLibCheck": true,
21+
"allowImportingTsExtensions": true,
22+
"noEmit": true
23+
}
24+
}

0 commit comments

Comments
 (0)