Glob
Match and archive files.
Match files with glob patterns and bundle them into a tar.gz archive.
import { std } from "vyft";
export const source = std.fs.glob("source", { include: ["src/**/*.ts", "package.json", "tsconfig.json"], exclude: ["**/*.test.ts"],});| Field | Type | Default | Description |
|---|---|---|---|
include | string[] | required | Glob patterns to include |
exclude | string[] | — | Glob patterns to exclude |
Output
Section titled “Output”archive— tar.gz archive of matched filesfiles— array of matched files with path, sha256, and sizecount— number of matched files