Skip to content

Commit 2d84091

Browse files
committed
chore: fix snapshots for updated @npmcli/package-json
Invalid scripts warnings are gone that should not be there
1 parent e3f0fd4 commit 2d84091

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

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

-29
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ exports[`test/lib/commands/publish.js TAP no auth dry-run > must match snapshot
254254

255255
exports[`test/lib/commands/publish.js TAP no auth dry-run > warns about auth being needed 1`] = `
256256
Array [
257-
"publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
258-
String(
259-
publish errors corrected:
260-
publish Removed invalid "scripts"
261-
),
262257
"This command requires you to be logged in to https://registry.npmjs.org/ (dry-run)",
263258
]
264259
`
@@ -359,26 +354,14 @@ Array [
359354
"\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
360355
String(
361356
\\u001b[94mpublish\\u001b[39m errors corrected:
362-
\\u001b[94mpublish\\u001b[39m Removed invalid "scripts"
363357
\\u001b[94mpublish\\u001b[39m "repository" was changed from a string to an object
364358
),
365359
"\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
366360
String(
367361
\\u001b[94mpublish\\u001b[39m errors corrected:
368-
\\u001b[94mpublish\\u001b[39m Removed invalid "scripts"
369362
\\u001b[94mpublish\\u001b[39m "repository" was changed from a string to an object
370363
\\u001b[94mpublish\\u001b[39m "repository.url" was normalized to "git+https://github.com/npm/workspace-b.git"
371364
),
372-
"\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
373-
String(
374-
\\u001b[94mpublish\\u001b[39m errors corrected:
375-
\\u001b[94mpublish\\u001b[39m Removed invalid "scripts"
376-
),
377-
"\\u001b[94mpublish\\u001b[39m npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
378-
String(
379-
\\u001b[94mpublish\\u001b[39m errors corrected:
380-
\\u001b[94mpublish\\u001b[39m Removed invalid "scripts"
381-
),
382365
"\\u001b[94mpublish\\u001b[39m Skipping workspace \\u001b[36mworkspace-p\\u001b[39m, marked as \\u001b[1mprivate\\u001b[22m",
383366
]
384367
`
@@ -394,26 +377,14 @@ Array [
394377
"publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
395378
String(
396379
publish errors corrected:
397-
publish Removed invalid "scripts"
398380
publish "repository" was changed from a string to an object
399381
),
400382
"publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
401383
String(
402384
publish errors corrected:
403-
publish Removed invalid "scripts"
404385
publish "repository" was changed from a string to an object
405386
publish "repository.url" was normalized to "git+https://github.com/npm/workspace-b.git"
406387
),
407-
"publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
408-
String(
409-
publish errors corrected:
410-
publish Removed invalid "scripts"
411-
),
412-
"publish npm auto-corrected some errors in your package.json when publishing. Please run \\"npm pkg fix\\" to address these errors.",
413-
String(
414-
publish errors corrected:
415-
publish Removed invalid "scripts"
416-
),
417388
"publish Skipping workspace workspace-p, marked as private",
418389
]
419390
`

0 commit comments

Comments
 (0)