Skip to content

generateLibraryIndex

Generates an index.ts barrel in every source folder that has something to export, re-exporting each module and each sub-barrel under its own name.

Import:

import { generateLibraryIndex } from '@mnaoumov/typescript-dev-toolkit/library-build';

Signature:

function generateLibraryIndex(options: GenerateLibraryIndexOptions): Promise<void>

Parameters:

Parameter Type Description
options GenerateLibraryIndexOptions The options.

Returns: Promise<void> — A Promise that resolves when the barrels have been written.


Links to this page: