Skip to content

Commit 41a4560

Browse files
committed
workaround possible false positive error
1 parent 51946ea commit 41a4560

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/build/src/packaging/package/helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export async function execFile(
1313
): Promise<ReturnType<typeof execFileWithoutLogging>> {
1414
const joinedCommand = [args[0], ...(args[1] ?? [])].join(' ');
1515
console.info(
16-
'Running "' + joinedCommand + '" in ' + args[2]?.cwd ?? process.cwd()
16+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
17+
// @ts-ignore TS2869 Right operand of ?? is unreachable because the left operand is never nullish.
18+
`Running "${joinedCommand}" in ${args[2]?.cwd ?? process.cwd()}`
1719
);
1820
const result = await execFileWithoutLogging(...args);
1921
console.info('"' + joinedCommand + '" resulted in:', {

0 commit comments

Comments
 (0)