0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-13 07:43:27 +00:00
renovatebot_renovate/lib/modules/manager/npm
2024-03-24 08:51:57 +00:00
..
__fixtures__ feat(npm)!: drop explicit lerna support () 2023-09-27 14:29:07 +02:00
__snapshots__ test: use jest v29 () 2022-08-16 14:22:29 +02:00
extract fix(yarn): support v4 lock file detection and add forwards compatibility () 2024-03-11 08:44:14 +00:00
post-update fix(yarn): revert default proxy behavior () 2024-03-24 08:51:57 +00:00
update feat(manager/npm): handle pnpm lockfile updates () 2024-02-22 08:26:36 +00:00
detect.spec.ts refactor(prettier): Force trailing commas () 2023-11-07 15:50:29 +00:00
detect.ts chore: use node: protocol imports () 2023-03-28 21:05:36 +00:00
index.ts fix(npm): don't set default versioning () 2024-01-29 21:21:02 +00:00
range.spec.ts feat(config)!: default to rangeStrategy=auto, prefer update-lockfile () 2023-03-10 09:25:45 +01:00
range.ts refactor(prettier): Force trailing commas () 2023-11-07 15:50:29 +00:00
readme.md fix(yarn): revert default proxy behavior () 2024-03-24 08:51:57 +00:00
schema.ts feat(npm): support corepack packageManager URLs () 2024-03-12 04:39:47 +00:00
types.ts feat(npm)!: drop explicit lerna support () 2023-09-27 14:29:07 +02:00
utils.spec.ts chore: update types reference 2023-08-15 11:31:15 +02:00
utils.ts fix(npm): add trailing newline when composing lockfiles () 2022-03-22 09:50:46 +01: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

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.