0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-02-28 10:34:06 +00:00
renovatebot_renovate/lib/modules/manager/npm
2025-02-26 15:45:17 +00:00
..
__fixtures__ fix(manager/npm): support modern pnpm overrides syntax (#31829) 2024-10-07 14:52:56 +00:00
__snapshots__ test: migrate to vitest (#34475) 2025-02-26 09:35:54 +00:00
extract test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
post-update test: migrate more to vitest (#34500) 2025-02-26 15:45:17 +00:00
update test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
artifacts.spec.ts test: migrate from jest to vitest (#34499) 2025-02-26 14:18:38 +00:00
artifacts.ts fix(npm): update npmrc before executing corepack cmd (#32733) 2024-11-27 08:55:51 +00:00
detect.spec.ts test: migrate to vitest (#34475) 2025-02-26 09:35:54 +00:00
detect.ts chore(deps): update typescript-eslint monorepo to v8 (major) (#30750) 2024-08-14 10:33:02 +00:00
index.ts feat(managers/npm): support pnpm catalogs (#33376) 2025-01-28 10:11:55 +00:00
range.spec.ts feat(config)!: default to rangeStrategy=auto, prefer update-lockfile (#19942) 2023-03-10 09:25:45 +01:00
range.ts refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
readme.md feat(managers/npm): support pnpm catalogs (#33376) 2025-01-28 10:11:55 +00:00
schema.ts feat(managers/npm): support pnpm catalogs (#33376) 2025-01-28 10:11:55 +00:00
types.ts feat(npm)!: drop explicit lerna support (#24542) 2023-09-27 14:29:07 +02:00
utils.spec.ts docs: typos and american spellings (#28215) 2024-04-04 07:16:15 +00:00
utils.ts fix(npm): update npmrc before executing corepack cmd (#32733) 2024-11-27 08:55:51 +00:00

The following depTypes are currently supported by the npm manager :

  • dependencies
  • devDependencies
  • optionalDependencies
  • peerDependencies
  • engines : Renovate will update any node, npm and yarn version specified under engines.
  • volta : Renovate will update any node, npm, pnpm and yarn version specified under volta.
  • packageManager
  • overrides
  • resolutions
  • pnpm.overrides
  • pnpm.catalog.<name>, such as pnpm.catalog.default and pnpm.catalog.myCatalog. Matches any default and named pnpm catalogs.

Yarn

Version Selection / Installation

If Renovate detects a packageManager setting for Yarn in package.json then it will use Corepack to install Yarn.

HTTP Proxy Support

Yarn itself does not natively recognize/support the HTTP_PROXY and HTTPS_PROXY environment variables.

You can configure RENOVATE_X_YARN_PROXY=true as an environment variable to enable configuring of Yarn proxy (e.g. if you cannot configure these proxy settings yourself in ~/.yarnrc.yml).

If set, and Renovate detects Yarn 2+, and one or both of those variables are present, then Renovate will run commands like yarn config set --home httpProxy http://proxy prior to executing yarn install. This will result in the ~/.yarnrc.yml file being created or modified with these settings, and the settings are not removed afterwards.

Configuration/conversion of NO_PROXY to Yarn config is not supported.