From bdcb7ed087d588400146e58abf74a0c55d5a10de Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Jun 2026 09:16:33 +0200 Subject: [PATCH 1/3] fix typos within comments and strings inside .md and .js files --- CHANGELOG.md | 4 ++-- lib/bootstrap.js | 2 +- lib/errors.js | 2 +- lib/instance.js | 2 +- lib/tasks/configure/get-prompts.js | 2 +- lib/ui/index.js | 6 +++--- test/unit/commands/migrate-spec.js | 2 +- test/unit/tasks/install-dependencies-spec.js | 6 +++--- test/unit/ui/index-spec.js | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f20f824c..d6eb49fa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -640,7 +640,7 @@ All notable changes to this project will be documented in this file. See [standa ### Bug Fixes * **engines:** update node version restrictions to match Ghost ([c45909d](https://github.com/TryGhost/Ghost-CLI/commit/c45909d)) -* **utils:** prerelease statisfies engine definition ([8bfcc38](https://github.com/TryGhost/Ghost-CLI/commit/8bfcc38)) +* **utils:** prerelease satisfies engine definition ([8bfcc38](https://github.com/TryGhost/Ghost-CLI/commit/8bfcc38)) @@ -1317,7 +1317,7 @@ All notable changes to this project will be documented in this file. See [standa ### Bug Fixes -* **extensions:** remove unecessary getters from systemd and nginx extensions ([f5f6e05](https://github.com/TryGhost/Ghost-CLI/commit/f5f6e05)) +* **extensions:** remove unnecessary getters from systemd and nginx extensions ([f5f6e05](https://github.com/TryGhost/Ghost-CLI/commit/f5f6e05)) * **instance:** clean up config usage around application (#254) ([22c804c](https://github.com/TryGhost/Ghost-CLI/commit/22c804c)) * **setup:** reset setup default to true ([7c4cdf3](https://github.com/TryGhost/Ghost-CLI/commit/7c4cdf3)) * **systemd:** fix is-enabled error handling in systemd process manager ([ff6cfba](https://github.com/TryGhost/Ghost-CLI/commit/ff6cfba)) diff --git a/lib/bootstrap.js b/lib/bootstrap.js index c1e40e92d..4229bf597 100644 --- a/lib/bootstrap.js +++ b/lib/bootstrap.js @@ -8,7 +8,7 @@ const findExtensions = require('./utils/find-extensions'); const debug = createDebug('ghost-cli:bootstrap'); -// Extra alises for commands +// Extra aliases for commands const extraAliases = { '--version': 'version', '-v': 'version', diff --git a/lib/errors.js b/lib/errors.js index 1d372d967..fb37c9419 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -40,7 +40,7 @@ class CliError extends Error { // TODO: we receive all possible properties now, except the excluded ones above // Currently we're logging only the message and the stack property. - // This part of the code could probably be simplyfied if we won't need other + // This part of the code could probably be simplified if we won't need other // properties in the future originalError[property] = options.err[property]; }); diff --git a/lib/instance.js b/lib/instance.js index 4bda3db52..7be726ab2 100644 --- a/lib/instance.js +++ b/lib/instance.js @@ -282,7 +282,7 @@ class Instance { } /** - * Gets a list of availble configurations for this instance + * Gets a list of available configurations for this instance * * @method getAvailableConfigs * @return {Promise<{[s: string]: Config}>} diff --git a/lib/tasks/configure/get-prompts.js b/lib/tasks/configure/get-prompts.js index a23044d82..548849b58 100644 --- a/lib/tasks/configure/get-prompts.js +++ b/lib/tasks/configure/get-prompts.js @@ -4,7 +4,7 @@ const {validate: validateUrl, ensureProtocol} = require('../../utils/url'); /** * Gets inquirer prompts based on passed argv and current config values * - * @param {Config} config Config instane + * @param {Config} config Config instance * @param {Object} argv Argv options */ module.exports = function getPrompts(config, argv, environment) { diff --git a/lib/ui/index.js b/lib/ui/index.js index c949deb2f..cbdabe539 100644 --- a/lib/ui/index.js +++ b/lib/ui/index.js @@ -372,7 +372,7 @@ class UI { } /** - * Error handler for the CLI. Takes a given error and outputs a formated and more human-readable + * Error handler for the CLI. Takes a given error and outputs a formatted and more human-readable * error to the specified out stream. * * @param {Error|Object} error Error to handle @@ -469,7 +469,7 @@ class UI { this.log(`\nTry running ${(chalk.cyan('ghost doctor'))} to check your system for known issues.`); } else if (error !== false) { // If the error is false, we're just exiting (makes the promise chains easier) - this.log('An unknown error occured.', null, true); + this.log('An unknown error occurred.', null, true); this.log(`\nTry running ${(chalk.cyan('ghost doctor'))} to check your system for known issues.`); } } @@ -478,7 +478,7 @@ class UI { * Helper method to format the debug information whenever an error occurs * * @param {System} system System instance - * @return string Formated debug info + * @return string Formatted debug info * * @method _formatString * @private diff --git a/test/unit/commands/migrate-spec.js b/test/unit/commands/migrate-spec.js index b27ecd29c..23667df8c 100644 --- a/test/unit/commands/migrate-spec.js +++ b/test/unit/commands/migrate-spec.js @@ -70,7 +70,7 @@ describe('Unit: Commands > Migrate', function () { }); }); - it('quiet supresses output', function () { + it('quiet suppresses output', function () { const {cmd, instance, parse} = build([]); return cmd.run({quiet: true}).then(() => { diff --git a/test/unit/tasks/install-dependencies-spec.js b/test/unit/tasks/install-dependencies-spec.js index 4d903e71a..cfc7a0452 100644 --- a/test/unit/tasks/install-dependencies-spec.js +++ b/test/unit/tasks/install-dependencies-spec.js @@ -70,7 +70,7 @@ describe('Unit: Tasks > install-dependencies', function () { }); }); - it('base function calls subtasks and yarn util correctly with GHOST_NODE_VERISON_CHECK set', function () { + it('base function calls subtasks and yarn util correctly with GHOST_NODE_VERSION_CHECK set', function () { const yarnStub = sinon.stub().returns(new Observable(o => o.complete())); const installDependencies = proxyquire(modulePath, { '../utils/yarn': yarnStub @@ -306,7 +306,7 @@ describe('Unit: Tasks > install-dependencies', function () { }); describe('dist subtask', function () { - it('rejects if Ghost version isn\'t compatible with the current Node version and GHOST_NODE_VERISON_CHECK is not set', function () { + it('rejects if Ghost version isn\'t compatible with the current Node version and GHOST_NODE_VERSION_CHECK is not set', function () { const data = { engines: {node: '^0.10.0'}, dist: {shasum: 'asdf1234', tarball: 'something.tgz'} @@ -327,7 +327,7 @@ describe('Unit: Tasks > install-dependencies', function () { }); }); - it('resolves if Ghost version isn\'t compatible with the current Node version and GHOST_NODE_VERISON_CHECK is set', function () { + it('resolves if Ghost version isn\'t compatible with the current Node version and GHOST_NODE_VERSION_CHECK is set', function () { const data = { engines: {node: '^0.10.0'}, dist: {shasum: 'asdf1234', tarball: 'something.tgz'} diff --git a/test/unit/ui/index-spec.js b/test/unit/ui/index-spec.js index de930ef38..2e63cb0ae 100644 --- a/test/unit/ui/index-spec.js +++ b/test/unit/ui/index-spec.js @@ -645,7 +645,7 @@ describe('Unit: UI', function () { ui.log('my message', 'testing', 'green', 'link'); }); - it('displays a multi-line help message with exta line when called with 5 args', function (done) { + it('displays a multi-line help message with extra line when called with 5 args', function (done) { const stdout = streamTestUtils.getWritableStream(function (output) { expect(output, 'output exists').to.be.ok; expect(output, 'output value').to.include(chalk.white(`\nmy message: \n\n ${chalk.yellow('testing')}\n`)); From 3bea1708f7dc03dfc1fa5117d9424d2a15d0095d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Jun 2026 22:58:00 +0200 Subject: [PATCH 2/3] revert change to /test/unit/ui/index-spec.js --- test/unit/ui/index-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ui/index-spec.js b/test/unit/ui/index-spec.js index 2e63cb0ae..de930ef38 100644 --- a/test/unit/ui/index-spec.js +++ b/test/unit/ui/index-spec.js @@ -645,7 +645,7 @@ describe('Unit: UI', function () { ui.log('my message', 'testing', 'green', 'link'); }); - it('displays a multi-line help message with extra line when called with 5 args', function (done) { + it('displays a multi-line help message with exta line when called with 5 args', function (done) { const stdout = streamTestUtils.getWritableStream(function (output) { expect(output, 'output exists').to.be.ok; expect(output, 'output value').to.include(chalk.white(`\nmy message: \n\n ${chalk.yellow('testing')}\n`)); From f1a5bba16821e585a60ff22a9f3d08872bfd2c48 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 Jun 2026 12:09:47 +0200 Subject: [PATCH 3/3] fix spelling /test/unit/ui/index-spec.js - occured -> occurred --- test/unit/ui/index-spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ui/index-spec.js b/test/unit/ui/index-spec.js index de930ef38..988e268c4 100644 --- a/test/unit/ui/index-spec.js +++ b/test/unit/ui/index-spec.js @@ -927,7 +927,7 @@ describe('Unit: UI', function () { expect(formatDebug.calledOnce).to.be.true; expect(log.calledTwice).to.be.true; - expect(log.args[0][0]).to.match(/error occured/); + expect(log.args[0][0]).to.match(/error occurred/); expect(stripAnsi(log.args[1][0])).to.match(/Try running ghost doctor to check your system for known issues./); expect(log.args[0][2]).to.be.true; });