Skip to content

GenerateLibraryIndexOptions.excludeFromIndex?

GenerateLibraryIndexOptions › excludeFromIndex?

Type: readonly string[] | undefined

Source 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.