0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: update eslint report script

This commit is contained in:
Gao Sun 2023-04-01 23:04:23 +08:00
parent 5087846e8b
commit 9b14d9f70b
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -2,11 +2,11 @@ import fs from 'fs';
const directories = [ const directories = [
...fs.readdirSync('./packages'), ...fs.readdirSync('./packages'),
...fs.readdirSync('./packages/toolkit').map((dir) => 'toolkit/' + dir) ...fs.readdirSync('./packages/toolkit').map((dir) => 'toolkit/' + dir),
]; ];
const reports = directories const reports = directories
// Filter out unavailable paths // Filter out unavailable paths
.filter((dir) => !['create', 'toolkit'].includes(dir) && !dir.includes('.')) .filter((dir) => !['create', 'toolkit', 'connectors'].includes(dir) && !dir.includes('.'))
.map((dir) => fs.readFileSync(`./packages/${dir}/report.json`, { encoding: 'utf-8' })); .map((dir) => fs.readFileSync(`./packages/${dir}/report.json`, { encoding: 'utf-8' }));
const merged = []; const merged = [];