Files
pnpm/__typings__/local.d.ts
Zoltan Kochan 8bba5c3858 refactor(config): only read auth/registry from .npmrc, add registries to pnpm-workspace.yaml (#11189)
Replace the unmaintained @pnpm/npm-conf package with a purpose-built
module that reads only auth/registry-related settings from .npmrc files
using read-ini-file + @pnpm/config.env-replace (both already deps).

All non-registry settings (hoist-pattern, node-linker, etc.) are now
only read from pnpm-workspace.yaml, CLI options, or environment
variables. Registry-related settings (auth tokens, registry URLs,
SSL certs, proxy settings) continue to be read from .npmrc for
migration compatibility, and can also be set in pnpm-workspace.yaml.

New modules:
- loadNpmrcFiles.ts: reads .npmrc from standard locations, filters to
  auth/registry keys, returns structured layers
- npmConfigTypes.ts: inlined npm config type definitions
- npmDefaults.ts: inlined npm defaults (registry, unsafe-perm, etc.)
2026-04-04 02:44:12 +02:00

118 lines
2.4 KiB
TypeScript

/* eslint-disable @typescript-eslint/no-explicit-any */
declare module 'bole' {
const anything: any
export = anything
}
declare module 'split2' {
const anything: any
export = anything
}
declare module 'hyperdrive-schemas' {
const anything: any
export = anything
}
declare module 'fuse-native' {
const anything: any
export = anything
}
declare module '@zkochan/libnpx/index' {
const anything: any
export = anything
}
declare module '@pnpm/npm-lifecycle' {
export function lifecycle (pkg: any, stage: string, wd: string, opts: any): Promise<void>
export function makeEnv (data: any, opts: any, prefix?: string | null, env?: any): Record<string, string>
}
declare module '@pnpm/npm-package-arg' {
const anything: any
export = anything
}
declare module '@pnpm/which' {
const anything: any
export = anything
}
declare module 'anonymous-npm-registry-client' {
const anything: any
export = anything
}
declare module 'ansi-diff' {
const anything: any
export = anything
}
declare module 'better-path-resolve' {
export const betterPathResolve: (...args: any[]) => any
}
// cspell:disable-next-line
declare module '@zkochan/diable' {
const anything: any
export = anything
}
declare module 'dint' {
const anything: any
export = anything
}
declare module 'exists-link' {
const anything: any
export = anything
}
declare module 'graceful-git' {
export const gracefulGit: any
export const noRetry: any
}
declare module 'is-inner-link' {
export function isInnerLink (parent: string, relativePathToLink: string): Promise<{ isInner: boolean, target: string }>
}
declare module 'read-package-json' {
const anything: any
export = anything
}
declare module 'split-cmd/index.modern.mjs' {
export function split (command: string): string[]
}
declare module 'stacktracey' {
const anything: any
export = anything
}
declare module 'yaml-tag' {
const anything: any
export = anything
}
declare module '@pnpm/patch-package/dist/applyPatches.js' {
export function applyPatch (opts: any): boolean
}
declare module 'ramda/src/map' {
function map <K extends string | number | symbol, V, U> (fn: (x: V) => U, obj: Record<K, V>): Record<K, U>
export = map
}
declare module '@yarnpkg/core/semverUtils'
declare module '@yarnpkg/core/structUtils'
// These are needed for transitive type dependencies that can't be resolved
// from within the pnpm store
declare module 'picomatch' {
const anything: any
export = anything
}