From 2d840917bbeff6a1eb5accc10a5ec1c2280b9470 Mon Sep 17 00:00:00 2001 From: Gar Date: Wed, 29 May 2024 09:08:12 -0700 Subject: [PATCH] chore: fix snapshots for updated @npmcli/package-json Invalid scripts warnings are gone that should not be there --- .../test/lib/commands/publish.js.test.cjs | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/tap-snapshots/test/lib/commands/publish.js.test.cjs b/tap-snapshots/test/lib/commands/publish.js.test.cjs index 4c0cd05fe504d..bad7355fb9076 100644 --- a/tap-snapshots/test/lib/commands/publish.js.test.cjs +++ b/tap-snapshots/test/lib/commands/publish.js.test.cjs @@ -254,11 +254,6 @@ exports[`test/lib/commands/publish.js TAP no auth dry-run > must match snapshot exports[`test/lib/commands/publish.js TAP no auth dry-run > warns about auth being needed 1`] = ` Array [ - "publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", - String( - publish errors corrected: - publish Removed invalid "scripts" - ), "This command requires you to be logged in to https://registry.npmjs.org/ (dry-run)", ] ` @@ -359,26 +354,14 @@ Array [ "\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", String( \\u001b[94mpublish\\u001b[39m errors corrected: - \\u001b[94mpublish\\u001b[39m Removed invalid "scripts" \\u001b[94mpublish\\u001b[39m "repository" was changed from a string to an object ), "\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", String( \\u001b[94mpublish\\u001b[39m errors corrected: - \\u001b[94mpublish\\u001b[39m Removed invalid "scripts" \\u001b[94mpublish\\u001b[39m "repository" was changed from a string to an object \\u001b[94mpublish\\u001b[39m "repository.url" was normalized to "git+https://github.com/npm/workspace-b.git" ), - "\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", - String( - \\u001b[94mpublish\\u001b[39m errors corrected: - \\u001b[94mpublish\\u001b[39m Removed invalid "scripts" - ), - "\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", - String( - \\u001b[94mpublish\\u001b[39m errors corrected: - \\u001b[94mpublish\\u001b[39m Removed invalid "scripts" - ), "\\u001b[94mpublish\\u001b[39m Skipping workspace \\u001b[36mworkspace-p\\u001b[39m, marked as \\u001b[1mprivate\\u001b[22m", ] ` @@ -394,26 +377,14 @@ Array [ "publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", String( publish errors corrected: - publish Removed invalid "scripts" publish "repository" was changed from a string to an object ), "publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", String( publish errors corrected: - publish Removed invalid "scripts" publish "repository" was changed from a string to an object publish "repository.url" was normalized to "git+https://github.com/npm/workspace-b.git" ), - "publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", - String( - publish errors corrected: - publish Removed invalid "scripts" - ), - "publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.", - String( - publish errors corrected: - publish Removed invalid "scripts" - ), "publish Skipping workspace workspace-p, marked as private", ] `