diff --git a/src/package-managers/npm.ts b/src/package-managers/npm.ts index 1fea42f0..64ee279c 100644 --- a/src/package-managers/npm.ts +++ b/src/package-managers/npm.ts @@ -436,8 +436,9 @@ async function viewMany( return Promise.resolve({} as Index) } - const fullMetadata = !!options.format?.includes('time') - const fieldsExtended = fullMetadata ? [...fields, 'time'] : fields + // fields may already include time + const fieldsExtended = options.format?.includes('time') ? [...fields, 'time'] : fields + const fullMetadata = fieldsExtended.includes('time') const npmConfigMerged = mergeNpmConfigs( {