UNPKG

694 BTypeScriptView Raw
1/**
2 * Everything defaults to `undefined`.
3 */
4export interface KpyOptions {
5 /**
6 * @default . (cwd)
7 */
8 baseDir: string;
9 /**
10 * @default to `**` (everything, including sub-dirs)
11 */
12 inputPatterns?: string[];
13 /**
14 * @default . (cwd)
15 */
16 outputDir: string;
17 silent?: boolean;
18 verbose?: boolean;
19 /**
20 * Safety setting
21 *
22 * @default false
23 */
24 noOverwrite?: boolean;
25 dotfiles?: boolean;
26 flat?: boolean;
27 dry?: boolean;
28 /**
29 * Will Move instead of Copy
30 */
31 move?: boolean;
32}
33export declare function kpy(opt: KpyOptions): Promise<void>;
34export declare function kpySync(opt: KpyOptions): void;