Skip to main content
Module

x/deno2node/src/deps.deno.ts>SourceFile#copyToDirectory

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

Copies this source file to the specified directory.

This will modify the module specifiers in the new file, if necessary.

Parameters

dirPathOrDirectory: string | Directory

Directory path or directory object to copy the file to.

optional
options: SourceFileCopyOptions

Options for copying.

Returns

The source file the copy was made to.