Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Compile your Deno project to run on Node.js.
Go to Latest
method Project.prototype.addSourceFileAtPath
import { Project } from "https://deno.land/x/deno2node@v1.10.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.