Skip to content

Commit

Permalink
update-deps - use unzip version with better powershell extraction sup…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
cderv committed Mar 14, 2024
1 parent 78e7f84 commit b9e30ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package/src/common/update-html-dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ import * as ld from "../../../src/core/lodash.ts";
import { runCmd } from "../util/cmd.ts";
import { applyGitPatches, Repo, withRepo } from "../util/git.ts";

import { download, unzip } from "../util/utils.ts";
import { download } from "../util/utils.ts";
import { Configuration } from "./config.ts";
import { visitLines } from "../../../src/core/file.ts";
import { copyMinimal } from "../../../src/core/copy.ts";
import { kSourceMappingRegexes } from "../../../src/config/constants.ts";
import { unzip } from "../../../src/core/zip.ts";

export async function updateHtmlDependencies(config: Configuration) {
info("Updating Bootstrap with version info:");
Expand Down
4 changes: 2 additions & 2 deletions src/core/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { isWindows } from "./platform.ts";
import { execProcess } from "./process.ts";
import { safeWindowsExec } from "./windows.ts";

export function unzip(file: string) {
const dir = dirname(file);
export function unzip(file: string, dir?: string) {
if (!dir) dir = dirname(file);

if (file.endsWith("zip")) {
// It's a zip file
Expand Down

0 comments on commit b9e30ae

Please sign in to comment.