synopkg 14.0.1

Consistent dependency versions in large JavaScript Monorepos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::specifier::Specifier;

#[derive(Debug, PartialEq)]
pub struct File {
  /// "file:path/to/directory"
  /// "file:path/to/foo.tar.gz"
  pub raw: String,
}

impl File {
  pub fn create(raw: &str) -> Specifier {
    Specifier::File(Self { raw: raw.to_string() })
  }
}