跳到正文

Interface: CopyEntry

Defined in: src/features/copy.ts:8

Properties

flatten?

ts
optional flatten: boolean;

Defined in: src/features/copy.ts:23

Whether to flatten the copied files (not preserving directory structure).

Default

ts
true

from

ts
from: string | string[];

Defined in: src/features/copy.ts:12

Source path or glob pattern.


rename?

ts
optional rename: string | (name, extension, fullPath) => string;

Defined in: src/features/copy.ts:32

Change destination file or folder name.


to?

ts
optional to: string;

Defined in: src/features/copy.ts:17

Destination path. If not specified, defaults to the output directory ("outDir").


verbose?

ts
optional verbose: boolean;

Defined in: src/features/copy.ts:28

Output copied items to console.

Default

ts
false

Released under the MIT License.