@bomb.sh/tools
Version:
The internal dev, build, and lint CLI for Bombshell projects
19 lines • 822 B
text/typescript
//#region src/surface.d.ts
/**
* Compute the public API surface of the package(s) rooted at `root`.
*
* The public surface is the set of source files consumers can import —
* derived from `package.json` `exports`, `bin`, and `main`/`module` fields
* by mapping published `dist/` paths back to their `src/` origins.
*
* Returns oxlint-style glob patterns relative to `root`. Packages without a
* publish surface (apps, examples, private tooling) yield an empty array —
* surface-scoped lint rules stay silent there.
*
* Monorepos are handled by convention: each `packages/<name>/package.json`
* contributes its own surface, prefixed with `packages/<name>/`.
*/
declare function getPublicSurface(root: URL): Promise<string[]>;
//#endregion
export { getPublicSurface };
//# sourceMappingURL=surface.d.mts.map