Skip to content

Commit 9b7b99a

Browse files
author
Nick Pape
committed
Fixup a small issue with the schema
1 parent fb61086 commit 9b7b99a

1 file changed

Lines changed: 34 additions & 4 deletions

File tree

‎apps/rush-lib/src/rush.schema.json‎

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,46 @@
44
"description": "Configuration file for the Rush multi-package build tool",
55

66
"type": "object",
7+
8+
"oneOf": [
9+
{
10+
"type": "object",
11+
"required": ["npmVersion"],
12+
"properties": {
13+
"npmVersion": {
14+
"description": "The version of the NPM tool to install.",
15+
"type": "string",
16+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
17+
}
18+
}
19+
},
20+
{
21+
"type": "object",
22+
"required": ["pnpmVersion"],
23+
"properties": {
24+
"pnpmVersion": {
25+
"description": "The version of the NPM tool to install.",
26+
"type": "string",
27+
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
28+
}
29+
}
30+
}
31+
],
32+
733
"properties": {
34+
835
"$schema": {
936
"description": "Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
1037
"type": "string"
1138
},
39+
1240
"npmVersion": {
13-
"description": "The version of the NPM tool to install.",
14-
"type": "string",
15-
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
41+
"type": "string"
1642
},
43+
"pnpmVersion": {
44+
"type": "string"
45+
},
46+
1747
"rushMinimumVersion": {
1848
"description": "The minimum version of the Rush tool that must be installed in order to build this repository.",
1949
"type": "string",
@@ -161,5 +191,5 @@
161191
}
162192
},
163193
"additionalProperties": false,
164-
"required": [ "npmVersion", "rushMinimumVersion", "projects" ]
194+
"required": [ "rushMinimumVersion", "projects" ]
165195
}

0 commit comments

Comments
 (0)