-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support ts 5.5
${configDir}
replacement (#172)
* feat: support ts 5.5 replacement * fix: generate types * fix: ensure posix paths in output * fix: add snapshots for node22 errors * fix: regenerate types map * fix: action syntax * fix: actions syntax again? * refactor: reuse token replace function to save space * fix: windows paths again
- Loading branch information
Showing
37 changed files
with
271 additions
and
9 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'tsconfck': minor | ||
--- | ||
|
||
add support for typescript 5.5 ${configDir} replacement |
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
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
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
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
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
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/fixtures/parse/valid/configDir/a/src/foo.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,3 @@ | ||
export function foo() { | ||
return 'foo'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/fixtures/parse/valid/configDir/a/tsconfig.json
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,3 @@ | ||
{ | ||
"extends": ["../tsconfig.base.json"] | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/fixtures/parse/valid/configDir/b/src/foo.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,3 @@ | ||
export function foo() { | ||
return 'foo'; | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/fixtures/parse/valid/configDir/b/tsconfig.json
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,3 @@ | ||
{ | ||
"extends": ["../tsconfig.base.json"] | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/fixtures/parse/valid/configDir/src/foo.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,3 @@ | ||
export function foo() { | ||
return 'foo'; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/tsconfck/tests/fixtures/parse/valid/configDir/tsconfig.base.json
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,10 @@ | ||
{ | ||
"include": ["${configDir}/**/*"], | ||
"exclude": ["${configDir}/src/**/*.spec.ts"], | ||
"compilerOptions": { | ||
"paths": { | ||
"$src": ["${configDir}/src/**/*"] | ||
}, | ||
"outDir": "${configDir}/build" | ||
} | ||
} |
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
1 change: 1 addition & 0 deletions
1
...es/tsconfck/tests/snapshots/parse/invalid/bom/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 1005: ',' expected. |
4 changes: 4 additions & 0 deletions
4
packages/tsconfck/tests/snapshots/parse/invalid/bom/tsconfig.json.error.node22.parse.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,4 @@ | ||
parsing <fixture-dir>/parse/invalid/bom/tsconfig.json failed: SyntaxError: Unexpected token 'x', "{ | ||
"extends": x"" | ||
} | ||
" is not valid JSON |
1 change: 1 addition & 0 deletions
1
.../tsconfck/tests/snapshots/parse/invalid/comma/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 1136: Property assignment expected. |
1 change: 1 addition & 0 deletions
1
packages/tsconfck/tests/snapshots/parse/invalid/comma/tsconfig.json.error.node22.parse.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 @@ | ||
parsing <fixture-dir>/parse/invalid/comma/tsconfig.json failed: SyntaxError: Expected double-quoted property name in JSON at position 69 (line 5 column 6) |
1 change: 1 addition & 0 deletions
1
...confck/tests/snapshots/parse/invalid/comments/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 1005: ',' expected. |
1 change: 1 addition & 0 deletions
1
...ages/tsconfck/tests/snapshots/parse/invalid/comments/tsconfig.json.error.node22.parse.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 @@ | ||
parsing <fixture-dir>/parse/invalid/comments/tsconfig.json failed: SyntaxError: Expected ',' or '}' after property value in JSON at position 236 (line 14 column 7) |
1 change: 1 addition & 0 deletions
1
...napshots/parse/invalid/extends-array-circular/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 18000: Circularity detected while resolving configuration: <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.b.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.json |
1 change: 1 addition & 0 deletions
1
...tests/snapshots/parse/invalid/extends-array-circular/tsconfig.json.error.node22.parse.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 @@ | ||
Circular dependency in "extends": <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.b.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.b.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.json -> <fixture-dir>/parse/invalid/extends-array-circular/tsconfig.a.b.json |
1 change: 1 addition & 0 deletions
1
...ests/snapshots/parse/invalid/extends-circular/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 18000: Circularity detected while resolving configuration: <fixture-dir>/parse/invalid/extends-circular/tsconfig.json -> <fixture-dir>/parse/invalid/extends-circular/tsconfig.circular.json -> <fixture-dir>/parse/invalid/extends-circular/deep/tsconfig.circular2.json -> <fixture-dir>/parse/invalid/extends-circular/tsconfig.json |
1 change: 1 addition & 0 deletions
1
...onfck/tests/snapshots/parse/invalid/extends-circular/tsconfig.json.error.node22.parse.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 @@ | ||
Circular dependency in "extends": <fixture-dir>/parse/invalid/extends-circular/tsconfig.json -> <fixture-dir>/parse/invalid/extends-circular/tsconfig.circular.json -> <fixture-dir>/parse/invalid/extends-circular/deep/tsconfig.circular2.json -> <fixture-dir>/parse/invalid/extends-circular/tsconfig.json |
1 change: 1 addition & 0 deletions
1
...hots/parse/invalid/extends-fallback-not-found/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 6053: File './dir' not found. |
1 change: 1 addition & 0 deletions
1
...s/snapshots/parse/invalid/extends-fallback-not-found/tsconfig.json.error.node22.parse.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 @@ | ||
failed to resolve "extends":"./dir" in <fixture-dir>/parse/invalid/extends-fallback-not-found/tsconfig.json |
1 change: 1 addition & 0 deletions
1
...sts/snapshots/parse/invalid/extends-not-found/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 5083: Cannot read file '<fixture-dir>/parse/invalid/tsconfig.doesnotexist.json'. |
1 change: 1 addition & 0 deletions
1
...nfck/tests/snapshots/parse/invalid/extends-not-found/tsconfig.json.error.node22.parse.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 @@ | ||
failed to resolve "extends":"../tsconfig.doesnotexist.json" in <fixture-dir>/parse/invalid/extends-not-found/tsconfig.json |
1 change: 1 addition & 0 deletions
1
.../tsconfck/tests/snapshots/parse/invalid/mixed/tsconfig.json.error.node22.parse-native.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 @@ | ||
TS 1005: ',' expected. |
1 change: 1 addition & 0 deletions
1
packages/tsconfck/tests/snapshots/parse/invalid/mixed/tsconfig.json.error.node22.parse.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 @@ | ||
parsing <fixture-dir>/parse/invalid/mixed/tsconfig.json failed: SyntaxError: Expected ',' or '}' after property value in JSON at position 297 (line 16 column 5) |
19 changes: 19 additions & 0 deletions
19
packages/tsconfck/tests/snapshots/parse/valid/configDir/a/tsconfig.json.parse-native.json
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,19 @@ | ||
{ | ||
"extends": [ | ||
"../tsconfig.base.json" | ||
], | ||
"include": [ | ||
"<fixture-dir>/parse/valid/configDir/a/**/*" | ||
], | ||
"exclude": [ | ||
"<fixture-dir>/parse/valid/configDir/a/src/**/*.spec.ts" | ||
], | ||
"compilerOptions": { | ||
"paths": { | ||
"$src": [ | ||
"<fixture-dir>/parse/valid/configDir/a/src/**/*" | ||
] | ||
}, | ||
"outDir": "<fixture-dir>/parse/valid/configDir/a/build" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/tsconfck/tests/snapshots/parse/valid/configDir/a/tsconfig.json.parse.json
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,19 @@ | ||
{ | ||
"extends": [ | ||
"../tsconfig.base.json" | ||
], | ||
"include": [ | ||
"<fixture-dir>/parse/valid/configDir/**/*" | ||
], | ||
"exclude": [ | ||
"<fixture-dir>/parse/valid/configDir/src/**/*.spec.ts" | ||
], | ||
"compilerOptions": { | ||
"paths": { | ||
"$src": [ | ||
"<fixture-dir>/parse/valid/configDir/src/**/*" | ||
] | ||
}, | ||
"outDir": "<fixture-dir>/parse/valid/configDir/build" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/snapshots/parse/valid/configDir/a/tsconfig.json.to-json.json
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,3 @@ | ||
{ | ||
"extends": ["../tsconfig.base.json"] | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/tsconfck/tests/snapshots/parse/valid/configDir/b/tsconfig.json.parse-native.json
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,19 @@ | ||
{ | ||
"extends": [ | ||
"../tsconfig.base.json" | ||
], | ||
"include": [ | ||
"<fixture-dir>/parse/valid/configDir/b/**/*" | ||
], | ||
"exclude": [ | ||
"<fixture-dir>/parse/valid/configDir/b/src/**/*.spec.ts" | ||
], | ||
"compilerOptions": { | ||
"paths": { | ||
"$src": [ | ||
"<fixture-dir>/parse/valid/configDir/b/src/**/*" | ||
] | ||
}, | ||
"outDir": "<fixture-dir>/parse/valid/configDir/b/build" | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/tsconfck/tests/snapshots/parse/valid/configDir/b/tsconfig.json.parse.json
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,19 @@ | ||
{ | ||
"extends": [ | ||
"../tsconfig.base.json" | ||
], | ||
"include": [ | ||
"<fixture-dir>/parse/valid/configDir/**/*" | ||
], | ||
"exclude": [ | ||
"<fixture-dir>/parse/valid/configDir/src/**/*.spec.ts" | ||
], | ||
"compilerOptions": { | ||
"paths": { | ||
"$src": [ | ||
"<fixture-dir>/parse/valid/configDir/src/**/*" | ||
] | ||
}, | ||
"outDir": "<fixture-dir>/parse/valid/configDir/build" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
packages/tsconfck/tests/snapshots/parse/valid/configDir/b/tsconfig.json.to-json.json
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,3 @@ | ||
{ | ||
"extends": ["../tsconfig.base.json"] | ||
} |
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
Oops, something went wrong.