Skip to main content
Module

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

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

Moves this source file to the specified directory.

This will modify the module specifiers in other files that specify this file and the module specifiers in the current file, if necessary.

Parameters

dirPathOrDirectory: string | Directory

Directory path or directory object to move the file to.

optional
options: SourceFileMoveOptions

Options for moving.