mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-18 14:08:14 -04:00
* build: enable `@typescript-eslint/no-import-type-side-effects` * build: disable `@typescript-eslint/consistent-type-imports` * chore: apply fixes for `no-import-type-side-effects` pnpm exec eslint "**/src/**/*.ts" "**/test/**/*.ts" --fix
14 lines
595 B
TypeScript
14 lines
595 B
TypeScript
import type { InstallCommandOptions } from './install.js'
|
|
|
|
export type GetFetchFullMetadataOptions = Pick<InstallCommandOptions, 'supportedArchitectures' | 'rootProjectManifest'>
|
|
|
|
/**
|
|
* 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 ??
|
|
opts.rootProjectManifest?.pnpm?.supportedArchitectures?.libc
|
|
) && true
|