pnpm patch-commit <path>

Генерує виправлення з теки та зберігає його (на основі схожої команди у Yarn).

This command will compare the changes from path to the package it was supposed to patch, generate a patch file, save the patch file to patchesDir (which can be customized by the --patches-dir option), and add an entry to patchedDependencies.

Використання:

pnpm patch-commit <path>
  • path is the path to a modified copy of the patch target package, usually the directory generated by pnpm patch. It can also be a package name or specifier. If several edit directories match it, the command fails with ERR_PNPM_AMBIGUOUS_PATCH_TARGET.

After recording the patch, pnpm runs an install to apply it.

Параметри#

--patches-dir <patchesDir>#

Згенерований файл виправлення буде збережено до цієї теки. Стандартно виправлення зберігаються до теки patches у корені проєкту.