pub enum CatalogMode {
Manual,
Strict,
Prefer,
}Expand description
Controlls if and how dependencies are added to the default catalog, when running pnpm add. See more: https://pnpm.io/settings#catalogmode
Variants§
Manual
(default) - does not automatically add dependencies to the catalog.
Strict
Only allows dependency versions from the catalog. Adding a dependency outside the catalog’s version range will cause an error.
Prefer
Prefers catalog versions, but will fall back to direct dependencies if no compatible version is found.
Trait Implementations§
Source§impl Clone for CatalogMode
impl Clone for CatalogMode
Source§fn clone(&self) -> CatalogMode
fn clone(&self) -> CatalogMode
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 CatalogMode
impl Debug for CatalogMode
Source§impl<'de> Deserialize<'de> for CatalogMode
impl<'de> Deserialize<'de> for CatalogMode
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 CatalogMode
impl PartialEq for CatalogMode
Source§impl Serialize for CatalogMode
impl Serialize for CatalogMode
impl Copy for CatalogMode
impl Eq for CatalogMode
impl StructuralPartialEq for CatalogMode
Auto Trait Implementations§
impl Freeze for CatalogMode
impl RefUnwindSafe for CatalogMode
impl Send for CatalogMode
impl Sync for CatalogMode
impl Unpin for CatalogMode
impl UnsafeUnpin for CatalogMode
impl UnwindSafe for CatalogMode
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.