UNPKG

@visulima/packem

Version:

A fast and modern bundler for Node.js and TypeScript.

27 lines (26 loc) 713 B
import type { Pail } from "@visulima/pail"; import type { Plugin } from "rollup"; type SingleTargetDesc = { dest?: string; exclude?: string[] | string; src: string[] | string; }; type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string; export type CopyPluginOptions = { /** * Copy items once. Useful in watch mode. * * @default false */ copyOnce?: boolean; exactFileNames?: boolean; /** * Remove the directory structure of copied files. * * @default true */ flatten?: boolean; targets: MultipleTargetsDesc; }; export declare const copyPlugin: (options: CopyPluginOptions, logger: Pail) => Plugin; export {};