repo-tools: filter out SQL reports when checking for extra reports

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-12-29 02:00:41 +01:00
parent 3051f26bbd
commit ccf5fa8cc5
@@ -398,6 +398,7 @@ export async function runApiExtraction({
filename =>
// https://regex101.com/r/QDZIV0/2
filename !== 'knip-report.md' &&
!filename.endsWith('.sql.md') &&
// this has to temporarily match all old api report formats
filename.match(/^.*?(api-)?report(-[^.-]+)?(.*?)\.md$/),
),