Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions src/schemas/json/typings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/typings.json",
"additionalProperties": true,
"id": "https://json.schemastore.org/typings.json",
"properties": {
"main": {
"description": "The entry point to the definition (canonical to `\"main\"` in NPM's `package.json`).",
"type": "string"
},
"browser": {
"description": "A string, or map of paths, to override during resolution. See spec: https://github.com/defunctzombie/package-browser-field-spec",
"type": ["object", "string"]
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
],
"description": "A string, or map of paths, to override during resolution. See spec: https://github.com/defunctzombie/package-browser-field-spec"
},
"version": {
"description": "The semver range this definition is typed for",
Expand All @@ -20,8 +27,15 @@
"type": "string"
},
"resolution": {
"description": "Map of resolutions to install",
"type": ["object", "string"]
"anyOf": [
{
"type": "object"
},
{
"type": "string"
}
],
"description": "Map of resolutions to install"
},
"files": {
"description": "Used as an alternative or to complement `main`, specify an array of files that are exported but aren't already part of the resolution from `main`.",
Expand Down
21 changes: 14 additions & 7 deletions src/schemas/json/typingsrc.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/typingsrc.json",
"additionalProperties": true,
"id": "https://json.schemastore.org/typingsrc.json",
"properties": {
"ca": {
"type": ["array", "string"],
"description": "A string or array of strings of trusted certificates in PEM format",
"items": {
"type": "string"
}
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "A string or array of strings of trusted certificates in PEM format"
},
"cert": {
"type": "string",
Expand Down
Loading