forked from EclipseFdn/publish-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensions-schema.json
64 lines (64 loc) · 2.13 KB
/
extensions-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"type": "object",
"properties": {
"$schema": {
"type": "string"
}
},
"additionalProperties": {
"type": "object",
"properties": {
"repository": {
"type": "string",
"description": "Repository URL to clone and publish from. If the extension publishes `.vsix` files as release artifacts, this will determine the repo to fetch the releases from."
},
"location": {
"type": "string",
"description": "Location of the extension's package.json in the repository (defaults to the repository's root directory)"
},
"prepublish": {
"type": "string",
"description": "Extra commands to run just before publishing to Open VSX (i.e. after 'yarn/npm install', but before 'vscode:prepublish')"
},
"extensionFile": {
"type": "string",
"description": "Relative path of the extension vsix file inside the git repo (i.e. when it is built by prepublish commands"
},
"custom": {
"type": "array",
"description": "Build using a custom script. Must output an `extension.vsix` file in the `location` directory (can be changed using `extensionFile`)."
},
"timeout": {
"type": "number",
"description": "Timeout to build the extension vsix from sources."
},
"target": {
"type": "array",
"description": "A list of platforms to target. If unspecified, a universal extension will be published in case of building from source and if the vsix is resolved from GitHub Releases, all of the attached platform-specific assets will be published.",
"prefixItems": [
{
"enum": [
"win32-x64",
"win32-ia32",
"win32-arm64",
"linux-x64",
"linux-arm64",
"linux-armhf",
"darwin-x64",
"darwin-arm64",
"alpine-x64",
"alpine-arm64",
"web"
]
}
],
"uniqueItems": true,
"minItems": 1
}
},
"required": [
"repository"
],
"additionalProperties": false
}
}