aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
authorMichael C <[email protected]>2023-03-07 21:55:48 -0500
committerMichael C <[email protected]>2023-03-07 21:55:48 -0500
commitb310152f7f580252100c205d9ebc1da754dfd205 (patch)
treec8d56ac3b8ecb72e3ff6aefecee95f2aa0612db0 /ci
parentafe8d2a20cc6b58f9c399cba7a1c76198443b7c0 (diff)
downloadSponsorBlock-b310152f7f580252100c205d9ebc1da754dfd205.tar.gz
SponsorBlock-b310152f7f580252100c205d9ebc1da754dfd205.zip
update CI to prettify oss-attribution
- also fix TS warnings in invidiousCI.ts
Diffstat (limited to 'ci')
-rw-r--r--ci/invidiousCI.ts8
-rw-r--r--ci/prettify.ts6
2 files changed, 10 insertions, 4 deletions
diff --git a/ci/invidiousCI.ts b/ci/invidiousCI.ts
index 5c618e74..e96ea171 100644
--- a/ci/invidiousCI.ts
+++ b/ci/invidiousCI.ts
@@ -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
diff --git a/ci/prettify.ts b/ci/prettify.ts
new file mode 100644
index 00000000..c965a3a3
--- /dev/null
+++ b/ci/prettify.ts
@@ -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) } ); \ No newline at end of file