We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ab45a8 commit 69c6c3cCopy full SHA for 69c6c3c
1 file changed
src/commands/optimize.ts
@@ -769,6 +769,7 @@ async function addOverrides(
769
{
770
agent,
771
agentExecPath,
772
+ lockBasename,
773
lockSrc,
774
manifestEntries,
775
npmExecPath,
@@ -848,7 +849,7 @@ export const optimize: CliSubcommand = {
848
849
return
850
}
851
const lockName = lockPath ? lockBasename : 'lock file'
- if (lockSrc === undefined) {
852
+ if (lockBasename === undefined || lockSrc === undefined) {
853
console.error(`✖️ ${COMMAND_TITLE}: No ${lockName} found`)
854
855
0 commit comments