@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
25 lines (24 loc) • 699 B
text/typescript
import type { Pail } from "@visulima/pail";
import type { Plugin } from "rollup";
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;
};
type MultipleTargetsDesc = SingleTargetDesc | SingleTargetDesc[] | string[] | string;
type SingleTargetDesc = {
dest?: string;
exclude?: string[] | string;
src: string[] | string;
};
export declare const copyPlugin: (options: CopyPluginOptions, logger: Pail) => Plugin;
export {};