Files
pnpm/installing/commands/src/getFetchFullMetadata.ts
Zoltan Kochan 303ca410f5 feat!: stop reading settings from the pnpm field of package.json (#10086)
Settings should be read from pnpm-workspace.yaml
2026-03-18 14:46:07 +01:00

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