Skip to main content
Module

x/deno2node/src/deps.deno.ts>Directory#getSourceFiles

Compile your Deno project to run on Node.js.
Go to Latest
method Directory.prototype.getSourceFiles
import { Directory } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Gets the source files within this directory.

Returns

SourceFile[]

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.

Returns

SourceFile[]

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.

Returns

SourceFile[]