UNPKG

typescript-file-copy-plugin

Version:

[![NPM version](https://img.shields.io/npm/v/typescript-file-copy-plugin.svg?style=flat-square)](https://www.npmjs.com/package/typescript-file-copy-plugin) ![NPM Downloads](https://img.shields.io/npm/dm/typescript-file-copy-plugin) [![TypeScript](https://

28 lines (25 loc) 764 B
import * as ts from 'typescript'; interface FileCopyConfig { /** * The source file or directory to copy. */ src: string; /** * The destination file or directory to copy to. */ dest: string; } interface CopyFilesPluginOptions { copy: FileCopyConfig[]; } /** * The main plugin function. * Validates the options, sets up post compilation file copying, * and creates the necessary transformer. * * @param program - The TypeScript program * @param pluginOptions - The options for the plugin * @returns A factory function for creating transformers */ declare function export_default(program: ts.Program, pluginOptions: CopyFilesPluginOptions): ts.TransformerFactory<ts.SourceFile>; export { export_default as default };