Skip to content

Commit 0838975

Browse files
committed
chore: wip
1 parent 01ab918 commit 0838975

File tree

1 file changed

+8
-8
lines changed
  • .stacks/core/storage/src

1 file changed

+8
-8
lines changed

.stacks/core/storage/src/zip.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import { runCommand } from '@stacksjs/cli'
22
import type { ZlibCompressionOptions } from 'bun'
33

4-
export function archive(paths: string | string[]) {
5-
return zip(paths)
6-
}
7-
8-
export function unarchive(paths: string | string[]) {
9-
return unzip(paths)
10-
}
11-
124
type ZipOptions = {
135
cwd?: string
146
}
@@ -30,6 +22,14 @@ export async function unzip(paths: string | string[]) {
3022
return runCommand(`unzip ${paths}`)
3123
}
3224

25+
export function archive(paths: string | string[]) {
26+
return zip(paths)
27+
}
28+
29+
export function unarchive(paths: string | string[]) {
30+
return unzip(paths)
31+
}
32+
3333
export function compress(paths: string[]) {
3434
return zip(paths)
3535
}

0 commit comments

Comments
 (0)