Skip to content

Commit bee5db6

Browse files
committed
fix(dry-run): stop searching for "warn" to avoid ANSI color complications
1 parent 86f65a6 commit bee5db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/verify-auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default async function (npmrc, pkg, context) {
2929
publishDryRunResult.stderr.pipe(stderr, { end: false });
3030
const {stderr: execaStderr} = await publishDryRunResult;
3131
execaStderr.forEach((line) => {
32-
if (line.includes("warn This command requires you to be logged in to https://registry.npmjs.org/")) {
32+
if (line.includes("This command requires you to be logged in to https://registry.npmjs.org/")) {
3333
throw new AggregateError([new Error('no auth context')]);
3434
}
3535
})

0 commit comments

Comments
 (0)