diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bae35a75..3184aeae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: node-version: ${{ matrix.node }} - run: npm ci --omit=dev - run: npm ci + - run: npm run test:types - run: npm run test:lint if: matrix.os != 'windows-latest' - run: npm run test:unit @@ -94,6 +95,6 @@ jobs: - name: Check | Spark started run: docker logs station | grep "Spark started" - + - name: Check | Voyager started run: docker logs station | grep "Voyager started" diff --git a/lib/modules.js b/lib/modules.js index 55fab4a0..8e802f52 100644 --- a/lib/modules.js +++ b/lib/modules.js @@ -84,7 +84,10 @@ export const installBinaryModule = async ({ if (target.asset.endsWith('tar.gz')) { await mkdir(outFile, { recursive: true }) - await pipeline(res.body, tar.x({ C: outFile })) + await pipeline( + /** @type {any} */(res.body), + /** @type {any} */(tar.x({ C: outFile })) + ) } else { await mkdir(join(moduleBinaries, module), { recursive: true }) const parser = unzip.Parse() @@ -207,7 +210,10 @@ export async function updateSourceFiles ({ if (entry.type === 'file' || entry.type === 'raw') { await mkdir(outDir, { recursive: true }) // `{ strip: 1 }` tells tar to remove the top-level directory (e.g. `mod-peer-checker-v1.0.0`) - await pipeline(entry.content(), tar.x({ strip: 1, C: outDir })) + await pipeline( + /** @type {any} */(entry.content()), + /** @type {any} */(tar.x({ strip: 1, C: outDir })) + ) } } catch (err) { await rm(outDir, { recursive: true })