We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01ab918 commit 0838975Copy full SHA for 0838975
.stacks/core/storage/src/zip.ts
@@ -1,14 +1,6 @@
1
import { runCommand } from '@stacksjs/cli'
2
import type { ZlibCompressionOptions } from 'bun'
3
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
12
type ZipOptions = {
13
cwd?: string
14
}
@@ -30,6 +22,14 @@ export async function unzip(paths: string | string[]) {
30
22
return runCommand(`unzip ${paths}`)
31
23
32
24
25
+export function archive(paths: string | string[]) {
26
+ return zip(paths)
27
+}
28
+
29
+export function unarchive(paths: string | string[]) {
+ return unzip(paths)
33
export function compress(paths: string[]) {
34
return zip(paths)
35
0 commit comments