ng-packagr
Version:
Compile and package Angular libraries in Angular Package Format (APF)
14 lines (13 loc) • 894 B
TypeScript
import { StylesheetLanguage } from './stylesheet-plugin-factory';
export declare function resetSassWorkerPoolCaches(): void;
export declare function shutdownSassWorkerPool(): void;
export declare const SassStylesheetLanguage: Readonly<StylesheetLanguage>;
export declare function isPackageUrl(url: string): boolean;
/**
* Returns the scope of the package resolutions of a stylesheet. A stylesheet within `node_modules`
* is scoped to the root of its package, which follows the last `node_modules` segment of its path.
* Every file of a package resolves packages against the same `node_modules` directories, while a
* nested dependency has its own. All other stylesheets share the working directory, allowing
* component stylesheets to share package resolutions.
*/
export declare function getPackageScope(containingPath: string | undefined, workingDirectory: string | undefined): string;