Skip to content

chore: Add warning message from #17 to the cli as well#20

Merged
danielroe merged 7 commits intonpmx-dev:mainfrom
neutrino2211:main
Jan 24, 2026
Merged

chore: Add warning message from #17 to the cli as well#20
danielroe merged 7 commits intonpmx-dev:mainfrom
neutrino2211:main

Conversation

@neutrino2211
Copy link
Copy Markdown
Contributor

Added the warning message in the UI to the cli logs. Currently done in separate lines.

image

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 24, 2026

@neutrino2211 is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

Comment thread cli/src/cli.ts Outdated

if (!npmUser) {
logWarning('Not logged in to npm. Starting npm login...')
logWarning('This allows npmx to access your npm cli and any authenticated contexts.')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should display the warning even if user is already logged into npm

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. Should the message be before or after the "Checking npm authentication..." Message?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it should be on startup, and require you to confirm you still want to proceed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense

@neutrino2211
Copy link
Copy Markdown
Contributor Author

It now

  • Shows the message on startup
  • Exits on selecting 'no'/cancelling
  • Shows an exit message using logError <- Is this okay?

Copy link
Copy Markdown
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you ❤️

@danielroe danielroe merged commit 50377f2 into npmx-dev:main Jan 24, 2026
7 of 8 checks passed
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants