Skip to content

Commit cbd8af2

Browse files
nil957Javis
andauthored
fix(cli): check publish command at argv[2] position only (#468)
Co-authored-by: Javis <javis@JavisdeMacBook-Air.local>
1 parent bfa5fbd commit cbd8af2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async function main(): Promise<void> {
189189
} = parseArgs()
190190

191191
const isLoginCommand = process.argv[2] === 'login'
192-
const isPublishCommand = process.argv.includes('publish')
192+
const isPublishCommand = process.argv[2] === 'publish'
193193
const hasAgentOverride = Boolean(agent?.trim())
194194

195195
await initializeApp({ cwd })

0 commit comments

Comments
 (0)