@pnpm/plugin-commands-patching pnpm patch patch pnpm patch-commit should work when the patch directory is specified with a trailing slash #5449.