build: make sure the unused-language-keys.js script only looks at files

This commit is contained in:
Jacob Overgaard
2024-05-29 13:27:39 +02:00
parent 75ba49a626
commit 78e92e9c39

View File

@@ -26,7 +26,7 @@ const mainMap = buildMap(mainKeys);
const keys = Array.from(mainMap.keys());
const usedKeys = new Set();
const elementAndControllerFiles = await glob(`${__dirname}/../../src/**/*.ts`);
const elementAndControllerFiles = await glob(`${__dirname}/../../src/**/*.ts`, { filesOnly: true });
console.log(`Checking ${elementAndControllerFiles.length} files for unused keys`);