Skip to main content

Interface: CopyDirOptions

Properties​

allowedSymlinkRoots?​

optional allowedSymlinkRoots?: readonly string[] | null

Besides the containment root, the directories a copied symlink may lead into, such as the workspace root. A symlink that leads anywhere else fails the copy. A symlink is kept as it is, so one that leads into these roots points outside the output.


containmentRoot?​

optional containmentRoot?: string | null

Every file, directory and symlink is written inside this directory, checked by its real path when it is written (see WriteContainment). Pass the output directory the copy is part of, such as the app output directory, rather than a directory that copied files may have created. Defaults to destination.


optional externalLinks?: ExternalLinkPolicy | null

The fileOptions.allowExternalLinks build option: a copied symlink that leads outside the containment root and the allowed roots is kept when it allows it. It does not allow a write through a symlink.


filter?​

optional filter?: Filter | null


optional isUseHardLink?: ((file) => boolean) | null


transformer?​

optional transformer?: FileTransformer | null