Skip to content

Commit

Permalink
refactor: revert tar upgrade back to v6 (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Jan 27, 2025
1 parent 23a30bd commit b5e85e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 62 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"nypm": "^0.5.0",
"ohash": "^1.1.4",
"pathe": "^2.0.2",
"tar": "^7.4.3"
"tar": "^6.2.1"
},
"devDependencies": {
"@types/node": "^22.10.10",
Expand Down
61 changes: 2 additions & 59 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/giget.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mkdir, rm } from "node:fs/promises";
import { existsSync, readdirSync } from "node:fs";
import { extract } from "tar/extract";
import { extract } from "tar";
import { resolve, dirname } from "pathe";
import { defu } from "defu";
import { installDependencies } from "nypm";
Expand Down Expand Up @@ -144,7 +144,7 @@ export async function downloadTemplate(
await extract({
file: tarPath,
cwd: extractPath,
onReadEntry(entry) {
onentry(entry) {
entry.path = entry.path.split("/").splice(1).join("/");
if (subdir) {
// eslint-disable-next-line unicorn/prefer-ternary
Expand Down

0 comments on commit b5e85e2

Please sign in to comment.