fix: spelling (#8619) · npm/cli@9197995 · GitHub
Skip to content

Commit 9197995

Browse files
authored
fix: spelling (#8619)
1 parent 17ddc0d commit 9197995

9 files changed

Lines changed: 29 additions & 29 deletions

File tree

tap-snapshots/test/lib/docs.js.test.cjs

Lines changed: 13 additions & 13 deletions

workspaces/config/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139

140140
### Features
141141

142-
* [`9123de4`](https://github.com/npm/cli/commit/9123de4d282bfd19ea17ad613f5a2acab0e0e162) [#7373](https://github.com/npm/cli/pull/7373) do all ouput over proc-log events (@lukekarrys)
142+
* [`9123de4`](https://github.com/npm/cli/commit/9123de4d282bfd19ea17ad613f5a2acab0e0e162) [#7373](https://github.com/npm/cli/pull/7373) do all output over proc-log events (@lukekarrys)
143143

144144
### Bug Fixes
145145

workspaces/config/lib/definitions/definition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const {
3434
class Definition {
3535
constructor (key, def) {
3636
this.key = key
37-
// if it's set falsey, don't export it, otherwise we do by default
37+
// if it's set falsey, don't export it; otherwise, we do by default
3838
this.envExport = true
3939
Object.assign(this, def)
4040
this.validate()
@@ -83,7 +83,7 @@ This value is not exported to the environment for child processes.
8383
`
8484
const deprecated = !this.deprecated ? '' : `* DEPRECATED: ${unindent(this.deprecated)}\n`
8585
/* eslint-disable-next-line max-len */
86-
const exclusive = !this.exclusive ? '' : `\nThis config can not be used with: \`${this.exclusive.join('`, `')}\``
86+
const exclusive = !this.exclusive ? '' : `\nThis config cannot be used with: \`${this.exclusive.join('`, `')}\``
8787
return wrapAll(`#### \`${this.key}\`
8888
8989
* Default: ${unindent(this.defaultDescription)}

workspaces/config/lib/definitions/definitions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const definitions = {
158158
If you do not want your scoped package to be publicly viewable (and
159159
installable) set \`--access=restricted\`.
160160
161-
Unscoped packages can not be set to \`restricted\`.
161+
Unscoped packages cannot be set to \`restricted\`.
162162
163163
Note: This defaults to not changing the current access level for existing
164164
packages. Specifying a value of \`restricted\` or \`public\` during
@@ -462,7 +462,7 @@ const definitions = {
462462
depth: new Definition('depth', {
463463
default: null,
464464
defaultDescription: `
465-
\`Infinity\` if \`--all\` is set, otherwise \`0\`
465+
\`Infinity\` if \`--all\` is set; otherwise, \`0\`
466466
`,
467467
type: [null, Number],
468468
description: `
@@ -1205,7 +1205,7 @@ const definitions = {
12051205
default: null,
12061206
type: [null, 1, 2, 3, '1', '2', '3'],
12071207
defaultDescription: `
1208-
Version 3 if no lockfile, auto-converting v1 lockfiles to v3, otherwise
1208+
Version 3 if no lockfile, auto-converting v1 lockfiles to v3; otherwise,
12091209
maintain current lockfile version.`,
12101210
description: `
12111211
Set the lockfile format version to be used in package-lock.json and
@@ -1356,8 +1356,8 @@ const definitions = {
13561356
omit: new Definition('omit', {
13571357
default: process.env.NODE_ENV === 'production' ? ['dev'] : [],
13581358
defaultDescription: `
1359-
'dev' if the \`NODE_ENV\` environment variable is set to 'production',
1360-
otherwise empty.
1359+
'dev' if the \`NODE_ENV\` environment variable is set to 'production';
1360+
otherwise, empty.
13611361
`,
13621362
type: [Array, 'dev', 'optional', 'peer'],
13631363
description: `

workspaces/config/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class Config {
281281
}
282282

283283
try {
284-
// This does not have an actual definition because this is not user defineable
284+
// This does not have an actual definition because this is not user definable
285285
defaultsObject['npm-version'] = require(join(this.npmPath, 'package.json')).version
286286
} catch {
287287
// in some weird state where the passed in npmPath does not have a package.json
@@ -589,7 +589,7 @@ class Config {
589589
if (this.definitions[key]?.exclusive) {
590590
for (const exclusive of this.definitions[key].exclusive) {
591591
if (!this.isDefault(exclusive)) {
592-
throw new TypeError(`--${key} can not be provided when using --${exclusive}`)
592+
throw new TypeError(`--${key} cannot be provided when using --${exclusive}`)
593593
}
594594
}
595595
}
@@ -672,7 +672,7 @@ class Config {
672672
// if we're in the ~ directory, and there happens to be a node_modules
673673
// folder (which is not TOO uncommon, it turns out), then we can end
674674
// up loading the "project" config where the "userconfig" will be,
675-
// which causes some calamaties. So, we only load project config if
675+
// which causes some calamities. So, we only load project config if
676676
// it doesn't match what the userconfig will be.
677677
if (projectFile !== this.#get('userconfig')) {
678678
return this.#loadFile(projectFile, 'project')

workspaces/config/lib/set-envs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const setEnvs = (config) => {
9797
env.EDITOR = cliConf.editor
9898
}
9999

100-
// note: this doesn't afect the *current* node process, of course, since
100+
// note: this doesn't affect the *current* node process, of course, since
101101
// it's already started, but it does affect the options passed to scripts.
102102
if (cliConf['node-options']) {
103103
env.NODE_OPTIONS = cliConf['node-options']

workspaces/config/tap-snapshots/test/definitions/definition.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ exports[`test/definitions/definition.js TAP basic definition > description of de
2727
2828
a number
2929
30-
This config can not be used with: \`x\`
30+
This config cannot be used with: \`x\`
3131
`
3232

3333
exports[`test/definitions/definition.js TAP basic definition > human-readable description 1`] = `

workspaces/config/test/definitions/definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ t.test('search options', t => {
499499
description: 'test description',
500500
exclude: 'test search exclude',
501501
limit: 99,
502-
staleneess: 99,
502+
staleness: 99,
503503

504504
}
505505
const obj = {}

workspaces/config/test/index.js

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)