fix(ci): avoid unbound TypeScript reader

This commit is contained in:
imccyu
2026-07-17 23:43:20 +08:00
parent df21d22e28
commit b4ab7debb7
+1 -1
View File
@@ -152,7 +152,7 @@ function localPackageDirectories(): Map<string, string> {
}
function rootProjectReferences(): Set<string> {
const config = ts.readConfigFile(resolve(root, 'tsconfig.json'), ts.sys.readFile)
const config = ts.readConfigFile(resolve(root, 'tsconfig.json'), path => ts.sys.readFile(path))
if (config.error !== undefined) {
throw new Error(ts.flattenDiagnosticMessageText(config.error.messageText, '\n'))
}