mirror of
https://github.com/Noratrieb/node-package-manager.git
synced 2026-01-14 15:45:03 +01:00
get meta
This commit is contained in:
parent
3d83579417
commit
bf1809e025
6 changed files with 1436 additions and 3 deletions
16
src/manifest.rs
Normal file
16
src/manifest.rs
Normal 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>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue