From ed68a28d76e45490dc05467f04115efd312fd1d9 Mon Sep 17 00:00:00 2001 From: Gar Date: Thu, 29 Jun 2023 09:00:46 -0700 Subject: [PATCH] fix: typo in changes message --- lib/normalize.js | 4 ++-- tap-snapshots/test/normalize.js.test.cjs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/normalize.js b/lib/normalize.js index 9e995cd..726b3f0 100644 --- a/lib/normalize.js +++ b/lib/normalize.js @@ -60,10 +60,10 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase }) if (steps.includes('bundleDependencies')) { const bd = data.bundleDependencies if (bd === false && !steps.includes('bundleDependenciesDeleteFalse')) { - changes?.push(`"bundleDepdencies" was changed from "false" to "[]"`) + changes?.push(`"bundleDependencies" was changed from "false" to "[]"`) data.bundleDependencies = [] } else if (bd === true) { - changes?.push(`"bundleDepdencies" was auto-populated from "dependencies"`) + changes?.push(`"bundleDependencies" was auto-populated from "dependencies"`) data.bundleDependencies = Object.keys(data.dependencies || {}) } else if (bd && typeof bd === 'object') { if (!Array.isArray(bd)) { diff --git a/tap-snapshots/test/normalize.js.test.cjs b/tap-snapshots/test/normalize.js.test.cjs index 22a4f29..463fb8a 100644 --- a/tap-snapshots/test/normalize.js.test.cjs +++ b/tap-snapshots/test/normalize.js.test.cjs @@ -30,7 +30,7 @@ Array [ exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: false > must match snapshot 1`] = ` Array [ "Deleted incorrect \\"bundledDependencies\\"", - "\\"bundleDepdencies\\" was changed from \\"false\\" to \\"[]\\"", + "\\"bundleDependencies\\" was changed from \\"false\\" to \\"[]\\"", "removed invalid \\"scripts\\"", ] ` @@ -38,7 +38,7 @@ Array [ exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true > must match snapshot 1`] = ` Array [ "Deleted incorrect \\"bundledDependencies\\"", - "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", + "\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"", "removed invalid \\"scripts\\"", ] ` @@ -46,7 +46,7 @@ Array [ exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundleDependencies: true with no deps > must match snapshot 1`] = ` Array [ "Deleted incorrect \\"bundledDependencies\\"", - "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", + "\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"", "removed invalid \\"scripts\\"", ] ` @@ -54,7 +54,7 @@ Array [ exports[`test/normalize.js TAP @npmcli/package-json - with changes clean up bundleDependencies handle bundledDependencies: true > must match snapshot 1`] = ` Array [ "Deleted incorrect \\"bundledDependencies\\"", - "\\"bundleDepdencies\\" was auto-populated from \\"dependencies\\"", + "\\"bundleDependencies\\" was auto-populated from \\"dependencies\\"", "removed invalid \\"scripts\\"", ] `