Skip to content

Commit

Permalink
fix: fix a few typos (#3937)
Browse files Browse the repository at this point in the history
Co-authored-by: Erez Rokah <[email protected]>
  • Loading branch information
XhmikosR and erezrokah authored Jan 4, 2022
1 parent 0f8d5d8 commit f560c82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

1 comment on commit f560c82

@github-actions
Copy link

Choose a reason for hiding this comment

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

📊 Benchmark results

Package size: 359 MB

Please sign in to comment.