pub struct DevDependencyInProduction {
pub package_name: String,
pub path: PathBuf,
pub line: u32,
}Expand description
A devDependencies package imported by production (non-test, non-config)
source code via a runtime/value import. Because a production-only install
(pnpm install --prod) omits devDependencies, it would break at runtime, so
the package should be promoted to dependencies. The promote-side mirror of
TestOnlyDependency / TypeOnlyDependency.
Fields§
§package_name: StringdevDependency imported at runtime from production code, consider moving to dependencies.
path: PathBufPath to the package.json where the dependency is listed.
line: u321-based line number of the dependency entry in package.json.
Trait Implementations§
Source§impl Clone for DevDependencyInProduction
impl Clone for DevDependencyInProduction
Source§impl Debug for DevDependencyInProduction
impl Debug for DevDependencyInProduction
Source§impl<'de> Deserialize<'de> for DevDependencyInProduction
impl<'de> Deserialize<'de> for DevDependencyInProduction
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
Auto Trait Implementations§
impl Freeze for DevDependencyInProduction
impl RefUnwindSafe for DevDependencyInProduction
impl Send for DevDependencyInProduction
impl Sync for DevDependencyInProduction
impl Unpin for DevDependencyInProduction
impl UnsafeUnpin for DevDependencyInProduction
impl UnwindSafe for DevDependencyInProduction
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