✌️
This commit is contained in:
@ -151,7 +151,7 @@ gulp.task('doc:api:entities', async () => {
|
||||
return;
|
||||
}
|
||||
files.forEach(file => {
|
||||
const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8'));
|
||||
const entity = yaml.safeLoad(fs.readFileSync(file, 'utf-8')) as any;
|
||||
const vars = {
|
||||
name: entity.name,
|
||||
desc: entity.desc,
|
||||
|
@ -15,13 +15,13 @@ export default async function(): Promise<{ [key: string]: any }> {
|
||||
|
||||
const endpoints = glob.sync('./src/client/docs/api/endpoints/**/*.yaml');
|
||||
vars['endpoints'] = endpoints.map(ep => {
|
||||
const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8'));
|
||||
const _ep = yaml.safeLoad(fs.readFileSync(ep, 'utf-8')) as any;
|
||||
return _ep.endpoint;
|
||||
});
|
||||
|
||||
const entities = glob.sync('./src/client/docs/api/entities/**/*.yaml');
|
||||
vars['entities'] = entities.map(x => {
|
||||
const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8'));
|
||||
const _x = yaml.safeLoad(fs.readFileSync(x, 'utf-8')) as any;
|
||||
return _x.name;
|
||||
});
|
||||
|
||||
|
@ -30,6 +30,9 @@ const ev = new Xev();
|
||||
|
||||
process.title = 'Misskey';
|
||||
|
||||
// https://github.com/Automattic/kue/issues/822
|
||||
require('events').EventEmitter.prototype._maxListeners = 256;
|
||||
|
||||
// Start app
|
||||
main();
|
||||
|
||||
|
Reference in New Issue
Block a user