You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2026. It is now read-only.
#476 wired proxy support through .npmrc and the env-var cascade. pnpm also accepts proxy/TLS values as CLI flags via nopt — see npmConfigTypes.ts for the declared types. Pacquet currently has no CLI-flag layer for these, so users who pass --https-proxy=... get an unknown-flag error.
Wire them through clap on the shared install args struct. The flags should bind into Config.proxy / Config.tlsafter the .npmrc + env cascade has run, so CLI > env > .npmrc precedence matches pnpm's config/reader/src/index.ts:591-600 (env is consulted only when neither CLI nor .npmrc set the slot).
Tests:
Each flag round-trips into the resolved Config.
CLI overrides .npmrc (write a tempdir .npmrc with one value, pass a different flag, assert the flag wins).
npm_config_* env-var fallback for the CLI-style names. pnpm runs CLI flags through nopt which writes npm_config_* env vars; pacquet doesn't go through nopt. Match the resolved behavior, not the env-var mirror.
Background
#476 wired proxy support through
.npmrcand the env-var cascade. pnpm also accepts proxy/TLS values as CLI flags via nopt — seenpmConfigTypes.tsfor the declared types. Pacquet currently has no CLI-flag layer for these, so users who pass--https-proxy=...get an unknown-flag error.What to do
--proxy,--https-proxy,--http-proxy,--no-proxy, plus (after feat(config,network): TLS keys + local-address from .npmrc #482 lands)--ca,--cafile,--cert,--key,--strict-ssl,--local-address. Mirror pnpm's nopt declarations exactly.Config.proxy/Config.tlsafter the.npmrc+ env cascade has run, so CLI > env > .npmrc precedence matches pnpm'sconfig/reader/src/index.ts:591-600(env is consulted only when neither CLI nor .npmrc set the slot).Config..npmrc(write a tempdir.npmrcwith one value, pass a different flag, assert the flag wins).--no-proxy=trueliteral becomesNoProxySetting::Bypass.pnpm.iodocs (if pacquet maintains a CLI-flag reference there) — separate.Out of scope
npm_config_*env-var fallback for the CLI-style names. pnpm runs CLI flags through nopt which writesnpm_config_*env vars; pacquet doesn't go through nopt. Match the resolved behavior, not the env-var mirror.Depends on
Written by an agent (Claude Code, claude-opus-4-7).