Module

x/ts_morph/mod.ts>Directory#getSourceFiles

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Latest
method Directory.prototype.getSourceFiles
import { Directory } from "https://dotland.deno.dev/x/ts_morph@22.0.0/mod.ts";

Gets the source files within this directory.

Gets all the source files added to the project relative to the directory that match a pattern.

Parameters

globPattern: string
  • Glob pattern for filtering out the source files.

Gets all the source files added to the project relative to the directory that match the provided patterns.

Parameters

globPatterns: ReadonlyArray<string>
  • Glob patterns for filtering out the source files.