-
Notifications
You must be signed in to change notification settings - Fork 524
/
Copy pathpnpm-workspace.json
64 lines (64 loc) · 2.37 KB
/
pnpm-workspace.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://pnpm.io/schema/pnpm-workspace.json",
"title": "pnpm Workspace Specification",
"description": "JSON schema for pnpm-workspace.yaml files.",
"$comment": "https://pnpm.io/pnpm-workspace_yaml",
"$defs": {
"dependency": {
"$comment": "https://json.schemastore.org/package.json",
"description": "Dependencies are specified with a simple hash of package name to version range.\nThe version range is a string which has one or more space-separated descriptors.\nDependencies can also be identified with a tarball or git URL.\n",
"type": "object",
"minProperties": 1,
"propertyNames": {
"type": "string",
"minLength": 1,
"maxLength": 214,
"pattern": "^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^(\\*|latest|next|(^v?|\\sv?|[~^]|[<>]=?))?(0|[1-9xX*]\\d*)(\\.(0|[1-9xX*]\\d*)(\\.(0|[1-9xX*]\\d*)(-((0|[1-9xX*]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(\\.(0|[1-9xX*]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\\+([0-9a-zA-Z-]+(\\.[0-9a-zA-Z-]+)*))?)?)?$"
}
},
"catalog": {
"description": "Define dependency version ranges as reusable constants,\nfor later reference in package.json files.\nThis (singular) field creates a catalog named default.\n",
"type": "object",
"minProperties": 1,
"$ref": "#/$defs/dependency"
}
},
"type": "object",
"additionalProperties": false,
"required": [
"packages"
],
"properties": {
"packages": {
"description": "Workspace package paths. Glob patterns are supported.",
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string"
}
},
"catalog": {
"$comment": "https://pnpm.io/catalogs",
"description": "Define dependency version ranges as reusable constants,\nfor later reference in package.json files.\nThis (singular) field creates a catalog named default.\n",
"type": "object",
"minProperties": 1,
"$ref": "#/$defs/dependency"
},
"catalogs": {
"description": "Define arbitrarily named catalogs.",
"type": "object",
"minProperties": 1,
"additionalProperties": {
"$ref": "#/$defs/catalog"
}
}
}
}