mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 01:58:11 +08:00
17 lines
583 B
JavaScript
17 lines
583 B
JavaScript
/** */
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const target = path.join(__dirname, '../../assets/build/maintainer.json');
|
|
const maintainer = require(path.join(__dirname, '../../lib/maintainer.js'));
|
|
|
|
const count = Object.keys(maintainer).length;
|
|
const uniqueMaintainer = new Set();
|
|
Object.values(maintainer)
|
|
.flat()
|
|
.forEach((e) => uniqueMaintainer.add(e));
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(`We have ${count} routes and maintained by ${uniqueMaintainer.size} contributors!`);
|
|
|
|
fs.writeFileSync(target, JSON.stringify(maintainer, null, 4));
|