Skip to content

Commit 0c0faae

Browse files
authored
fix(adduser): improve email prompt (#8780)
This makes the email prompt in `npm adduser` a bit more friendly (no need to shout) and places the colon at the end like in the other prompts πŸ˜ƒ Works well with the #8322 spinner fix.
1 parent 5271485 commit 0c0faae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žlib/utils/auth.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const adduser = async (npm, { creds, ...opts }) => {
5151
if (!res) {
5252
const username = await read.username('Username:', creds.username)
5353
const password = await read.password('Password:', creds.password)
54-
const email = await read.email('Email: (this IS public) ', creds.email)
54+
const email = await read.email('Email (this will be public):', creds.email)
5555
// npm registry quirk: If you "add" an existing user with their current
5656
// password, it's effectively a login, and if that account has otp you'll
5757
// be prompted for it.

β€Žlib/utils/read-user-info.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://docs.npmjs.com/getting-started/using-two-factor-authentication
99
Enter OTP: `
1010
const passwordPrompt = 'npm password: '
1111
const usernamePrompt = 'npm username: '
12-
const emailPrompt = 'email (this IS public): '
12+
const emailPrompt = 'email (this will be public): '
1313

1414
const read = (...args) => input.read(() => _read(...args))
1515

0 commit comments

Comments
Β (0)