Movatterモバイル変換


[0]ホーム

URL:


Passer au contenu principal
Version : 10.x

pnpm patch <pkg>

Préparez un paquet pour les correctifs (inspiré par une commande similaire dans Yarn).

Cette commande va provoquer l'extraction d'un package dans un répertoire temporaire destiné à être éditable à volonté.

Once you're done with your changes, runpnpm patch-commit <path> (with<path> being the temporary directory you received) to generate a patchfile and register it into your top-level manifest via thepatchedDependencies field.

Utilisation :

pnpm patch <pkg name>@<version>
note

If you want to change the dependencies of a package, don't use patching to modify thepackage.json file of the package. For overriding dependencies, useoverrides or apackage hook.

Options

--edit-dir &lt;dir>

Le paquet qui doit être corrigé sera extrait dans ce répertoire.

--ignore-existing

Ignorez les fichiers de correctifs existants lors de la correction.


[8]ページ先頭

©2009-2025 Movatter.jp