fix(scripts): normalize plugin record compiler paths
This commit is contained in:
1 parent
9a4a750a05
commit
bb405d51fa
1 file changed
+1
-1
@@ -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)))
|
||||
|
||||
Reference in new issue
Block a user