Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
10 changes: 8 additions & 2 deletions lib/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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 })
Expand Down