Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix a few typos #3937

Merged
merged 3 commits into from
Jan 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/commands/base-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const FALLBACK_HELP_CMD_WIDTH = 80
const HELP_$ = NETLIFY_CYAN('$')
// indent on commands or description on the help page
const HELP_INDENT_WIDTH = 2
// seperator width between term and description
const HELP_SEPERATOR_WIDTH = 5
// separator width between term and description
const HELP_SEPARATOR_WIDTH = 5

/**
* Formats a help list correctly with the correct indent
Expand Down Expand Up @@ -213,7 +213,7 @@ class BaseCommand extends Command {
const bang = isCommand ? `${HELP_$} ` : ''

if (description) {
const pad = termWidth + HELP_SEPERATOR_WIDTH
const pad = termWidth + HELP_SEPARATOR_WIDTH
const fullText = `${bang}${term.padEnd(pad - (isCommand ? 2 : 0))}${chalk.grey(description)}`
return helper.wrap(fullText, helpWidth - HELP_INDENT_WIDTH, pad)
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/addons/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function generatePrompts(settings) {
console.log('')
}

// Handle shorthand config. Probably will be removed. Severly limited + not great UX
// Handle shorthand config. Probably will be removed. Severely limited + not great UX
if (typeof setting === 'string' || typeof setting === 'boolean') {
if (typeof setting === 'string') {
prompt = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/traffic-mesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const forwardMessagesToLog = ({ subprocess }) => {
stopSpinner({
spinner,
error: true,
text: `${NETLIFYDEVERR} An error occured while bundling processing the messages from routing-local-proxy: ${err}`,
text: `${NETLIFYDEVERR} An error occurred while bundling processing the messages from routing-local-proxy: ${err}`,
})

firstBundleReject(err)
Expand Down