pub enum NodeLinker {
Isolated,
Hoisted,
Pnp,
}Expand description
Defines what linker should be used for installing Node packages. See more: https://pnpm.io/settings#nodelinker
Variants§
Isolated
Dependencies are symlinked from a virtual store at node_modules/.pnpm
Hoisted
A flat node_modules without symlinks is created.
Pnp
No node_modules. Plug’n’Play is an innovative strategy for Node that is used by Yarn Berry. It is recommended to also set symlink setting to false when using pnp as your linker.
Trait Implementations§
Source§impl Clone for NodeLinker
impl Clone for NodeLinker
Source§fn clone(&self) -> NodeLinker
fn clone(&self) -> NodeLinker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeLinker
impl Debug for NodeLinker
Source§impl<'de> Deserialize<'de> for NodeLinker
impl<'de> Deserialize<'de> for NodeLinker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NodeLinker
impl PartialEq for NodeLinker
Source§impl Serialize for NodeLinker
impl Serialize for NodeLinker
impl Copy for NodeLinker
impl Eq for NodeLinker
impl StructuralPartialEq for NodeLinker
Auto Trait Implementations§
impl Freeze for NodeLinker
impl RefUnwindSafe for NodeLinker
impl Send for NodeLinker
impl Sync for NodeLinker
impl Unpin for NodeLinker
impl UnsafeUnpin for NodeLinker
impl UnwindSafe for NodeLinker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.