renovate/lib/manager/npm/post-update
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
..
__snapshots__ 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 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
lerna.spec.ts 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
lerna.ts 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
node-version.spec.ts refactor: Separate 'git' and 'fs' util modules (#6665) 2020-07-03 16:47:00 +02:00
node-version.ts refactor: Separate 'git' and 'fs' util modules (#6665) 2020-07-03 16:47:00 +02:00
npm.spec.ts refactor: Call 'fs-extra' functions via proxies (#6683) 2020-07-06 11:17:06 +02:00
npm.ts chore(eslint): enable typescript 3.7 rules (#6765) 2020-07-18 08:42:32 +02:00
pnpm.spec.ts refactor: Call 'fs-extra' functions via proxies (#6683) 2020-07-06 11:17:06 +02:00
pnpm.ts refactor: Call 'fs-extra' functions via proxies (#6683) 2020-07-06 11:17:06 +02:00
yarn.spec.ts fix: revert: add currentValue to yarn upgrade command (#6775) 2020-07-17 14:13:20 +02:00
yarn.ts fix: revert: add currentValue to yarn upgrade command (#6775) 2020-07-17 14:13:20 +02:00