renovate/lib/manager/npm
Grégory Joseph b72bf4c8e5
fix(lerna): Fix support for Lerna when package.json is not at the root of the repo (#6675)
* fix(lerna): Fix support for Lerna when package.json is not at the root of the repo

Pass the PackageFile object to generateLockFiles, and use that rather than hardcode 'package.json'
Closes #6574

* Add test for #6574 - loads package.json from the given file, not root

* Alternative approach: don't re-load the file at all, deps are already specified. Unsure about tests

* Making eslint happy

* Add tests for getLernaVersion (and some fixes along the way)

* Copy/pasta error -- that test function didn't need to be async

* Wrap lerna tests in a describe(getName)

* Adapted snapshot file

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2020-07-18 16:40:35 +02:00
..
__fixtures__ feat: npm resolutions (#5689) 2020-03-11 07:17:42 +01:00
__snapshots__ refactor(test): move manager tests to lib (#5300) 2020-02-05 01:14:31 +01:00
extract chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00
post-update fix(lerna): Fix support for Lerna when package.json is not at the root of the repo (#6675) 2020-07-18 16:40:35 +02:00
index.ts feat(internal): template fields enforcement (#5880) 2020-04-06 12:55:34 +02:00
range.spec.ts chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
range.ts chore: import linting (#6105) 2020-05-01 18:03:48 +02:00
readme.md docs: move manager docs out of config options (#5410) 2020-02-25 06:45:00 +01:00
update.spec.ts chore(jest): add eslint jest checks (#5986) 2020-05-18 14:33:44 +02:00
update.ts chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02: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 and yarn version specified under volta.