Skip to content

Commit f363733

Browse files
authored
feat: lockfile v5 schema (#1286)
1 parent 62706c1 commit f363733

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

schemas/lockfile.schema.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"type": "string",
1818
"default": "4",
1919
"enum": [
20+
"5",
2021
"4",
2122
"3"
2223
]
@@ -61,13 +62,55 @@
6162
"default": {},
6263
"properties": {
6364
"integrity": {
64-
"type": "string",
65+
"type": ["string", "null"],
66+
"default": null,
6567
"description": "Hash for integrity checking."
6668
},
6769
"dependencies": {
6870
"type": "array",
71+
"default": [],
72+
"items": { "type": "string" },
73+
"uniqueItems": true
74+
},
75+
"optionalDependencies": {
76+
"type": "array",
77+
"default": [],
6978
"items": { "type": "string" },
7079
"uniqueItems": true
80+
},
81+
"optionalPeers": {
82+
"type": "array",
83+
"default": [],
84+
"items": { "type": "string" },
85+
"uniqueItems": true
86+
},
87+
"os": {
88+
"type": "array",
89+
"default": [],
90+
"items": { "type": "string" },
91+
"uniqueItems": true
92+
},
93+
"cpu": {
94+
"type": "array",
95+
"default": [],
96+
"items": { "type": "string" },
97+
"uniqueItems": true
98+
},
99+
"deprecated": {
100+
"type": "boolean",
101+
"default": false
102+
},
103+
"scripts": {
104+
"type": "boolean",
105+
"default": false
106+
},
107+
"bin": {
108+
"type": "boolean",
109+
"default": false
110+
},
111+
"tarball": {
112+
"type": ["string", "null"],
113+
"default": null
71114
}
72115
}
73116
}

0 commit comments

Comments
 (0)