Switch to yauzl for the source map script
This commit is contained in:
@@ -20,7 +20,7 @@ import { spawnSync } from "child_process";
|
|||||||
import { basename, resolve } from "path";
|
import { basename, resolve } from "path";
|
||||||
import { pathExists, readJSON } from "fs-extra";
|
import { pathExists, readJSON } from "fs-extra";
|
||||||
import { RawSourceMap, SourceMapConsumer } from "source-map";
|
import { RawSourceMap, SourceMapConsumer } from "source-map";
|
||||||
import { Open } from "unzipper";
|
import { unzipToDirectory } from "../src/common/unzip";
|
||||||
|
|
||||||
if (process.argv.length !== 4) {
|
if (process.argv.length !== 4) {
|
||||||
console.error(
|
console.error(
|
||||||
@@ -78,10 +78,10 @@ async function extractSourceMap() {
|
|||||||
releaseAssetsDirectory,
|
releaseAssetsDirectory,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const file = await Open.file(
|
await unzipToDirectory(
|
||||||
resolve(releaseAssetsDirectory, sourcemapAsset.name),
|
resolve(releaseAssetsDirectory, sourcemapAsset.name),
|
||||||
|
sourceMapsDirectory,
|
||||||
);
|
);
|
||||||
await file.extract({ path: sourceMapsDirectory });
|
|
||||||
} else {
|
} else {
|
||||||
const workflowRuns = runGhJSON<WorkflowRunListItem[]>([
|
const workflowRuns = runGhJSON<WorkflowRunListItem[]>([
|
||||||
"run",
|
"run",
|
||||||
|
|||||||
Reference in New Issue
Block a user