Skip to content

Commit dd884e3

Browse files
authored
fix: spelling (#8618)
1 parent 6324370 commit dd884e3

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@
455455
* [`ccd8420`](https://github.com/npm/cli/commit/ccd84201e4e369992289842a5117cb3b531a7a36) [#7911](https://github.com/npm/cli/pull/7911) fix cli tests for audit fallback removal (@wraithgar)
456456
* [`720b4d8`](https://github.com/npm/cli/commit/720b4d807bd2e214a045a9ffa9c56435823a7a05) [#7833](https://github.com/npm/cli/pull/7833) bump @npmcli/arborist to 8.0.0 (@wraithgar)
457457
* [`286739c`](https://github.com/npm/cli/commit/286739c0224bad88c4a38927bafd61973f71098c) [#7824](https://github.com/npm/cli/pull/7824) add creation of a DEPENDENCIES.json file (#7824) (@reggi)
458-
* [`852dd8b`](https://github.com/npm/cli/commit/852dd8bdcb958439d343bcd9fb27fb4f07e95991) [#7831](https://github.com/npm/cli/pull/7831) sets npm 11 to prerelase (@reggi)
458+
* [`852dd8b`](https://github.com/npm/cli/commit/852dd8bdcb958439d343bcd9fb27fb4f07e95991) [#7831](https://github.com/npm/cli/pull/7831) sets npm 11 to prerelease (@reggi)
459459
* [`95d009e`](https://github.com/npm/cli/commit/95d009e606b187b9e148f4f1119b8a19e5beb7f0) [#7831](https://github.com/npm/cli/pull/7831) update engine `^20.17.0 || >=22.9.0` in actions (@reggi)
460460
* [`5a74478`](https://github.com/npm/cli/commit/5a744782af53d6655669e49d911468934ea5e027) [#7831](https://github.com/npm/cli/pull/7831) update engines `^20.17.0 || >=22.9.0` in package template (@reggi)
461461
* [workspace](https://github.com/npm/cli/releases/tag/arborist-v9.0.0-pre.0): `@npmcli/[email protected]`

mock-globals/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class DescriptorStack {
126126
return () => {
127127
const index = this.#stack.indexOf(nextDescriptor)
128128
// If the stack doesnt contain the descriptor anymore
129-
// than do nothing. This keeps the reset function indempotent
129+
// than do nothing. This keeps the reset function idempotent
130130
if (index > -1) {
131131
// Resetting removes a descriptor from the stack
132132
this.#stack.splice(index, 1)
@@ -174,7 +174,7 @@ class MockGlobals {
174174
#descriptors = {}
175175

176176
register (globals, { replace = false } = {}) {
177-
// Replace means dont merge in object values but replace them instead
177+
// Replace means don't merge in object values but replace them instead
178178
// so we only get top level keys instead of walking the obj
179179
const keys = replace ? Object.keys(globals) : getKeys(globals)
180180

mock-globals/test/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ t.test('multiple mocks and resets', async (t) => {
268268
t.equal(process.platform, nextPlatform, 'first reset')
269269
reset()
270270
reset()
271-
t.equal(process.platform, nextPlatform, 'multiple resets are indempotent')
271+
t.equal(process.platform, nextPlatform, 'multiple resets are idempotent')
272272
})
273273
})
274274

@@ -294,10 +294,10 @@ t.test('multiple mocks and resets', async (t) => {
294294
const nextPlatform = index === platforms.length - 1 ? initial : lastPlatform
295295
t.equal(process.platform, lastPlatform)
296296
reset()
297-
t.equal(process.platform, nextPlatform, 'multiple resets are indempotent')
297+
t.equal(process.platform, nextPlatform, 'multiple resets are idempotent')
298298
reset()
299299
reset()
300-
t.equal(process.platform, nextPlatform, 'multiple resets are indempotent')
300+
t.equal(process.platform, nextPlatform, 'multiple resets are idempotent')
301301
})
302302
})
303303

mock-registry/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ class MockRegistry {
592592
}
593593

594594
/**
595-
* this is a simpler convience method for creating mockable registry with
595+
* this is a simpler convenience method for creating mockable registry with
596596
* tarballs for specific versions
597597
*/
598598
async setup (packages) {

scripts/bundle-and-gitignore-deps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const main = async () => {
214214
// Get all files within node_modules and remove the node_modules/ portion of
215215
// the path for processing since this list will go inside a gitignore at the
216216
// root of the node_modules dir. It also removes workspaces since those are
217-
// symlinks and should not be commited into source control.
217+
// symlinks and should not be committed into source control.
218218
const files = allFiles
219219
.filter(f => f.startsWith('node_modules/'))
220220
.map(f => f.replace(/^node_modules\//, ''))

scripts/create-node-pr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const getPrBody = async ({ releases, closePrs }) => {
9999
.use(remarkGfm)
100100
.use(remarkGithub, {
101101
repository: 'npm/cli',
102-
// dont link mentions, but anything else make the link an explicit referance to npm/cli
102+
// don't link mentions, but anything else make the link an explicit reference to npm/cli
103103
buildUrl: (values) => values.type === 'mention' ? false : defaultBuildUrl(values),
104104
})
105105
.process(prBody)
@@ -197,7 +197,7 @@ const main = async (spec, branch = 'main', opts) => withTempDir(CWD, async (tmpD
197197
// get a list of all versions changelogs to add to the body of the PR
198198
// do this before we checkout our branch and make any changes
199199
const npmReleases = await Promise.all(newNpmVersions.map(async (v) => {
200-
// dont include prereleases unless we are updating to a prerlease since we
200+
// don't include prereleases unless we are updating to a prerelease since we
201201
// manually put all prerelease notes into the first stable major version
202202
if (v.prerelease.length && !npmVersion.prerelease.length) {
203203
return null

scripts/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const main = async (opts) => {
150150

151151
if (smokePublish) {
152152
// when we have a smoke test run we'd want to bump the version or else npm will throw an error even with dry-run
153-
// this is the equivlent of running `npm version prerelease`, but ensureing all internally used workflows are bumped
153+
// this is the equivalent of running `npm version prerelease`, but ensuring all internally used workflows are bumped
154154
for (const publish of publishes) {
155155
const { version } = await publish.updatePkg((pkg) => ({ ...pkg, version: `${pkg.version}-smoke.0` }))
156156
for (const ipublish of publishes) {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Leave this empty to use the default ciVersions from template-oss
22
// This file is kept here to make it easier to apply template-oss
33
// changes to other branches which might have different ciVersions
4-
// or other conifg options
4+
// or other config options
55
module.exports = {}

test/lib/cli/exit-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const mockExitHandler = async (t, {
125125
...errors,
126126
],
127127
npm,
128-
// Make it async to make testing ergonomics a little easier so we dont need
128+
// Make it async to make testing ergonomics a little easier so we don't need
129129
// to t.plan() every test to make sure we get process.exit called.
130130
exitHandler: (argErr) => new Promise(res => {
131131
process.once('exit', res)

test/lib/load-all-commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ t.test('load each command', async t => {
7878
})
7979
}
8080

81-
// make sure refactors dont move or rename these static properties since
81+
// make sure refactors don't move or rename these static properties since
8282
// we guard against the tests for them above
8383
t.ok(counts.completion > 0, 'has some completion functions')
8484
t.ok(counts.ignoreImplicitWorkspace > 0, 'has some commands that change ignoreImplicitWorkspace')

0 commit comments

Comments
 (0)