Skip to content

Commit 9e10c4d

Browse files
committed
fix: update pnpm schema
1 parent 12791e5 commit 9e10c4d

File tree

1 file changed

+45
-3
lines changed

1 file changed

+45
-3
lines changed

resources/package-json.schema.json

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@
3939
"properties": {
4040
"build": {
4141
"type": "string"
42+
},
43+
"watch": {
44+
"type": "string"
45+
},
46+
"dev": {
47+
"type": "string"
48+
}
49+
}
50+
},
51+
"engines": {
52+
"properties": {
53+
"pnpm": {
54+
"type": "string"
4255
}
4356
}
4457
},
@@ -53,23 +66,52 @@
5366
}
5467
},
5568
"packageExtensions": {
56-
"type": "object"
69+
"type": "object",
70+
"description": "Patch package.json of dependencies"
5771
},
5872
"peerDependencyRules": {
5973
"type": "object",
6074
"properties": {
6175
"ignoreMissing": {
62-
"type": "array"
76+
"type": "array",
77+
"items": {
78+
"type": "string"
79+
}
6380
},
6481
"allowedVersions": {
6582
"description": "Unmet peer dependency warnings will not be printed for peer dependencies of the specified range.",
6683
"type": "object"
84+
},
85+
"allowAny": {
86+
"type": "array",
87+
"description": "an array of package name patterns, any peer dependency matching the pattern will be resolved from any version, regardless of the range specified in peerDependencies.",
88+
"items": {
89+
"type": "string"
90+
}
6791
}
6892
}
6993
},
7094
"neverBuiltDependencies": {
95+
"type": "array",
96+
"description": "This field allows to ignore the builds of specific dependencies. The \"preinstall\", \"install\", and \"postinstall\" scripts of the listed packages will not be executed during installation.",
97+
"items": {
98+
"type": "string"
99+
}
100+
},
101+
"onlyBuiltDependencies": {
102+
"type": "array",
103+
"description": "If this field exists, only the listed packages will be able to run install scripts",
104+
"items": {
105+
"type": "string"
106+
}
107+
},
108+
"allowedDeprecatedVersions": {
109+
"type": "object",
110+
"description": ">=7.2.0 Allows muting deprecation warnings of specific packages"
111+
},
112+
"patchedDependencies": {
71113
"type": "object",
72-
"description": "This field allows to ignore the builds of specific dependencies. The \"preinstall\", \"install\", and \"postinstall\" scripts of the listed packages will not be executed during installation."
114+
"description": "This field is added/updated automatically when you run pnpm patch-commit. It is a dictionary where the key should be the package name and exact version"
73115
}
74116
}
75117
}

0 commit comments

Comments
 (0)