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:
parent
5087846e8b
commit
9b14d9f70b
1 changed files with 2 additions and 2 deletions
|
@ -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 = [];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue