mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-06 08:14:04 -04:00
12 lines
501 B
TypeScript
12 lines
501 B
TypeScript
import type { InstallCommandOptions } from './install.js'
|
|
|
|
export type GetFetchFullMetadataOptions = Pick<InstallCommandOptions, 'supportedArchitectures'>
|
|
|
|
/**
|
|
* This function is a workaround for the fact that npm registry's abbreviated metadata currently does not contain `libc`.
|
|
*
|
|
* See <https://github.com/pnpm/pnpm/issues/7362#issuecomment-1971964689>.
|
|
*/
|
|
export const getFetchFullMetadata = (opts: GetFetchFullMetadataOptions): true | undefined =>
|
|
opts.supportedArchitectures?.libc && true
|