Skip to content

Commit 705d699

Browse files
committed
Fix type nits
1 parent 8f1c4bc commit 705d699

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/optimize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,7 @@ async function addOverrides(
769769
{
770770
agent,
771771
agentExecPath,
772+
lockBasename,
772773
lockSrc,
773774
manifestEntries,
774775
npmExecPath,
@@ -848,7 +849,7 @@ export const optimize: CliSubcommand = {
848849
return
849850
}
850851
const lockName = lockPath ? lockBasename : 'lock file'
851-
if (lockSrc === undefined) {
852+
if (lockBasename === undefined || lockSrc === undefined) {
852853
console.error(`✖️ ${COMMAND_TITLE}: No ${lockName} found`)
853854
return
854855
}

0 commit comments

Comments
 (0)