fix(scripts): normalize plugin record compiler paths

This commit is contained in:
Tianyi Cui committed 2026-10-05 17:43:56 +08:00
1 parent 9a4a750a05
commit bb405d51fa
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ export function checkDeclaredPluginRecordWrites(
const roots = new Set<string>()
for (const config of configs.byPath.values()) {
for (const file of config.fileNames) {
if (!isTestFile(relative(repoRoot, file).replaceAll('\\', '/'))) roots.add(file)
if (!isTestFile(relative(repoRoot, file).replaceAll('\\', '/'))) roots.add(resolve(file))
}
}
const admitted = candidates.filter(file => roots.has(resolve(repoRoot, file)))