Skip to content

Commit 64ad40e

Browse files
committed
Switch to yauzl for the source map script
1 parent f736adc commit 64ad40e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/ql-vscode/scripts/source-map.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { spawnSync } from "child_process";
2020
import { basename, resolve } from "path";
2121
import { pathExists, readJSON } from "fs-extra";
2222
import { RawSourceMap, SourceMapConsumer } from "source-map";
23-
import { Open } from "unzipper";
23+
import { unzipToDirectory } from "../src/common/unzip";
2424

2525
if (process.argv.length !== 4) {
2626
console.error(
@@ -78,10 +78,10 @@ async function extractSourceMap() {
7878
releaseAssetsDirectory,
7979
]);
8080

81-
const file = await Open.file(
81+
await unzipToDirectory(
8282
resolve(releaseAssetsDirectory, sourcemapAsset.name),
83+
sourceMapsDirectory,
8384
);
84-
await file.extract({ path: sourceMapsDirectory });
8585
} else {
8686
const workflowRuns = runGhJSON<WorkflowRunListItem[]>([
8787
"run",

0 commit comments

Comments
 (0)