0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-03-16 00:54:53 +00:00

fix(npm): lerna npm shrinkwrap lockFileMaintenance

This commit is contained in:
Rhys Arkins 2019-04-24 15:47:06 +02:00
parent a53b70ed1d
commit 28f3ab69a6

View file

@ -600,7 +600,14 @@ async function getAdditionalFiles(config, packageFiles) {
); );
if (existingContent) { if (existingContent) {
logger.trace('Found lock file'); 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); logger.trace('Checking against ' + lockFilePath);
try { try {
const newContent = await fs.readFile(lockFilePath, 'utf8'); const newContent = await fs.readFile(lockFilePath, 'utf8');
@ -617,7 +624,7 @@ async function getAdditionalFiles(config, packageFiles) {
if (config.updateType === 'lockFileMaintenance') { if (config.updateType === 'lockFileMaintenance') {
logger.info( logger.info(
{ lockFilePath }, { lockFilePath },
'No lock file found after lerna bootstrap' 'No lock file found after lerna lockFileMaintenance'
); );
} else { } else {
logger.warn( logger.warn(