mirror of
https://github.com/renovatebot/renovate.git
synced 2025-03-15 00:32:54 +00:00
fix(npm): lerna npm shrinkwrap lockFileMaintenance
This commit is contained in:
parent
a53b70ed1d
commit
28f3ab69a6
1 changed files with 9 additions and 2 deletions
|
@ -600,7 +600,14 @@ async function getAdditionalFiles(config, packageFiles) {
|
|||
);
|
||||
if (existingContent) {
|
||||
logger.trace('Found lock file');
|
||||
const lockFilePath = upath.join(config.localDir, filename);
|
||||
let lockFilePath = upath.join(config.localDir, filename);
|
||||
// istanbul ignore if
|
||||
if (config.updateType === 'lockFileMaintenance') {
|
||||
lockFilePath = lockFilePath.replace(
|
||||
'npm-shrinkwrap.json',
|
||||
'package-lock.json'
|
||||
);
|
||||
}
|
||||
logger.trace('Checking against ' + lockFilePath);
|
||||
try {
|
||||
const newContent = await fs.readFile(lockFilePath, 'utf8');
|
||||
|
@ -617,7 +624,7 @@ async function getAdditionalFiles(config, packageFiles) {
|
|||
if (config.updateType === 'lockFileMaintenance') {
|
||||
logger.info(
|
||||
{ lockFilePath },
|
||||
'No lock file found after lerna bootstrap'
|
||||
'No lock file found after lerna lockFileMaintenance'
|
||||
);
|
||||
} else {
|
||||
logger.warn(
|
||||
|
|
Loading…
Reference in a new issue