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:
parent
a53b70ed1d
commit
28f3ab69a6
1 changed files with 9 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue