histoire
Version:
A fast story book powered by Vite
12 lines • 811 B
TypeScript
/** Resolved registry routing with credentials kept inside server-only closures. */
export interface NpmRegistryConfig {
/** Select the scoped registry or the default registry; always ends in a slash. */
registryFor: (id?: string) => string;
/** Select authorization only for an exact host and credential path prefix. */
authorizationFor: (url: string) => string | undefined;
}
/** Resolve env over project over workspace over user npmrc; never read global npmrc. */
export declare function resolveNpmConfig(root: string, registryUrl?: string): Promise<NpmRegistryConfig>;
/** Canonical credential-free packument URL shared by fetches and read-only planners. */
export declare function registryPackumentUrl(config: NpmRegistryConfig, id: string): string;
//# sourceMappingURL=npm-config.d.ts.map