pnpm patch <pkg>
為修補程序準備套件 (從 Yarn 中類似的命令激發)。
這個命令將會造成套件在設計為可編輯的臨時目錄中被壓縮。
Once you're done with your changes, run pnpm patch-commit <path>
(with <path>
being the temporary directory you received) to generate a patchfile and register it into your top-level manifest via the patchedDependencies
field.
使用方式:
pnpm patch <pkg name>@<version>