Skip to content

Commit b9e30ae

Browse files
committed
update-deps - use unzip version with better powershell extraction support
1 parent 78e7f84 commit b9e30ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package/src/common/update-html-dependencies.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ import * as ld from "../../../src/core/lodash.ts";
1313
import { runCmd } from "../util/cmd.ts";
1414
import { applyGitPatches, Repo, withRepo } from "../util/git.ts";
1515

16-
import { download, unzip } from "../util/utils.ts";
16+
import { download } from "../util/utils.ts";
1717
import { Configuration } from "./config.ts";
1818
import { visitLines } from "../../../src/core/file.ts";
1919
import { copyMinimal } from "../../../src/core/copy.ts";
2020
import { kSourceMappingRegexes } from "../../../src/config/constants.ts";
21+
import { unzip } from "../../../src/core/zip.ts";
2122

2223
export async function updateHtmlDependencies(config: Configuration) {
2324
info("Updating Bootstrap with version info:");

src/core/zip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { isWindows } from "./platform.ts";
99
import { execProcess } from "./process.ts";
1010
import { safeWindowsExec } from "./windows.ts";
1111

12-
export function unzip(file: string) {
13-
const dir = dirname(file);
12+
export function unzip(file: string, dir?: string) {
13+
if (!dir) dir = dirname(file);
1414

1515
if (file.endsWith("zip")) {
1616
// It's a zip file

0 commit comments

Comments
 (0)