@ms-cloudpack/common-types 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/lib/BundleContext.d.ts +6 -0
- package/lib/BundleContext.d.ts.map +1 -0
- package/lib/BundleContext.js +2 -0
- package/lib/BundleContext.js.map +1 -0
- package/lib/BundleMessage.d.ts +10 -0
- package/lib/BundleMessage.d.ts.map +1 -0
- package/lib/BundleMessage.js +2 -0
- package/lib/BundleMessage.js.map +1 -0
- package/lib/BundleMessageLocation.d.ts +12 -0
- package/lib/BundleMessageLocation.d.ts.map +1 -0
- package/lib/BundleMessageLocation.js +2 -0
- package/lib/BundleMessageLocation.js.map +1 -0
- package/lib/BundleMessageNote.d.ts +6 -0
- package/lib/BundleMessageNote.d.ts.map +1 -0
- package/lib/BundleMessageNote.js +2 -0
- package/lib/BundleMessageNote.js.map +1 -0
- package/lib/BundleOptions.d.ts +57 -0
- package/lib/BundleOptions.d.ts.map +1 -0
- package/lib/BundleOptions.js +2 -0
- package/lib/BundleOptions.js.map +1 -0
- package/lib/BundleOutputFile.d.ts +17 -0
- package/lib/BundleOutputFile.d.ts.map +1 -0
- package/lib/BundleOutputFile.js +2 -0
- package/lib/BundleOutputFile.js.map +1 -0
- package/lib/BundleResult.d.ts +23 -0
- package/lib/BundleResult.d.ts.map +1 -0
- package/lib/BundleResult.js +2 -0
- package/lib/BundleResult.js.map +1 -0
- package/lib/BundlerPlugin.d.ts +8 -0
- package/lib/BundlerPlugin.d.ts.map +1 -0
- package/lib/BundlerPlugin.js +2 -0
- package/lib/BundlerPlugin.js.map +1 -0
- package/lib/BundlerPluginResult.d.ts +43 -0
- package/lib/BundlerPluginResult.d.ts.map +1 -0
- package/lib/BundlerPluginResult.js +2 -0
- package/lib/BundlerPluginResult.js.map +1 -0
- package/lib/CloudpackConfig.d.ts +9 -0
- package/lib/CloudpackConfig.d.ts.map +1 -0
- package/lib/CloudpackConfig.js +2 -0
- package/lib/CloudpackConfig.js.map +1 -0
- package/lib/DevServer.d.ts +44 -0
- package/lib/DevServer.d.ts.map +1 -0
- package/lib/DevServer.js +2 -0
- package/lib/DevServer.js.map +1 -0
- package/lib/Feature.d.ts +4 -0
- package/lib/Feature.d.ts.map +1 -0
- package/lib/Feature.js +2 -0
- package/lib/Feature.js.map +1 -0
- package/lib/Features.d.ts +8 -0
- package/lib/Features.d.ts.map +1 -0
- package/lib/Features.js +2 -0
- package/lib/Features.js.map +1 -0
- package/lib/GeneratedConfig.d.ts +17 -0
- package/lib/GeneratedConfig.d.ts.map +1 -0
- package/lib/GeneratedConfig.js +2 -0
- package/lib/GeneratedConfig.js.map +1 -0
- package/lib/HttpsConfig.d.ts +9 -0
- package/lib/HttpsConfig.d.ts.map +1 -0
- package/lib/HttpsConfig.js +2 -0
- package/lib/HttpsConfig.js.map +1 -0
- package/lib/PackageDefinitionsCache.d.ts +51 -0
- package/lib/PackageDefinitionsCache.d.ts.map +1 -0
- package/lib/PackageDefinitionsCache.js +2 -0
- package/lib/PackageDefinitionsCache.js.map +1 -0
- package/lib/PackageJson.d.ts +134 -0
- package/lib/PackageJson.d.ts.map +1 -0
- package/lib/PackageJson.js +2 -0
- package/lib/PackageJson.js.map +1 -0
- package/lib/PackageOverride.d.ts +8 -0
- package/lib/PackageOverride.d.ts.map +1 -0
- package/lib/PackageOverride.js +2 -0
- package/lib/PackageOverride.js.map +1 -0
- package/lib/PackageSettings.d.ts +56 -0
- package/lib/PackageSettings.d.ts.map +1 -0
- package/lib/PackageSettings.js +2 -0
- package/lib/PackageSettings.js.map +1 -0
- package/lib/Route.d.ts +23 -0
- package/lib/Route.d.ts.map +1 -0
- package/lib/Route.js +2 -0
- package/lib/Route.js.map +1 -0
- package/lib/TelemetryConfig.d.ts +7 -0
- package/lib/TelemetryConfig.d.ts.map +1 -0
- package/lib/TelemetryConfig.js +2 -0
- package/lib/TelemetryConfig.js.map +1 -0
- package/lib/UserConfig.d.ts +73 -0
- package/lib/UserConfig.d.ts.map +1 -0
- package/lib/UserConfig.js +2 -0
- package/lib/UserConfig.js.map +1 -0
- package/lib/allFeatures.d.ts +15 -0
- package/lib/allFeatures.d.ts.map +1 -0
- package/lib/allFeatures.js +16 -0
- package/lib/allFeatures.js.map +1 -0
- package/lib/index.d.ts +24 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/tsdoc-metadata.json +11 -0
- package/package.json +32 -0
- package/schema/GeneratedConfig.json +622 -0
- package/schema/UserConfig.json +655 -0
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"packageSettings": {
|
|
6
|
+
"type": "array",
|
|
7
|
+
"items": {
|
|
8
|
+
"$ref": "#/definitions/PackageSettings"
|
|
9
|
+
},
|
|
10
|
+
"description": "Settings to customize how packages are bundled. For the generated config, these should just contain generated exports maps."
|
|
11
|
+
},
|
|
12
|
+
"packageOverrides": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"$ref": "#/definitions/PackageOverride"
|
|
16
|
+
},
|
|
17
|
+
"deprecated": "Use `packageSettings` instead."
|
|
18
|
+
},
|
|
19
|
+
"$schema": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"description": "Per-application generated configuration for Cloudpack.",
|
|
25
|
+
"definitions": {
|
|
26
|
+
"PackageSettings": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"properties": {
|
|
29
|
+
"match": {
|
|
30
|
+
"anyOf": [
|
|
31
|
+
{
|
|
32
|
+
"type": "object",
|
|
33
|
+
"properties": {
|
|
34
|
+
"name": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Name of the package. Can use a trailing wildcard (e.g. \"\\@scope/*\")."
|
|
37
|
+
},
|
|
38
|
+
"version": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Version of the package. Unspecified matches any version."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"name"
|
|
45
|
+
],
|
|
46
|
+
"additionalProperties": false
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"description": "A match to indicate the target for the settings to be applied to."
|
|
53
|
+
},
|
|
54
|
+
"includedDependencies": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"description": "The dependencies which should be included when computing the import map. This is primarily used when devDependencies are needed by the app. This often happens when a library has a demo app which relies on devDependencies."
|
|
60
|
+
},
|
|
61
|
+
"excludedDependencies": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "The dependencies which should be ignored by Cloudpack verbs. For example, if \"react-native\" is a dependency which should not be included in the import map or evaluated during `init`, it can be listed here to ignore it."
|
|
67
|
+
},
|
|
68
|
+
"inlinedDependencies": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
"description": "Dependencies which should be inlined in the library bundled by Cloudpack. This is useful for libraries which are small and don't need to be loaded separately, or ones which have issues being resolved by the browser."
|
|
74
|
+
},
|
|
75
|
+
"exports": {
|
|
76
|
+
"$ref": "#/definitions/PackageJsonExports",
|
|
77
|
+
"description": "The exports map that should be used for this package, ignoring entries which are defined in the original package.json. This is useful for libraries which have a missing or broken exports map, or when we want to trim the exports to reduce the api surface we expose to the inner loop experience."
|
|
78
|
+
},
|
|
79
|
+
"bundlerType": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Forces the package to be bundled using a specific bundler."
|
|
82
|
+
},
|
|
83
|
+
"bundlerOptions": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"additionalProperties": {},
|
|
86
|
+
"description": "Options to pass to the bundler."
|
|
87
|
+
},
|
|
88
|
+
"inputPaths": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"description": "Paths used for file monitoring and input hashing. Supports glob matching. Defaults to `[/src/**, *.json]` and excludes node_modules. Use `...` to include the default paths."
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"required": [
|
|
97
|
+
"match"
|
|
98
|
+
],
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"description": "Settings which apply to a single package (app or library) as it pertains to the Cloudpack start experience."
|
|
101
|
+
},
|
|
102
|
+
"PackageJsonExports": {
|
|
103
|
+
"anyOf": [
|
|
104
|
+
{
|
|
105
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"$ref": "#/definitions/PackageJsonExportsObject"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "array",
|
|
112
|
+
"items": {
|
|
113
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"description": "Entry points of a package, optionally with conditions and subpath exports. Used as `PackageJson.exports`."
|
|
118
|
+
},
|
|
119
|
+
"PackageJsonExportsValue": {
|
|
120
|
+
"anyOf": [
|
|
121
|
+
{
|
|
122
|
+
"type": "null"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "object",
|
|
129
|
+
"properties": {
|
|
130
|
+
"browser": {
|
|
131
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
132
|
+
},
|
|
133
|
+
"default": {
|
|
134
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
135
|
+
},
|
|
136
|
+
"deno": {
|
|
137
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
138
|
+
},
|
|
139
|
+
"electron": {
|
|
140
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
141
|
+
},
|
|
142
|
+
"import": {
|
|
143
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
144
|
+
},
|
|
145
|
+
"module": {
|
|
146
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
147
|
+
},
|
|
148
|
+
"node-addons": {
|
|
149
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
150
|
+
},
|
|
151
|
+
"node": {
|
|
152
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
153
|
+
},
|
|
154
|
+
"react-native": {
|
|
155
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
156
|
+
},
|
|
157
|
+
"require": {
|
|
158
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"additionalProperties": {
|
|
162
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "array",
|
|
167
|
+
"items": {
|
|
168
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"description": "The value of an `PackageJson.exports` object key. Note at the root of the object, keys can be represented either by a condition, or a `string` to provide import paths (such as \"./foo\"). At subsequent levels within the object, only conditions (string which don't start with \".\") can be used as keys."
|
|
173
|
+
},
|
|
174
|
+
"PackageJsonExportsObject": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"additionalProperties": {
|
|
177
|
+
"$ref": "#/definitions/PackageJsonExportsValue"
|
|
178
|
+
},
|
|
179
|
+
"description": "Definition of the root exports object. Keys can be either conditions or import paths."
|
|
180
|
+
},
|
|
181
|
+
"PackageOverride": {
|
|
182
|
+
"type": "object",
|
|
183
|
+
"properties": {
|
|
184
|
+
"name": {
|
|
185
|
+
"type": "string"
|
|
186
|
+
},
|
|
187
|
+
"versionRequirement": {
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"isInternal": {
|
|
191
|
+
"type": "boolean"
|
|
192
|
+
},
|
|
193
|
+
"overrides": {
|
|
194
|
+
"$ref": "#/definitions/PackageJson"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"name",
|
|
199
|
+
"versionRequirement",
|
|
200
|
+
"overrides"
|
|
201
|
+
],
|
|
202
|
+
"additionalProperties": false
|
|
203
|
+
},
|
|
204
|
+
"PackageJson": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"name": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "The name of the package."
|
|
210
|
+
},
|
|
211
|
+
"description": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "A description of the package."
|
|
214
|
+
},
|
|
215
|
+
"version": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"description": "Package semantic version."
|
|
218
|
+
},
|
|
219
|
+
"files": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"items": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"description": "The files included in the package."
|
|
225
|
+
},
|
|
226
|
+
"directories": {
|
|
227
|
+
"type": "object",
|
|
228
|
+
"properties": {
|
|
229
|
+
"bin": {
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
"lib": {
|
|
233
|
+
"type": "string"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"additionalProperties": {
|
|
237
|
+
"anyOf": [
|
|
238
|
+
{
|
|
239
|
+
"type": "string"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"not": {}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
"description": "Indicates the structure of the package. https://docs.npmjs.com/cli/v9/configuring-npm/package-json#directories"
|
|
247
|
+
},
|
|
248
|
+
"type": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"enum": [
|
|
251
|
+
"module",
|
|
252
|
+
"commonjs"
|
|
253
|
+
],
|
|
254
|
+
"description": "Resolution algorithm for importing \".js\" files from the package's scope. https://nodejs.org/api/esm.html#esm_package_json_type_field"
|
|
255
|
+
},
|
|
256
|
+
"main": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "The module ID that is the primary entry point to the package."
|
|
259
|
+
},
|
|
260
|
+
"module": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "An ECMAScript module ID that is the primary entry point to the package."
|
|
263
|
+
},
|
|
264
|
+
"bin": {
|
|
265
|
+
"anyOf": [
|
|
266
|
+
{
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": {
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
"description": "Make all properties in T optional"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
"description": "The executable file(s) for this package."
|
|
278
|
+
},
|
|
279
|
+
"esnext": {
|
|
280
|
+
"anyOf": [
|
|
281
|
+
{
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "object",
|
|
286
|
+
"properties": {
|
|
287
|
+
"main": {
|
|
288
|
+
"type": "string"
|
|
289
|
+
},
|
|
290
|
+
"browser": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
"additionalProperties": {
|
|
295
|
+
"anyOf": [
|
|
296
|
+
{
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"not": {}
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"description": "A module ID with untranspiled code that is the primary entry point to the package."
|
|
307
|
+
},
|
|
308
|
+
"browser": {
|
|
309
|
+
"anyOf": [
|
|
310
|
+
{
|
|
311
|
+
"type": "string"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "object",
|
|
315
|
+
"additionalProperties": {
|
|
316
|
+
"anyOf": [
|
|
317
|
+
{
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "boolean",
|
|
322
|
+
"const": false
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
"description": "Make all properties in T optional"
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"description": "A hint to JavaScript bundlers or component tools when packaging modules for client side use."
|
|
330
|
+
},
|
|
331
|
+
"sideEffects": {
|
|
332
|
+
"anyOf": [
|
|
333
|
+
{
|
|
334
|
+
"type": "boolean"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "array",
|
|
338
|
+
"items": {
|
|
339
|
+
"type": "string"
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"description": "Denote which files in the package have side effects and may not be pruned by bundlers, even if unused. If a boolean, applies to all files in the package. `false` indicates there are no side effects. https://webpack.js.org/guides/tree-shaking/"
|
|
344
|
+
},
|
|
345
|
+
"types": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"description": "Location of the bundled TypeScript declaration file."
|
|
348
|
+
},
|
|
349
|
+
"typings": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "Location of the bundled TypeScript declaration file. Alias of `types`."
|
|
352
|
+
},
|
|
353
|
+
"typesVersions": {
|
|
354
|
+
"type": "object",
|
|
355
|
+
"additionalProperties": {
|
|
356
|
+
"type": "object",
|
|
357
|
+
"additionalProperties": {
|
|
358
|
+
"type": "array",
|
|
359
|
+
"items": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"description": "Make all properties in T optional"
|
|
364
|
+
},
|
|
365
|
+
"description": "Location of TypeScript declaration files for different TypeScript versions."
|
|
366
|
+
},
|
|
367
|
+
"exports": {
|
|
368
|
+
"$ref": "#/definitions/PackageJsonExports",
|
|
369
|
+
"description": "Subpath exports to define entry points of the package. https://nodejs.org/api/packages.html#subpath-exports"
|
|
370
|
+
},
|
|
371
|
+
"imports": {
|
|
372
|
+
"$ref": "#/definitions/PackageJsonImports",
|
|
373
|
+
"description": "Subpath imports to define internal package import maps that only apply to import specifiers from within the package itself. https://nodejs.org/api/packages.html#subpath-imports"
|
|
374
|
+
},
|
|
375
|
+
"dependencies": {
|
|
376
|
+
"$ref": "#/definitions/PackageJsonDependencies",
|
|
377
|
+
"description": "Dependencies that will be installed when the package is consumed."
|
|
378
|
+
},
|
|
379
|
+
"devDependencies": {
|
|
380
|
+
"$ref": "#/definitions/PackageJsonDependencies",
|
|
381
|
+
"description": "Dependencies for local development only."
|
|
382
|
+
},
|
|
383
|
+
"peerDependencies": {
|
|
384
|
+
"$ref": "#/definitions/PackageJsonDependencies",
|
|
385
|
+
"description": "Dependencies that must be installed alongside this package when consumed."
|
|
386
|
+
},
|
|
387
|
+
"peerDependenciesMeta": {
|
|
388
|
+
"type": "object",
|
|
389
|
+
"additionalProperties": {
|
|
390
|
+
"type": "object",
|
|
391
|
+
"properties": {
|
|
392
|
+
"optional": {
|
|
393
|
+
"type": "boolean",
|
|
394
|
+
"const": true
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"optional"
|
|
399
|
+
],
|
|
400
|
+
"additionalProperties": false
|
|
401
|
+
},
|
|
402
|
+
"description": "Indicates which peer dependencies are optional."
|
|
403
|
+
},
|
|
404
|
+
"optionalDependencies": {
|
|
405
|
+
"$ref": "#/definitions/PackageJsonDependencies"
|
|
406
|
+
},
|
|
407
|
+
"bundledDependencies": {
|
|
408
|
+
"anyOf": [
|
|
409
|
+
{
|
|
410
|
+
"$ref": "#/definitions/PackageJsonDependencies"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"type": "array",
|
|
414
|
+
"items": {
|
|
415
|
+
"type": "string"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
]
|
|
419
|
+
},
|
|
420
|
+
"bundleDependencies": {
|
|
421
|
+
"anyOf": [
|
|
422
|
+
{
|
|
423
|
+
"$ref": "#/definitions/PackageJsonDependencies"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"type": "array",
|
|
427
|
+
"items": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
433
|
+
"resolutions": {
|
|
434
|
+
"$ref": "#/definitions/PackageJsonDependencies"
|
|
435
|
+
},
|
|
436
|
+
"engines": {
|
|
437
|
+
"type": "object",
|
|
438
|
+
"properties": {
|
|
439
|
+
"npm": {
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
"node": {
|
|
443
|
+
"type": "string"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"additionalProperties": {
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
"description": "Required engine versions for running this package."
|
|
450
|
+
},
|
|
451
|
+
"os": {
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"$ref": "#/definitions/LiteralOrString%3C(%22aix%22%7C%22darwin%22%7C%22freebsd%22%7C%22linux%22%7C%22openbsd%22%7C%22sunos%22%7C%22win32%22%7C%22!aix%22%7C%22!darwin%22%7C%22!freebsd%22%7C%22!linux%22%7C%22!openbsd%22%7C%22!sunos%22%7C%22!win32%22)%3E"
|
|
455
|
+
},
|
|
456
|
+
"description": "Operating systems the package can run on."
|
|
457
|
+
},
|
|
458
|
+
"cpu": {
|
|
459
|
+
"type": "array",
|
|
460
|
+
"items": {
|
|
461
|
+
"$ref": "#/definitions/LiteralOrString%3C(%22arm%22%7C%22arm64%22%7C%22ia32%22%7C%22mips%22%7C%22mipsel%22%7C%22ppc%22%7C%22ppc64%22%7C%22s390%22%7C%22s390x%22%7C%22x32%22%7C%22x64%22%7C%22!arm%22%7C%22!arm64%22%7C%22!ia32%22%7C%22!mips%22%7C%22!mipsel%22%7C%22!ppc%22%7C%22!ppc64%22%7C%22!s390%22%7C%22!s390x%22%7C%22!x32%22%7C%22!x64%22)%3E"
|
|
462
|
+
},
|
|
463
|
+
"description": "CPU architectures the package can run on."
|
|
464
|
+
},
|
|
465
|
+
"private": {
|
|
466
|
+
"type": "boolean",
|
|
467
|
+
"description": "If `true`, this package cannot be published."
|
|
468
|
+
},
|
|
469
|
+
"publishConfig": {
|
|
470
|
+
"type": "object",
|
|
471
|
+
"properties": {
|
|
472
|
+
"access": {
|
|
473
|
+
"type": "string",
|
|
474
|
+
"enum": [
|
|
475
|
+
"public",
|
|
476
|
+
"restricted"
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"registry": {
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"tag": {
|
|
483
|
+
"type": "string"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"additionalProperties": {},
|
|
487
|
+
"description": "A set of config values that will be used during publishing. https://docs.npmjs.com/cli/v7/configuring-npm/package-json#publishconfig"
|
|
488
|
+
},
|
|
489
|
+
"packageManager": {
|
|
490
|
+
"type": "string",
|
|
491
|
+
"description": "Defines which package manager is expected to be used when working on the current project. https://nodejs.org/api/corepack.html"
|
|
492
|
+
},
|
|
493
|
+
"workspaces": {
|
|
494
|
+
"anyOf": [
|
|
495
|
+
{
|
|
496
|
+
"type": "array",
|
|
497
|
+
"items": {
|
|
498
|
+
"type": "string"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"type": "object",
|
|
503
|
+
"properties": {
|
|
504
|
+
"packages": {
|
|
505
|
+
"type": "array",
|
|
506
|
+
"items": {
|
|
507
|
+
"type": "string"
|
|
508
|
+
},
|
|
509
|
+
"description": "An array of workspace pattern strings which contain the workspace packages."
|
|
510
|
+
},
|
|
511
|
+
"nohoist": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"items": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"description": "Prevent hoisting of these dependencies within the workspace (yarn only). https://classic.yarnpkg.com/blog/2018/02/15/nohoist/)"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"additionalProperties": false
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"description": "Configuration for npm or yarn workspaces."
|
|
523
|
+
},
|
|
524
|
+
"cloudpackRemapped": {
|
|
525
|
+
"type": "object",
|
|
526
|
+
"properties": {
|
|
527
|
+
"originalName": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
},
|
|
530
|
+
"originalVersion": {
|
|
531
|
+
"type": "string"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"required": [
|
|
535
|
+
"originalName",
|
|
536
|
+
"originalVersion"
|
|
537
|
+
],
|
|
538
|
+
"additionalProperties": false,
|
|
539
|
+
"description": "Cloudpack internally added property: name and version prior to nonSemverTransform (if different)"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"additionalProperties": false,
|
|
543
|
+
"description": "Types for the `package.json` file, derived from [`type-fest`](https://github.com/sindresorhus/type-fest/blob/main/source/package-json.d.ts).\n\nThis version intentionally does not permit arbitrary keys, and focuses on properties that are potentially relevant to Cloudpack. Additional properties can be added as needed."
|
|
544
|
+
},
|
|
545
|
+
"PackageJsonImports": {
|
|
546
|
+
"type": "object",
|
|
547
|
+
"additionalProperties": {
|
|
548
|
+
"anyOf": [
|
|
549
|
+
{
|
|
550
|
+
"type": "string"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"type": "object",
|
|
554
|
+
"properties": {
|
|
555
|
+
"browser": {
|
|
556
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
557
|
+
},
|
|
558
|
+
"default": {
|
|
559
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
560
|
+
},
|
|
561
|
+
"deno": {
|
|
562
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
563
|
+
},
|
|
564
|
+
"electron": {
|
|
565
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
566
|
+
},
|
|
567
|
+
"import": {
|
|
568
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
569
|
+
},
|
|
570
|
+
"module": {
|
|
571
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
572
|
+
},
|
|
573
|
+
"node-addons": {
|
|
574
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
575
|
+
},
|
|
576
|
+
"node": {
|
|
577
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
578
|
+
},
|
|
579
|
+
"react-native": {
|
|
580
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
581
|
+
},
|
|
582
|
+
"require": {
|
|
583
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"required": [
|
|
587
|
+
"browser",
|
|
588
|
+
"default",
|
|
589
|
+
"deno",
|
|
590
|
+
"electron",
|
|
591
|
+
"import",
|
|
592
|
+
"module",
|
|
593
|
+
"node-addons",
|
|
594
|
+
"node",
|
|
595
|
+
"react-native",
|
|
596
|
+
"require"
|
|
597
|
+
],
|
|
598
|
+
"additionalProperties": {
|
|
599
|
+
"$ref": "#/definitions/PackageJsonExports"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
"description": "Import map entries of a module, optionally with conditions."
|
|
605
|
+
},
|
|
606
|
+
"PackageJsonDependencies": {
|
|
607
|
+
"type": "object",
|
|
608
|
+
"additionalProperties": {
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"description": "Mapping from dependency name to semver spec."
|
|
612
|
+
},
|
|
613
|
+
"LiteralOrString<(\"aix\"|\"darwin\"|\"freebsd\"|\"linux\"|\"openbsd\"|\"sunos\"|\"win32\"|\"!aix\"|\"!darwin\"|\"!freebsd\"|\"!linux\"|\"!openbsd\"|\"!sunos\"|\"!win32\")>": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"description": "Union type which has intellisense for specific keys but also allows arbitrary strings. This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)"
|
|
616
|
+
},
|
|
617
|
+
"LiteralOrString<(\"arm\"|\"arm64\"|\"ia32\"|\"mips\"|\"mipsel\"|\"ppc\"|\"ppc64\"|\"s390\"|\"s390x\"|\"x32\"|\"x64\"|\"!arm\"|\"!arm64\"|\"!ia32\"|\"!mips\"|\"!mipsel\"|\"!ppc\"|\"!ppc64\"|\"!s390\"|\"!s390x\"|\"!x32\"|\"!x64\")>": {
|
|
618
|
+
"type": "string",
|
|
619
|
+
"description": "Union type which has intellisense for specific keys but also allows arbitrary strings. This is a workaround for a [TypeScript issue](https://github.com/Microsoft/TypeScript/issues/29729)"
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|