aboutsummaryrefslogtreecommitdiffhomepage
path: root/ci
diff options
context:
space:
mode:
authorMichael C <[email protected]>2022-02-04 02:15:58 -0500
committerMichael C <[email protected]>2022-02-04 02:38:14 -0500
commitba2efe59cb3b76bfdc21ef13aac664cc85a61d4c (patch)
treec1faa884fb080a3e85970e27bb76867a3ec7ae30 /ci
parent88f61cf292e9401e03868d434131f74bdb1a9a32 (diff)
downloadSponsorBlock-ba2efe59cb3b76bfdc21ef13aac664cc85a61d4c.tar.gz
SponsorBlock-ba2efe59cb3b76bfdc21ef13aac664cc85a61d4c.zip
fix updateInvidious ci
- add ts-node - fix path - add npm ci
Diffstat (limited to 'ci')
-rw-r--r--ci/invidiousCI.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/invidiousCI.ts b/ci/invidiousCI.ts
index 05cf8f8f..cb2cd11e 100644
--- a/ci/invidiousCI.ts
+++ b/ci/invidiousCI.ts
@@ -8,12 +8,12 @@ import { writeFile, existsSync } from 'fs';
import { join } from 'path';
// import file from https://api.invidious.io/instances.json
-if (!existsSync('./data.json')) {
+if (!existsSync(join(__dirname, "data.json"))) {
process.exit(1);
}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
-import * as data from "./data.json";
+import * as data from "../ci/data.json";
type instanceMap = {
name: string,