Skip to content

GenerateLibraryIndexOptions

Options for generateLibraryIndex.

Import:

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

Signature:

export interface GenerateLibraryIndexOptions

Properties

PropertyTypeDescription
excludeFromIndex?readonly string[] | undefinedSource modules or folders to leave off the generated barrels, as paths from the package root (src/demo-vault-buttons.ts, src/test-runners/integration). A module that needs an optional peer, or one that runs code at load time which only works inside a test runner, goes here, so importing a barrel never loads it. It is still built and stays reachable through its own subpath export. A path that names nothing the barrels would export throws, so a rename cannot quietly put the module back.

Links to this page: