Skip to content

Commit 9197995

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

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ safer to use a registry-provided authentication bearer token stored in the
195195
If you do not want your scoped package to be publicly viewable (and
196196
installable) set \`--access=restricted\`.
197197
198-
Unscoped packages can not be set to \`restricted\`.
198+
Unscoped packages cannot be set to \`restricted\`.
199199
200200
Note: This defaults to not changing the current access level for existing
201201
packages. Specifying a value of \`restricted\` or \`public\` during publish will
@@ -405,7 +405,7 @@ are same as \`cpu\` field of package.json, which comes from \`process.arch\`.
405405
406406
#### \`depth\`
407407
408-
* Default: \`Infinity\` if \`--all\` is set, otherwise \`0\`
408+
* Default: \`Infinity\` if \`--all\` is set; otherwise, \`0\`
409409
* Type: null or Number
410410
411411
The depth to go when recursing packages for \`npm ls\`.
@@ -544,7 +544,7 @@ This can be overridden by setting the \`--force\` flag.
544544
545545
Tells to expect a specific number of results from the command.
546546
547-
This config can not be used with: \`expect-results\`
547+
This config cannot be used with: \`expect-results\`
548548
549549
#### \`expect-results\`
550550
@@ -554,7 +554,7 @@ This config can not be used with: \`expect-results\`
554554
Tells npm whether or not to expect results from the command. Can be either
555555
true (expect some results) or false (expect no results).
556556
557-
This config can not be used with: \`expect-result-count\`
557+
This config cannot be used with: \`expect-result-count\`
558558
559559
#### \`fetch-retries\`
560560
@@ -992,8 +992,8 @@ instead of the current working directory. See
992992
993993
#### \`lockfile-version\`
994994
995-
* Default: Version 3 if no lockfile, auto-converting v1 lockfiles to v3,
996-
otherwise maintain current lockfile version.
995+
* Default: Version 3 if no lockfile, auto-converting v1 lockfiles to v3;
996+
otherwise, maintain current lockfile version.
997997
* Type: null, 1, 2, 3, "1", "2", or "3"
998998
999999
Set the lockfile format version to be used in package-lock.json and
@@ -1129,7 +1129,7 @@ allow the CLI to fill in missing cache data, see \`--prefer-offline\`.
11291129
#### \`omit\`
11301130
11311131
* Default: 'dev' if the \`NODE_ENV\` environment variable is set to
1132-
'production', otherwise empty.
1132+
'production'; otherwise, empty.
11331133
* Type: "dev", "optional", or "peer" (can be set multiple times)
11341134
11351135
Dependency types to omit from the installation tree on disk.
@@ -1309,7 +1309,7 @@ Set to \`false\` to suppress the progress bar.
13091309
When publishing from a supported cloud CI/CD system, the package will be
13101310
publicly linked to where it was built and published from.
13111311
1312-
This config can not be used with: \`provenance-file\`
1312+
This config cannot be used with: \`provenance-file\`
13131313
13141314
#### \`provenance-file\`
13151315
@@ -1318,7 +1318,7 @@ This config can not be used with: \`provenance-file\`
13181318
13191319
When publishing, the provenance bundle at the given path will be used.
13201320
1321-
This config can not be used with: \`provenance\`
1321+
This config cannot be used with: \`provenance\`
13221322
13231323
#### \`proxy\`
13241324
@@ -1410,7 +1410,7 @@ Ignored if \`--save-peer\` is set, since peerDependencies cannot be bundled.
14101410
14111411
Save installed packages to a package.json file as \`devDependencies\`.
14121412
1413-
This config can not be used with: \`save-optional\`, \`save-peer\`, \`save-prod\`
1413+
This config cannot be used with: \`save-optional\`, \`save-peer\`, \`save-prod\`
14141414
14151415
#### \`save-exact\`
14161416
@@ -1429,7 +1429,7 @@ rather than using npm's default semver range operator.
14291429
14301430
Save installed packages to a package.json file as \`optionalDependencies\`.
14311431
1432-
This config can not be used with: \`save-dev\`, \`save-peer\`, \`save-prod\`
1432+
This config cannot be used with: \`save-dev\`, \`save-peer\`, \`save-prod\`
14331433
14341434
#### \`save-peer\`
14351435
@@ -1438,7 +1438,7 @@ This config can not be used with: \`save-dev\`, \`save-peer\`, \`save-prod\`
14381438
14391439
Save installed packages to a package.json file as \`peerDependencies\`
14401440
1441-
This config can not be used with: \`save-dev\`, \`save-optional\`, \`save-prod\`
1441+
This config cannot be used with: \`save-dev\`, \`save-optional\`, \`save-prod\`
14421442
14431443
#### \`save-prefix\`
14441444
@@ -1467,7 +1467,7 @@ you want to move it to be a non-optional production dependency.
14671467
This is the default behavior if \`--save\` is true, and neither \`--save-dev\`
14681468
or \`--save-optional\` are true.
14691469
1470-
This config can not be used with: \`save-dev\`, \`save-optional\`, \`save-peer\`
1470+
This config cannot be used with: \`save-dev\`, \`save-optional\`, \`save-peer\`
14711471
14721472
#### \`sbom-format\`
14731473

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
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ loglevel = yolo
422422
t.notOk(config.isDefault('cli-config'),
423423
'should return false for a cli-defined value')
424424
t.notOk(config.isDefault('foo'),
425-
'should return false for a env-defined value')
425+
'should return false for an env-defined value')
426426
t.notOk(config.isDefault('project-config'),
427427
'should return false for a project-defined value')
428428
t.notOk(config.isDefault('default-user-config-in-home'),
@@ -1431,7 +1431,7 @@ t.test('exclusive options conflict', async t => {
14311431
})
14321432
await t.rejects(config.load(), {
14331433
name: 'TypeError',
1434-
message: '--lie can not be provided when using --truth',
1434+
message: '--lie cannot be provided when using --truth',
14351435
})
14361436
})
14371437

0 commit comments

Comments
 (0)