Skip to content
Snippets Groups Projects
Commit 66c3b1c9 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

logs: log npmrc file name

parent 486decbe
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,10 @@ export async function extractPackageFile( ...@@ -104,7 +104,10 @@ export async function extractPackageFile(
npmrc = await readLocalFile(npmrcFileName, 'utf8'); npmrc = await readLocalFile(npmrcFileName, 'utf8');
if (is.string(npmrc)) { if (is.string(npmrc)) {
if (npmrc.includes('package-lock')) { if (npmrc.includes('package-lock')) {
logger.debug('Stripping package-lock setting from npmrc'); logger.debug(
{ npmrcFileName },
'Stripping package-lock setting from .npmrc'
);
npmrc = npmrc.replace(/(^|\n)package-lock.*?(\n|$)/g, '\n'); npmrc = npmrc.replace(/(^|\n)package-lock.*?(\n|$)/g, '\n');
} }
if (npmrc.includes('=${') && getAdminConfig().trustLevel !== 'high') { if (npmrc.includes('=${') && getAdminConfig().trustLevel !== 'high') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment