mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-11 05:42:22 +00:00
debug(format): print viewport policy canonical output
This commit is contained in:
1 parent
86969f8a11
commit
5195012c7f
1 file changed
+9
@@ -120,6 +120,15 @@ export async function formatAdoptedFiles(root, mode) {
|
||||
}
|
||||
|
||||
const changed = files.filter(({ source, formatted }) => source !== formatted);
|
||||
if (mode === '--check') {
|
||||
const target = changed.find(
|
||||
({ name }) => name === 'src/voice/realtimeViewportPolicy.test.mjs',
|
||||
);
|
||||
if (target)
|
||||
console.error(
|
||||
`FORMAT_EXPECTED BEGIN\n${target.formatted}FORMAT_EXPECTED END`,
|
||||
);
|
||||
}
|
||||
if (mode === '--write') {
|
||||
for (const { file, formatted } of changed) await writeFile(file, formatted);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user