@nxext/stencil
Version:
Nx plugin for stenciljs
13 lines (12 loc) • 663 B
TypeScript
import { PathCollection } from './types';
import type { Config } from '@stencil/core/compiler';
/**
* Bootstraps the stencil config for an executor run: ensures the dist
* directory exists, scaffolds the publishable package.json inside it,
* and (for e2e) stages a `package.e2e.json` at the project root.
*
* Output-target paths themselves are not rewritten. `initializeStencilConfig`
* already overrides `config.rootDir` to the distDir, which redirects every
* default output target — user-defined `dir`s are respected as-is.
*/
export declare function prepareConfigAndOutputargetPaths(config: Config, pathCollection: PathCollection): Promise<Config>;