pnpm link
Ayrıca: ln
İçerisinde bulunduğun paketi/projeyi, global biçimde veya belirtilen konumdan erişilebilmesini sağlar.
pnpm link <dir>
pnpm link --global
pnpm link --global <pkg>
Parametreler
--dir <konum/dizin>, -C
- Varsayılan: İçerisinde olunan geçerli dizin
- Tip: String (metin, konum)
Link konumunu, <konum/dizin>
olarak değiştirir.
pnpm link <dir>
Links package from <dir>
folder to node_modules of package from where you're executing this command or specified via --dir
option.
For example, if you are inside
~/projects/foo
and you executepnpm link --dir ../bar
, thenfoo
will be linked tobar/node_modules/foo
.
pnpm link --global
Links package from location where this command was executed or specified via --dir
option to global node_modules
, so it can be referred from another package with pnpm link --global <pkg>
. Also if the package has a bin
field, then the package's binaries become available system-wide.