Skip to content

Commit 48ae279

Browse files
committed
chore: correct the basic typos
1 parent d99c263 commit 48ae279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ await ensureDir(dirs.out);
2020

2121

2222
const zipDirectory = async (dir: string, outDir: string, skip?: RegExp) => {
23-
for await (const dirEntry of walk(".")) {
23+
for await (const dirEntry of walk(dir)) {
2424
if (dirEntry.isFile) {
2525
const relativePath = dirEntry.path.replace(dir, "");
2626
if (skip && skip.test(relativePath)) {
@@ -32,7 +32,7 @@ const zipDirectory = async (dir: string, outDir: string, skip?: RegExp) => {
3232
}
3333
}
3434
const tmpFileName = await Deno.makeTempFile({ prefix: 'zip' });
35-
await zip.compress(tmpFileName, "./", { excludeSrc: true })
35+
await zip.compress(outDir, tmpFileName, { excludeSrc: true })
3636
return tmpFileName;
3737
}
3838

0 commit comments

Comments
 (0)