Skip to content

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"],
});
FieldTypeDefaultDescription
includestring[]requiredGlob patterns to include
excludestring[]Glob patterns to exclude
  • archive — tar.gz archive of matched files
  • files — array of matched files with path, sha256, and size
  • count — number of matched files