This commit is contained in:
nora 2022-05-14 15:02:52 +02:00
parent 3d83579417
commit bf1809e025
6 changed files with 1436 additions and 3 deletions

16
src/manifest.rs Normal file
View file

@ -0,0 +1,16 @@
use indexmap::map::IndexMap;
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PackageJson {
pub name: String,
pub version: String,
pub private: Option<bool>,
#[serde(default = "IndexMap::new")]
pub scripts: IndexMap<String, String>,
#[serde(default = "IndexMap::new")]
pub dependencies: IndexMap<String, String>,
#[serde(default = "IndexMap::new")]
pub dev_dependencies: IndexMap<String, String>,
}