Skip to content

Commit

Permalink
fix: update schema to be valid in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 6, 2021
1 parent 1b3b6d8 commit d5c5fd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"title": "JSONConfig",
"type": "object",
"definitions": {
"SupportedPackageManagerOrAuto": {
"enum": ["auto", "npm", "yarn", "pnpm"]
Expand All @@ -20,7 +21,7 @@
"type": "array",
"items": {
"type": "string",
"pattern": "^\\d+\\|((?:@[a-z\\d-*~][a-z\\d-*._~]*/)?[a-z\\d-~][a-z\\d-._~]*>)+((?:@[a-z\\d-*~][a-z\\d-*._~]*/)?[a-z\\d-~][a-z\\d-._~]*)$"
"pattern": "^\\d+\\|((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*>)+((?:@[a-z\\d*~-][a-z\\d*._~-]*/)?[a-z\\d~-][a-z\\d._~-]*)$"
}
}
},
Expand Down

0 comments on commit d5c5fd0

Please sign in to comment.