This commit is contained in:
parent
1c67cb22c5
commit
14171ea24b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@denreg-tar",
|
"name": "@denreg-tar",
|
||||||
"version": "0.2.0",
|
"version": "0.2.1",
|
||||||
"description": "Pack and Unpack tar files",
|
"description": "Pack and Unpack tar files",
|
||||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||||
"contributors": [],
|
"contributors": [],
|
||||||
|
@ -66,8 +66,6 @@ export async function compress(
|
|||||||
const walker = FS.walk(src, { includeDirs: true, includeFiles: true });
|
const walker = FS.walk(src, { includeDirs: true, includeFiles: true });
|
||||||
for await (const file of walker) {
|
for await (const file of walker) {
|
||||||
const relativePath = Path.relative(root, file.path);
|
const relativePath = Path.relative(root, file.path);
|
||||||
console.log("Adding file:", file, relativePath);
|
|
||||||
// if (!relativePath || relativePath === "") continue;
|
|
||||||
if (file.isDirectory) {
|
if (file.isDirectory) {
|
||||||
await tar.append(relativePath, {
|
await tar.append(relativePath, {
|
||||||
type: "directory",
|
type: "directory",
|
||||||
|
Loading…
Reference in New Issue
Block a user