Skip to content

Commit 17ddc0d

Browse files
authored
chore: fix spelling (#8622)
1 parent dd884e3 commit 17ddc0d

21 files changed

+66
-66
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
### Bug Fixes
246246
* [`2f5392a`](https://github.com/npm/cli/commit/2f5392ae1f87fd3df3d7e521e0e69222fb9899e5) [#8135](https://github.com/npm/cli/pull/8135) make `npm run` autocomplete work with workspaces (#8135) (@terrainvidia)
247247
### Documentation
248-
* [`26b6454`](https://github.com/npm/cli/commit/26b64543ebb27e421c05643eb996f6765c13444c) fix grammer in local path note (@cgay)
248+
* [`26b6454`](https://github.com/npm/cli/commit/26b64543ebb27e421c05643eb996f6765c13444c) fix grammar in local path note (@cgay)
249249
* [`1c0e83d`](https://github.com/npm/cli/commit/1c0e83d6c165a714c7c37c0887e350042e53cf34) [#7886](https://github.com/npm/cli/pull/7886) fix typo in package-json.md (#7886) (@stoneLeaf)
250250
* [`14efa57`](https://github.com/npm/cli/commit/14efa57f13b2bbbf10b0b217b981f919556789cd) [#8178](https://github.com/npm/cli/pull/8178) fix example package name in `overrides` explainer (#8178) (@G-Rath)
251251
* [`4183cba`](https://github.com/npm/cli/commit/4183cba3e13bcfea83fa3ef2b6c5b0c9685f79bc) [#8162](https://github.com/npm/cli/pull/8162) logging: replace proceeding with preceding in loglevels details (#8162) (@tyleralbee)
@@ -316,7 +316,7 @@
316316
* [`31455b2`](https://github.com/npm/cli/commit/31455b2e177b721292f3382726e3f5f3f2963b1d) [#8054](https://github.com/npm/cli/pull/8054) publish: honor force for no dist tag and registry version check (#8054) (@reggi)
317317
* [`dc31c1b`](https://github.com/npm/cli/commit/dc31c1bdc6658ab69554adcf2988ee99a615c409) [#8038](https://github.com/npm/cli/pull/8038) remove max-len linting bypasses (@wraithgar)
318318
* [`8a911ff`](https://github.com/npm/cli/commit/8a911ff895967678aa786595db3418fc28e6966a) [#8038](https://github.com/npm/cli/pull/8038) publish: disregard deprecated versions when calculating highest version (@wraithgar)
319-
* [`7f72944`](https://github.com/npm/cli/commit/7f72944e43f009cf4d55ff4fe24c459e07f588fd) [#8038](https://github.com/npm/cli/pull/8038) publish: accept publishConfig.tag to override highes semver check (@wraithgar)
319+
* [`7f72944`](https://github.com/npm/cli/commit/7f72944e43f009cf4d55ff4fe24c459e07f588fd) [#8038](https://github.com/npm/cli/pull/8038) publish: accept publishConfig.tag to override highest semver check (@wraithgar)
320320
* [`ab9ddc0`](https://github.com/npm/cli/commit/ab9ddc0413374fbf4879da535f82e03bc4e62cf3) [#7992](https://github.com/npm/cli/pull/7992) sbom: deduplicate sbom dependencies (#7992) (@bdehamer)
321321
* [`f7da341`](https://github.com/npm/cli/commit/f7da341322c2f860156e8144b208583596504479) [#7980](https://github.com/npm/cli/pull/7980) search: properly display multiple search terms (#7980) (@wraithgar)
322322
### Documentation
@@ -370,7 +370,7 @@
370370
## [11.0.0-pre.1](https://github.com/npm/cli/compare/v11.0.0-pre.0...v11.0.0-pre.1) (2024-12-06)
371371
### ⚠️ BREAKING CHANGES
372372
* Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
373-
* `npm init` now has a `type` prompt, and sorts the entries the created packages differently
373+
* `npm init` now has a `type` prompt, and sorts the entries in created packages differently
374374
* `bun.lockb` files are now included in the strict ignore list during packing
375375
### Features
376376
* [`f3ac7b7`](https://github.com/npm/cli/commit/f3ac7b7460e1d9e1f9d3d8056317e36bb9813d5d) [#7939](https://github.com/npm/cli/pull/7939) no implicit latest tag on publish when latest > version (#7939) (@reggi, @ljharb)

tap-snapshots/test/lib/commands/ls.js.test.cjs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ exports[`test/lib/commands/ls.js TAP ls --parseable no args > should output pars
248248
{CWD}/prefix/node_modules/dog
249249
`
250250

251-
exports[`test/lib/commands/ls.js TAP ls --parseable overridden dep > should contain overridden outout 1`] = `
251+
exports[`test/lib/commands/ls.js TAP ls --parseable overridden dep > should contain overridden output 1`] = `
252252
{CWD}/prefix:[email protected]
253253
{CWD}/prefix/node_modules/foo:[email protected]
254254
{CWD}/prefix/node_modules/bar:[email protected]:OVERRIDDEN
@@ -288,19 +288,19 @@ exports[`test/lib/commands/ls.js TAP ls --parseable using aliases > should outpu
288288
{CWD}/prefix/node_modules/a
289289
`
290290

291-
exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1`] = `
291+
exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg > should output parseable containing only occurrences of filtered by package 1`] = `
292292
{CWD}/prefix/node_modules/chai
293293
`
294294

295-
exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1`] = `
295+
exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg nested dep > should output parseable containing only occurrences of filtered package 1`] = `
296296
{CWD}/prefix/node_modules/dog
297297
`
298298

299299
exports[`test/lib/commands/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1`] = `
300300
301301
`
302302

303-
exports[`test/lib/commands/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurrences of multiple filtered packages and their ancestors 1`] = `
303+
exports[`test/lib/commands/ls.js TAP ls --parseable with multiple filter args > should output parseable containing only occurrences of multiple filtered packages and their ancestors 1`] = `
304304
{CWD}/prefix/node_modules/chai
305305
{CWD}/prefix/node_modules/dog
306306
`
@@ -453,7 +453,7 @@ [email protected] {CWD}/prefix
453453
454454
`
455455

456-
exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should inlude root and specified workspace > output 1`] = `
456+
exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should include root and specified workspace > output 1`] = `
457457
[email protected] {CWD}/prefix
458458
459459
@@ -541,13 +541,13 @@ [email protected] {CWD}/prefix
541541
542542
`
543543

544-
exports[`test/lib/commands/ls.js TAP ls overridden dep > should contain overridden outout 1`] = `
544+
exports[`test/lib/commands/ls.js TAP ls overridden dep > should contain overridden output 1`] = `
545545
[email protected] {CWD}/prefix
546546
547547
\`-- [email protected] overridden
548548
`
549549

550-
exports[`test/lib/commands/ls.js TAP ls overridden dep w/ color > should contain overridden outout 1`] = `
550+
exports[`test/lib/commands/ls.js TAP ls overridden dep w/ color > should contain overridden output 1`] = `
551551
[[email protected] {CWD}/prefix
552552
\`-- [email protected]
553553
 \`-- [email protected] overridden
@@ -609,18 +609,18 @@ [email protected] {CWD}/prefix
609609
\`-- @npmcli/[email protected]
610610
`
611611

612-
exports[`test/lib/commands/ls.js TAP ls with dot filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = `
612+
exports[`test/lib/commands/ls.js TAP ls with dot filter arg > should output tree containing only occurrences of filtered by package and colored output 1`] = `
613613
[email protected] {CWD}/prefix
614614
\`-- (empty)
615615
`
616616

617-
exports[`test/lib/commands/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = `
617+
exports[`test/lib/commands/ls.js TAP ls with filter arg > should output tree containing only occurrences of filtered by package and colored output 1`] = `
618618
[[email protected] {CWD}/prefix
619619
\`-- [[email protected]
620620

621621
`
622622

623-
exports[`test/lib/commands/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurrences of filtered package and its ancestors 1`] = `
623+
exports[`test/lib/commands/ls.js TAP ls with filter arg nested dep > should output tree containing only occurrences of filtered package and its ancestors 1`] = `
624624
[email protected] {CWD}/prefix
625625
626626
@@ -631,7 +631,7 @@ [email protected] {CWD}/prefix
631631
\`-- (empty)
632632
`
633633

634-
exports[`test/lib/commands/ls.js TAP ls with multiple filter args > should output tree contaning only occurrences of multiple filtered packages and their ancestors 1`] = `
634+
exports[`test/lib/commands/ls.js TAP ls with multiple filter args > should output tree containing only occurrences of multiple filtered packages and their ancestors 1`] = `
635635
[email protected] {CWD}/prefix
636636
637637

tap-snapshots/test/lib/commands/outdated.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated
289289
290290
`
291291

292-
exports[`test/lib/commands/outdated.js TAP workspaces should highlight ws in dependend by section > output 1`] = `
292+
exports[`test/lib/commands/outdated.js TAP workspaces should highlight ws in depended by section > output 1`] = `
293293
Package Current Wanted Latest Location Depended by
294294
cat 1.0.0 1.0.1 1.0.1 node_modules/cat [[email protected]
295295
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix

tap-snapshots/test/lib/commands/sbom.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ exports[`test/lib/commands/sbom.js TAP sbom extraneous dep > must match snapshot
791791
}
792792
`
793793

794-
exports[`test/lib/commands/sbom.js TAP sbom loading a tree containing workspaces should filter worksapces with --workspace > must match snapshot 1`] = `
794+
exports[`test/lib/commands/sbom.js TAP sbom loading a tree containing workspaces should filter workspaces with --workspace > must match snapshot 1`] = `
795795
{
796796
"spdxVersion": "SPDX-2.3",
797797
"dataLicense": "CC0-1.0",

tap-snapshots/test/lib/utils/error-message.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ Object {
16101610
}
16111611
`
16121612

1613-
exports[`test/lib/utils/error-message.js TAP replace message/stack sensistive info > must match snapshot 1`] = `
1613+
exports[`test/lib/utils/error-message.js TAP replace message/stack sensitive info > must match snapshot 1`] = `
16141614
Object {
16151615
"detail": Array [],
16161616
"summary": Array [

tap-snapshots/test/lib/utils/open-url.js.test.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ npm home:
2222
https://www.npmjs.com
2323
`
2424

25-
exports[`test/lib/utils/open-url.js TAP open url prompt does not error when opener can not find command > Outputs extra Browser unavailable message and url 1`] = `
25+
exports[`test/lib/utils/open-url.js TAP open url prompt does not error when opener cannot find command > Outputs extra Browser unavailable message and url 1`] = `
2626
npm home:
2727
https://www.npmjs.com
2828

test/lib/cli/update-notifier.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const packumentResponse = {
3737
[HAVE_BETA]: { version: HAVE_BETA, engines: { node: '>1' } },
3838
[NEXT_VERSION_ENGINE_COMPATIBLE]: {
3939
version: NEXT_VERSION_ENGINE_COMPATIBLE,
40-
engiges: { node: '<=1' },
40+
engines: { node: '<=1' },
4141
},
4242
[NEXT_VERSION_ENGINE_COMPATIBLE_MINOR]: {
4343
version: NEXT_VERSION_ENGINE_COMPATIBLE_MINOR,
@@ -68,7 +68,7 @@ const runUpdateNotifier = async (t, {
6868
...require('node:fs/promises'),
6969
stat: async (path) => {
7070
if (basename(path) !== '_update-notifier-last-checked') {
71-
t.fail('no stat allowed for non upate notifier files')
71+
t.fail('no stat allowed for non update notifier files')
7272
}
7373
if (STAT_ERROR) {
7474
throw STAT_ERROR
@@ -81,7 +81,7 @@ const runUpdateNotifier = async (t, {
8181
t.fail('no write file content allowed')
8282
}
8383
if (basename(path) !== '_update-notifier-last-checked') {
84-
t.fail('no writefile allowed for non upate notifier files')
84+
t.fail('no writefile allowed for non update notifier files')
8585
}
8686
if (WRITE_ERROR) {
8787
throw WRITE_ERROR

test/lib/commands/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ t.test('config delete single key', async t => {
225225

226226
await npm.exec('config', ['delete', 'access'])
227227

228-
t.equal(npm.config.get('access'), null, 'acces should be defaulted')
228+
t.equal(npm.config.get('access'), null, 'access should be defaulted')
229229

230230
const contents = await fs.readFile(join(home, '.npmrc'), { encoding: 'utf8' })
231231
const rc = ini.parse(contents)
@@ -294,7 +294,7 @@ t.test('config delete key --global', async t => {
294294
t.test('config set invalid option', async t => {
295295
const { npm } = await loadMockNpm(t)
296296
await t.rejects(
297-
npm.exec('config', ['set', 'nonexistantconfigoption', 'something']),
297+
npm.exec('config', ['set', 'nonexistentconfigoption', 'something']),
298298
/not a valid npm option/
299299
)
300300
})
@@ -317,7 +317,7 @@ t.test('config set nerf-darted option', async t => {
317317
)
318318
})
319319

320-
t.test('config set scoped optoin', async t => {
320+
t.test('config set scoped option', async t => {
321321
const { npm } = await loadMockNpm(t)
322322
await npm.exec('config', ['set', '@npm:registry', 'https://registry.npmjs.org'])
323323
t.equal(

test/lib/commands/init.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const mockNpm = async (t, { noLog, libnpmexec, initPackageJson, ...opts } = {})
1616
},
1717
globals: {
1818
// init-package-json prints directly to console.log
19-
// this avoids poluting test output with those logs
19+
// this avoids polluting test output with those logs
2020
...(noLog ? { 'console.log': () => {} } : {}),
2121
},
2222
})
@@ -324,7 +324,7 @@ t.test('workspaces', async t => {
324324
)
325325
})
326326

327-
await t.test('missing top-level package.json when settting workspace', async t => {
327+
await t.test('missing top-level package.json when setting workspace', async t => {
328328
const { npm, logs } = await mockNpm(t, {
329329
config: { workspace: 'a' },
330330
})
@@ -338,7 +338,7 @@ t.test('workspaces', async t => {
338338
t.equal(logs.warn[0], 'init Missing package.json. Try with `--include-workspace-root`.')
339339
})
340340

341-
await t.test('bad package.json when settting workspace', async t => {
341+
await t.test('bad package.json when setting workspace', async t => {
342342
const { npm, logs } = await mockNpm(t, {
343343
prefixDir: {
344344
'package.json': '{{{{',

test/lib/commands/ls.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ t.test('ls', async t => {
263263
await
264264

265265
ls.exec([])
266-
t.matchSnapshot(cleanCwd(result()), 'should contain overridden outout')
266+
t.matchSnapshot(cleanCwd(result()), 'should contain overridden output')
267267
})
268268

269269
t.test('overridden dep w/ color', async t => {
@@ -305,7 +305,7 @@ t.test('ls', async t => {
305305
})
306306

307307
await ls.exec([])
308-
t.matchSnapshot(cleanCwd(result()), 'should contain overridden outout')
308+
t.matchSnapshot(cleanCwd(result()), 'should contain overridden output')
309309
})
310310

311311
t.test('with filter arg', async t => {
@@ -329,7 +329,7 @@ t.test('ls', async t => {
329329
await ls.exec(['chai'])
330330
t.matchSnapshot(
331331
cleanCwd(result()),
332-
'should output tree contaning only occurrences of filtered by package and colored output'
332+
'should output tree containing only occurrences of filtered by package and colored output'
333333
)
334334
})
335335

@@ -355,7 +355,7 @@ t.test('ls', async t => {
355355
await ls.exec(['.'])
356356
t.matchSnapshot(
357357
cleanCwd(result()),
358-
'should output tree contaning only occurrences of filtered by package and colored output'
358+
'should output tree containing only occurrences of filtered by package and colored output'
359359
)
360360
})
361361

@@ -377,7 +377,7 @@ t.test('ls', async t => {
377377
await ls.exec(['dog'])
378378
t.matchSnapshot(
379379
cleanCwd(result()),
380-
'should output tree contaning only occurrences of filtered package and its ancestors'
380+
'should output tree containing only occurrences of filtered package and its ancestors'
381381
)
382382
})
383383

@@ -408,7 +408,7 @@ t.test('ls', async t => {
408408
await ls.exec(['dog@*', '[email protected]'])
409409
t.matchSnapshot(
410410
cleanCwd(result()),
411-
'should output tree contaning only occurrences of multiple filtered packages and their ancestors'
411+
'should output tree containing only occurrences of multiple filtered packages and their ancestors'
412412
)
413413
})
414414

@@ -1650,7 +1650,7 @@ t.test('ls', async t => {
16501650
}))
16511651

16521652
// filter out a single workspace and include root
1653-
t.test('should inlude root and specified workspace', t => mockWorkspaces(t, [], {
1653+
t.test('should include root and specified workspace', t => mockWorkspaces(t, [], {
16541654
'include-workspace-root': true,
16551655
workspace: 'd',
16561656
}))
@@ -1823,7 +1823,7 @@ t.test('ls --parseable', async t => {
18231823
})
18241824

18251825
await ls.exec([])
1826-
t.matchSnapshot(cleanCwd(result()), 'should contain overridden outout')
1826+
t.matchSnapshot(cleanCwd(result()), 'should contain overridden output')
18271827
})
18281828

18291829
t.test('with filter arg', async t => {
@@ -1844,7 +1844,7 @@ t.test('ls --parseable', async t => {
18441844
await ls.exec(['chai'])
18451845
t.matchSnapshot(
18461846
cleanCwd(result()),
1847-
'should output parseable contaning only occurrences of filtered by package'
1847+
'should output parseable containing only occurrences of filtered by package'
18481848
)
18491849
})
18501850

@@ -1866,7 +1866,7 @@ t.test('ls --parseable', async t => {
18661866
await ls.exec(['dog'])
18671867
t.matchSnapshot(
18681868
cleanCwd(result()),
1869-
'should output parseable contaning only occurrences of filtered package'
1869+
'should output parseable containing only occurrences of filtered package'
18701870
)
18711871
})
18721872

@@ -1897,7 +1897,7 @@ t.test('ls --parseable', async t => {
18971897
await ls.exec(['dog@*', '[email protected]'])
18981898
t.matchSnapshot(
18991899
cleanCwd(result()),
1900-
'should output parseable contaning only occurrences of multiple filtered packages and their ancestors'
1900+
'should output parseable containing only occurrences of multiple filtered packages and their ancestors'
19011901
)
19021902
})
19031903

@@ -2941,7 +2941,7 @@ t.test('ls --json', async t => {
29412941
},
29422942
},
29432943
},
2944-
'should output json contaning only occurrences of filtered by package'
2944+
'should output json containing only occurrences of filtered by package'
29452945
)
29462946
t.not(process.exitCode, 1, 'should not exit with error code 1')
29472947
})
@@ -2982,7 +2982,7 @@ t.test('ls --json', async t => {
29822982
},
29832983
},
29842984
},
2985-
'should output json contaning only occurrences of filtered by package'
2985+
'should output json containing only occurrences of filtered by package'
29862986
)
29872987
t.notOk(jsonParse(result()).dependencies.chai)
29882988
})
@@ -3036,7 +3036,7 @@ t.test('ls --json', async t => {
30363036
},
30373037
},
30383038
},
3039-
'should output json contaning only occurrences of multiple filtered packages and their ancestors'
3039+
'should output json containing only occurrences of multiple filtered packages and their ancestors'
30403040
)
30413041
})
30423042

@@ -3838,7 +3838,7 @@ t.test('ls --json', async t => {
38383838
await t.rejects(
38393839
ls.exec([]),
38403840
{ code: 'EJSONPARSE', message: 'Failed to parse root package.json' },
3841-
'should have missin root package.json msg'
3841+
'should have missing root package.json msg'
38423842
)
38433843
t.same(
38443844
jsonParse(result()),
@@ -4664,7 +4664,7 @@ t.test('ls --package-lock-only', async t => {
46644664
},
46654665
},
46664666
},
4667-
'should output json contaning only occurrences of filtered by package'
4667+
'should output json containing only occurrences of filtered by package'
46684668
)
46694669
t.notOk(process.exitCode, 'should not set exit code')
46704670
})
@@ -4724,7 +4724,7 @@ t.test('ls --package-lock-only', async t => {
47244724
},
47254725
},
47264726
},
4727-
'should output json contaning only occurrences of filtered by package'
4727+
'should output json containing only occurrences of filtered by package'
47284728
)
47294729
})
47304730

@@ -4788,7 +4788,7 @@ t.test('ls --package-lock-only', async t => {
47884788
},
47894789
},
47904790
},
4791-
'should output json contaning only occurrences of multiple filtered packages and their ancestors'
4791+
'should output json containing only occurrences of multiple filtered packages and their ancestors'
47924792
)
47934793
})
47944794

0 commit comments

Comments
 (0)