Skip to content

Commit 23747a2

Browse files
authored
fix: resolve ${configDir} in tsconfig compilerOptions.baseUrl (#450)
fixes #447 I took the opportunity to refactor and improve tsconfig extend.
1 parent bdfb322 commit 23747a2

21 files changed

+149
-67
lines changed

fixtures/tsconfig/cases/paths_template_variable/tsconfig2.json renamed to fixtures/tsconfig/cases/paths_template_variable/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"composite": true,
44
"paths": {
5-
"foo": ["${configDir}/foo.js"]
5+
"foo": ["${configDir}/src/foo.js"]
66
}
77
}
88
}

fixtures/tsconfig/cases/paths_template_variable/tsconfig1.json

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "${configDir}",
4+
"paths": {
5+
"@/*": ["./src/*"]
6+
}
7+
}
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "${configDir}/",
4+
"paths": {
5+
"@/*": ["./src/*"]
6+
}
7+
}
8+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../tsconfig_template_variable1.json"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../tsconfig_template_variable2.json"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../tsconfig_template_variable3.json"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../tsconfig_template_variable4.json"
3+
}

fixtures/tsconfig/cases/project_references/app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"path": "../project_c/tsconfig.json"
1818
},
1919
{
20-
"path": "../../paths_template_variable/tsconfig2.json"
20+
"path": "../../paths_template_variable/tsconfig.json"
2121
}
2222
]
2323
}

0 commit comments

Comments
 (0)