diff options
author | Michael C <[email protected]> | 2022-02-04 02:15:58 -0500 |
---|---|---|
committer | Michael C <[email protected]> | 2022-02-04 02:38:14 -0500 |
commit | ba2efe59cb3b76bfdc21ef13aac664cc85a61d4c (patch) | |
tree | c1faa884fb080a3e85970e27bb76867a3ec7ae30 /ci | |
parent | 88f61cf292e9401e03868d434131f74bdb1a9a32 (diff) | |
download | SponsorBlock-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.ts | 4 |
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, |