mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ab50cf1168
* feat: init docs * refactor: add missing dependencies * fix: filter out docs for annotations
14 lines
422 B
JavaScript
14 lines
422 B
JavaScript
const fs = require('fs');
|
|
|
|
const directories = fs.readdirSync('./packages');
|
|
const reports = directories
|
|
// Filter out docs temporarily
|
|
.filter((dir) => dir !== 'docs')
|
|
.map((dir) => fs.readFileSync(`./packages/${dir}/report.json`, { encoding: 'utf-8' }));
|
|
const merged = [];
|
|
|
|
for (const report of reports) {
|
|
merged.push(...JSON.parse(report));
|
|
}
|
|
|
|
fs.writeFileSync('./eslint_report.json', JSON.stringify(merged));
|