Skip to main content
Module

x/deno2node/src/deps.deno.ts>Project#addSourceFileAtPath

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

Adds an existing source file from a file path or throws if it doesn't exist.

Will return the source file if it was already added.

Parameters

filePath: string
  • File path to get the file from.