Commit Graph

47 Commits

Author SHA1 Message Date
Aron Strandberg 6f0b6a56d3 fix(manager/npm): pass --no-frozen-lockfile to pnpm lock file updates (#44676)
* fix(manager/npm): pass --no-frozen-lockfile to pnpm lock file updates

pnpm applies an explicitly-set frozenLockfile: true from
pnpm-workspace.yaml even to 'pnpm install --lockfile-only', so lock file
regeneration always fails with ERR_PNPM_OUTDATED_LOCKFILE in repos that
set it: pnpm's CI frozen default has a --lockfile-only carve-out, but
explicitly-set values skip that carve-out, and only CLI flags take
precedence over pnpm-workspace.yaml settings. 'pnpm update' is not
affected by frozen mode (and rejects the flag), so only the install
command gets it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: less verbose comment

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-07 18:03:12 +00:00
Sebastian Poxhofer a473e73b3e fix(linters): forbid inert counts in v8 coverage-ignore comments (#45287)
Adds a custom oxlint rule renovate/v8-ignore-no-count that flags the
count form '/* v8 ignore next <N> */'. The count is not honored by
vitest's ast-v8-to-istanbul hint parser, which captures only the
keyword (if/else/next/file); 'next' always exempts exactly the next
AST node. Trailing counts therefore suggest a line range that is never
applied and mislead readers.

The rule is autofixable (drops the count, preserving actual behavior)
and has been applied to all existing occurrences.
2026-08-22 11:25:31 +00:00
Michael Kriese b2da209f26 fix(manager/npm): do not pass --recursive to pnpm dedupe (#45244)
`pnpm dedupe` does not support the `--recursive` flag, so strip it from
the shared args when building the dedupe command.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 12:58:51 +00:00
Marcelo Estriga 3646307241 fix(manager/npm): pass correct arguments to pnpm dedupe (#42024)
* fix(manager/npm): pass correct arguments to pnpm dedupe

Run pnpm dedupe with the same options that pnpm install, to:
- suppress unecessary dependency download;
- respect Renovate allowScripts and ignoreScripts options.

* fix documentation table alignment

* Fix typo
2026-08-11 22:02:16 +00:00
Michael Kriese 6804768a1a feat(npm): support pnpm workspace file overrides (#42247)
* feat(npm): support pnpm workspace file overrides

* chore: fix comment

* refactor: use types

* feat(npm/pnpm): update overrides in workspace file

* test: fix test

* chore: fix coverage
2026-04-08 12:01:31 +00:00
Jamie Tanna bc82cff059 feat(managers/npm): allow specifying toolSettings.nodeMaxMemory (#40957)
* feat(managers/npm): allow specifying `toolSettings.nodeMaxMemory`

As noted in #40942, we're seeing an increase in memory usage across
`pnpm` and `yarn` users in Mend-hosted apps.

To allow limiting the maximum memory that any `node` child processes
will use, we can add a new `toolSettings.nodeMaxMemory` to (hopefully)
mitigate this.

Similar to the `toolSettings.jvmMaxMemory`, the self-hosted
administrator can set a maximum, which cannot be exceeded by repo-level
configuration.

* fixup! feat(managers/npm): allow specifying `toolSettings.nodeMaxMemory`
2026-03-05 12:56:02 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
renovate[bot] acacad57c6 chore(deps): update linters (main) (#40277)
* chore(deps): update linters

| datasource | package              | from   | to     |
| ---------- | -------------------- | ------ | ------ |
| npm        | eslint-plugin-oxlint | 1.36.0 | 1.38.0 |
| npm        | typescript-eslint    | 8.50.1 | 8.52.0 |

* chore: enable oxlint gha format

* chore: fix lint

* chore: fix lint

* chore: fix lint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2026-01-14 15:32:48 +00:00
Michael Kriese 050ac8d23b chore: better code coverage (#39518) 2025-11-25 15:01:54 +00:00
RahulGautamSingh 76f911041a refactor: use named exports (#39196)
* use named exports

* fix test

* add missing imnport

* fix prettier
2025-11-10 12:00:35 +00:00
Rhys Arkins aaa360fae9 fix(pnpm): allow pnpmfile if scripts are allowed (#37750) 2025-08-29 08:34:49 +00:00
Michael Kriese 14fe4c3811 chore(npm): fix coverage reporting (#37401) 2025-08-08 13:12:04 +00:00
Henry Cai fbdf8dfecc feat(npm): support pnpm v11 environment variables (#36762) 2025-07-04 08:46:11 +00:00
Henry Cai ad8d9188ed fix(npm): set pnpm store location for corepack command (#36336) (#36727)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-07-03 06:43:01 +00:00
Henry Cai f297adadea fix(npm): update pnpm dedupe ignore-scripts flag (#36732) 2025-06-29 06:46:43 +00:00
Eric Boureau 1bef8cc8ef fix: pnpm recursive update for workspace project (#36586) 2025-06-26 07:44:52 +00:00
Michael Kriese 8fb6a9c89e fix(npm/pnpm): redirect cache and store dir (#35807) 2025-05-08 11:06:54 +00:00
RahulGautamSingh 80b7cdf1e0 refactor(util): move user env to util folder (#35103) 2025-04-02 10:27:27 +00:00
Trim21 8ce2d49c51 fix: pnpm install flags on non-workspace project (#34720) 2025-03-31 12:10:50 +00:00
renovate[bot] 55845508b6 chore(deps): update eslint monorepo to v9 (major) (#33573)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2025-02-20 11:31:13 +00:00
Michael Kriese b357e4d21c fix(npm): don't delete lockfiles early (#28472) 2024-04-18 06:22:03 +00:00
Michael Kriese b652e853f2 feat(npm): support pnpm v9 (#28470)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2024-04-17 10:46:53 +00:00
guillaumeduboc 11658dfa0d feat(manager/npm): handle pnpm lockfile updates (#26770)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-22 08:26:36 +00:00
RahulGautamSingh 2194142f78 feat(config): support user configured env (#27028)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-22 05:05:05 +00:00
Michael Kriese 6c2263eeb3 chore: fix types for linting (#26695) 2024-01-17 11:30:45 +00:00
Sebastian Poxhofer 3c33a26441 refactor(util/yaml): rename load and loadAll to parseSingleYaml and parseYaml (#26084) 2023-12-01 20:13:01 +00:00
Sebastian Poxhofer f42d0583d5 refactor(utils/yaml): centralize YAML parsing to allow central templating handling (#26068) 2023-12-01 11:58:43 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Bryan Lee 526ebe697e fix(manager/npm): use --config.ignore-scripts=true for pnpm dedupe (#25210) 2023-10-15 05:47:46 +00:00
Rhys Arkins 3609cddbbe fix(pnpm): Revert "feat(manager/npm): ignore scripts for pnpmDedupe" (#25208) 2023-10-14 10:56:57 +00:00
Bryan Lee 0d758a3d0e feat(manager/npm): ignore scripts for pnpmDedupe (#24505)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-10-09 09:49:05 +00:00
Michael Kriese 2d23e16b1e feat(manager/npm): extract contraints again on post-update (#23131) 2023-07-19 05:30:13 +00:00
David Weitzman bc7793c631 fix(pnpm): lockfile v6 is supported as low as version 7.24.2 (#22562) 2023-06-03 04:43:22 +00:00
Rhys Arkins d4d742c464 fix(pnpm): defer lock file constraint parsing (#22311)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-05-26 05:08:24 +00:00
Rhys Arkins 8d372fc594 fix(pnpm): use latest pnpm when upgrading pnpm (#22309) 2023-05-19 08:02:13 +00:00
ocavue 2235659b18 feat(manager/npm): support pnpmDedupe (#20392)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2023-02-14 09:10:50 +00:00
Michael Kriese 73be295310 feat(core): centralize sidecar image usage (#19545) 2022-12-23 09:45:15 +00:00
Rhys Arkins d1d6febd2e fix(npm): use nvmrc from lock file dir (#18978)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-11-18 06:13:09 +00:00
RahulGautamSingh d869c946d1 refactor: reduce debug metadata (#18737) 2022-11-07 11:29:02 +00:00
Michael Kriese 41894744ff feat(manager/npm): full pnpm buildpack support (#16989) 2022-08-05 14:29:33 +00:00
IKEDA Sho 72db89f6e5 refactor: Fix constraint typos (#16879) 2022-08-01 04:02:55 +00:00
Michael Kriese 0180fddb37 feat(npm): use updated node for artifacts (#15527) 2022-05-11 05:19:35 +00:00
Rhys Arkins 456b2c0d86 feat(pnpm): detect v7 support when updating lock file (#15470)
* feat(pnpm): detect v7 support when updating lock file

* fix type check

* refactor: test
2022-05-05 16:13:50 +02:00
Michael Kriese 9f53724d90 feat(manager:npm): use local fs api (#15294) 2022-04-25 15:41:10 +02:00
Michael Kriese 868ebbef63 refactor(manager): final strict null checks (#15185)
* refactor(manager): final strict null checks

* refactor: fix type issues

* test: fix mocking
2022-04-20 08:40:20 +02:00
StinkyLord b79c82e206 fix(manager/npm): use root pnpm constraints for workspaces (#14660)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-04-08 07:14:25 +00:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00