mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
update CI to prettify oss-attribution
- also fix TS warnings in invidiousCI.ts
This commit is contained in:
@@ -16,10 +16,10 @@ if (!existsSync(join(__dirname, "data.json"))) {
|
||||
import * as data from "../ci/data.json";
|
||||
|
||||
type instanceMap = {
|
||||
name: string,
|
||||
url: string,
|
||||
dailyRatios: {ratio: string, label: string }[],
|
||||
thirtyDayUptime: string
|
||||
name: string;
|
||||
url: string;
|
||||
dailyRatios: {ratio: string; label: string }[];
|
||||
thirtyDayUptime: string;
|
||||
}[]
|
||||
|
||||
// only https servers
|
||||
|
||||
6
ci/prettify.ts
Normal file
6
ci/prettify.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { writeFile } from 'fs';
|
||||
|
||||
import * as license from "../oss-attribution/licenseInfos.json";
|
||||
|
||||
const result = JSON.stringify(license, null, 2);
|
||||
writeFile("../oss-attribution/licenseInfos.json", result, err => { if (err) return console.log(err) } );
|
||||
Reference in New Issue
Block a user