@ts-type/package-dts 2.0.7 → 3.0.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/draft-04/schema#",
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "JSON schema for NPM package.json files",
4
4
  "definitions": {
5
5
  "person": {
@@ -32,6 +32,74 @@
32
32
  "type": "string"
33
33
  }
34
34
  },
35
+ "devDependency": {
36
+ "description": "Specifies dependencies that are required for the development and testing of the project. These dependencies are not needed in the production environment.",
37
+ "type": "object",
38
+ "additionalProperties": {
39
+ "type": "string"
40
+ }
41
+ },
42
+ "optionalDependency": {
43
+ "description": "Specifies dependencies that are optional for your project. These dependencies are attempted to be installed during the npm install process, but if they fail to install, the installation process will not fail.",
44
+ "type": "object",
45
+ "additionalProperties": {
46
+ "type": "string"
47
+ }
48
+ },
49
+ "peerDependency": {
50
+ "description": "Specifies dependencies that are required by the package but are expected to be provided by the consumer of the package.",
51
+ "type": "object",
52
+ "additionalProperties": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ "peerDependencyMeta": {
57
+ "description": "When a user installs your package, warnings are emitted if packages specified in \"peerDependencies\" are not already installed. The \"peerDependenciesMeta\" field serves to provide more information on how your peer dependencies are utilized. Most commonly, it allows peer dependencies to be marked as optional. Metadata for this field is specified with a simple hash of the package name to a metadata object.",
58
+ "type": "object",
59
+ "additionalProperties": {
60
+ "type": "object",
61
+ "additionalProperties": true,
62
+ "properties": {
63
+ "optional": {
64
+ "description": "Specifies that this peer dependency is optional and should not be installed automatically.",
65
+ "type": "boolean"
66
+ }
67
+ }
68
+ }
69
+ },
70
+ "license": {
71
+ "anyOf": [
72
+ {
73
+ "type": "string"
74
+ },
75
+ {
76
+ "enum": [
77
+ "AGPL-3.0-only",
78
+ "Apache-2.0",
79
+ "BSD-2-Clause",
80
+ "BSD-3-Clause",
81
+ "BSL-1.0",
82
+ "CC0-1.0",
83
+ "CDDL-1.0",
84
+ "CDDL-1.1",
85
+ "EPL-1.0",
86
+ "EPL-2.0",
87
+ "GPL-2.0-only",
88
+ "GPL-3.0-only",
89
+ "ISC",
90
+ "LGPL-2.0-only",
91
+ "LGPL-2.1-only",
92
+ "LGPL-2.1-or-later",
93
+ "LGPL-3.0-only",
94
+ "LGPL-3.0-or-later",
95
+ "MIT",
96
+ "MPL-2.0",
97
+ "MS-PL",
98
+ "UNLICENSED"
99
+ ]
100
+ }
101
+ ]
102
+ },
35
103
  "scriptsInstallAfter": {
36
104
  "description": "Run AFTER the package is installed.",
37
105
  "type": "string",
@@ -92,6 +160,11 @@
92
160
  "$ref": "#/definitions/packageExportsEntryOrFallback",
93
161
  "description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function."
94
162
  },
163
+ "module-sync": {
164
+ "$ref": "#/definitions/packageExportsEntryOrFallback",
165
+ "$comment": "https://nodejs.org/api/packages.html#conditional-exports#:~:text=%22module-sync%22",
166
+ "description": "The same as `import`, but can be used with require(esm) in Node 20+. This requires the files to not use any top-level awaits."
167
+ },
95
168
  "node": {
96
169
  "$ref": "#/definitions/packageExportsEntryOrFallback",
97
170
  "description": "The module path that is resolved when this environment is Node.js."
@@ -99,12 +172,20 @@
99
172
  "default": {
100
173
  "$ref": "#/definitions/packageExportsEntryOrFallback",
101
174
  "description": "The module path that is resolved when no other export type matches."
175
+ },
176
+ "types": {
177
+ "$ref": "#/definitions/packageExportsEntryOrFallback",
178
+ "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported."
102
179
  }
103
180
  },
104
181
  "patternProperties": {
105
- "^(?![\\.0-9]).": {
182
+ "^[^.0-9]+$": {
106
183
  "$ref": "#/definitions/packageExportsEntryOrFallback",
107
184
  "description": "The module path that is resolved when this environment matches the property name."
185
+ },
186
+ "^types@.+$": {
187
+ "$ref": "#/definitions/packageExportsEntryOrFallback",
188
+ "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported."
108
189
  }
109
190
  },
110
191
  "additionalProperties": false
@@ -136,6 +217,77 @@
136
217
  }
137
218
  ]
138
219
  },
220
+ "packageImportsEntryPath": {
221
+ "type": [
222
+ "string",
223
+ "null"
224
+ ],
225
+ "description": "The module path that is resolved when this specifier is imported. Set to `null` to disallow importing this module."
226
+ },
227
+ "packageImportsEntryObject": {
228
+ "type": "object",
229
+ "description": "Used to specify conditional exports, note that Conditional exports are unsupported in older environments, so it's recommended to use the fallback array option if support for those environments is a concern.",
230
+ "properties": {
231
+ "require": {
232
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
233
+ "description": "The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function."
234
+ },
235
+ "import": {
236
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
237
+ "description": "The module path that is resolved when this specifier is imported as an ECMAScript module using an `import` declaration or the dynamic `import(...)` function."
238
+ },
239
+ "node": {
240
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
241
+ "description": "The module path that is resolved when this environment is Node.js."
242
+ },
243
+ "default": {
244
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
245
+ "description": "The module path that is resolved when no other export type matches."
246
+ },
247
+ "types": {
248
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
249
+ "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported."
250
+ }
251
+ },
252
+ "patternProperties": {
253
+ "^[^.0-9]+$": {
254
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
255
+ "description": "The module path that is resolved when this environment matches the property name."
256
+ },
257
+ "^types@.+$": {
258
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
259
+ "description": "The module path that is resolved for TypeScript types when this specifier is imported. Should be listed before other conditions. Additionally, versioned \"types\" condition in the form \"types@{selector}\" are supported."
260
+ }
261
+ },
262
+ "additionalProperties": false
263
+ },
264
+ "packageImportsEntry": {
265
+ "oneOf": [
266
+ {
267
+ "$ref": "#/definitions/packageImportsEntryPath"
268
+ },
269
+ {
270
+ "$ref": "#/definitions/packageImportsEntryObject"
271
+ }
272
+ ]
273
+ },
274
+ "packageImportsFallback": {
275
+ "type": "array",
276
+ "description": "Used to allow fallbacks in case this environment doesn't support the preceding entries.",
277
+ "items": {
278
+ "$ref": "#/definitions/packageImportsEntry"
279
+ }
280
+ },
281
+ "packageImportsEntryOrFallback": {
282
+ "oneOf": [
283
+ {
284
+ "$ref": "#/definitions/packageImportsEntry"
285
+ },
286
+ {
287
+ "$ref": "#/definitions/packageImportsFallback"
288
+ }
289
+ ]
290
+ },
139
291
  "fundingUrl": {
140
292
  "type": "string",
141
293
  "format": "uri",
@@ -157,6 +309,33 @@
157
309
  "required": [
158
310
  "url"
159
311
  ]
312
+ },
313
+ "devEngineDependency": {
314
+ "description": "Specifies requirements for development environment components such as operating systems, runtimes, or package managers. Used to ensure consistent development environments across the team.",
315
+ "type": "object",
316
+ "required": [
317
+ "name"
318
+ ],
319
+ "properties": {
320
+ "name": {
321
+ "type": "string",
322
+ "description": "The name of the dependency, with allowed values depending on the parent field"
323
+ },
324
+ "version": {
325
+ "type": "string",
326
+ "description": "The version range for the dependency"
327
+ },
328
+ "onFail": {
329
+ "type": "string",
330
+ "enum": [
331
+ "ignore",
332
+ "warn",
333
+ "error",
334
+ "download"
335
+ ],
336
+ "description": "What action to take if validation fails"
337
+ }
338
+ }
160
339
  }
161
340
  },
162
341
  "type": "object",
@@ -172,10 +351,10 @@
172
351
  "type": "string",
173
352
  "maxLength": 214,
174
353
  "minLength": 1,
175
- "pattern": "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$"
354
+ "pattern": "^(?:(?:@(?:[a-z0-9-*~][a-z0-9-*._~]*)?/[a-z0-9-._~])|[a-z0-9-~])[a-z0-9-._~]*$"
176
355
  },
177
356
  "version": {
178
- "description": "Version must be parseable by node-semver, which is bundled with npm as a dependency.",
357
+ "description": "Version must be parsable by node-semver, which is bundled with npm as a dependency.",
179
358
  "type": "string"
180
359
  },
181
360
  "description": {
@@ -213,7 +392,7 @@
213
392
  }
214
393
  },
215
394
  "license": {
216
- "type": "string",
395
+ "$ref": "#/definitions/license",
217
396
  "description": "You should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it."
218
397
  },
219
398
  "licenses": {
@@ -223,7 +402,7 @@
223
402
  "type": "object",
224
403
  "properties": {
225
404
  "type": {
226
- "type": "string"
405
+ "$ref": "#/definitions/license"
227
406
  },
228
407
  "url": {
229
408
  "type": "string",
@@ -293,6 +472,17 @@
293
472
  }
294
473
  ]
295
474
  },
475
+ "imports": {
476
+ "description": "The \"imports\" field is used to create private mappings that only apply to import specifiers from within the package itself.",
477
+ "type": "object",
478
+ "patternProperties": {
479
+ "^#.+$": {
480
+ "$ref": "#/definitions/packageImportsEntryOrFallback",
481
+ "description": "The module path that is resolved when this environment matches the property name."
482
+ }
483
+ },
484
+ "additionalProperties": false
485
+ },
296
486
  "bin": {
297
487
  "type": [
298
488
  "string",
@@ -450,7 +640,7 @@
450
640
  },
451
641
  "prepare": {
452
642
  "type": "string",
453
- "description": "Run both BEFORE the package is packed and published, and on local npm install without any arguments. This is run AFTER prepublish, but BEFORE prepublishOnly."
643
+ "description": "Runs BEFORE the package is packed, i.e. during \"npm publish\" and \"npm pack\", and on local \"npm install\" without any arguments. This is run AFTER \"prepublish\", but BEFORE \"prepublishOnly\"."
454
644
  },
455
645
  "prepublishOnly": {
456
646
  "type": "string",
@@ -557,29 +747,18 @@
557
747
  "$ref": "#/definitions/dependency"
558
748
  },
559
749
  "devDependencies": {
560
- "$ref": "#/definitions/dependency"
750
+ "$ref": "#/definitions/devDependency"
561
751
  },
562
752
  "optionalDependencies": {
563
- "$ref": "#/definitions/dependency"
753
+ "$ref": "#/definitions/optionalDependency"
564
754
  },
565
755
  "peerDependencies": {
566
- "$ref": "#/definitions/dependency"
756
+ "$ref": "#/definitions/peerDependency"
567
757
  },
568
758
  "peerDependenciesMeta": {
569
- "description": "When a user installs your package, warnings are emitted if packages specified in \"peerDependencies\" are not already installed. The \"peerDependenciesMeta\" field serves to provide more information on how your peer dependencies are utilized. Most commonly, it allows peer dependencies to be marked as optional. Metadata for this field is specified with a simple hash of the package name to a metadata object.",
570
- "type": "object",
571
- "additionalProperties": {
572
- "type": "object",
573
- "additionalProperties": true,
574
- "properties": {
575
- "optional": {
576
- "description": "Specifies that this peer dependency is optional and should not be installed automatically.",
577
- "type": "boolean"
578
- }
579
- }
580
- }
759
+ "$ref": "#/definitions/peerDependencyMeta"
581
760
  },
582
- "bundledDependencies": {
761
+ "bundleDependencies": {
583
762
  "description": "Array of package names that will be bundled when publishing the package.",
584
763
  "oneOf": [
585
764
  {
@@ -593,8 +772,8 @@
593
772
  }
594
773
  ]
595
774
  },
596
- "bundleDependencies": {
597
- "description": "DEPRECATED: This field is honored, but \"bundledDependencies\" is the correct field name.",
775
+ "bundledDependencies": {
776
+ "description": "DEPRECATED: This field is honored, but \"bundleDependencies\" is the correct field name.",
598
777
  "oneOf": [
599
778
  {
600
779
  "type": "array",
@@ -608,13 +787,17 @@
608
787
  ]
609
788
  },
610
789
  "resolutions": {
611
- "description": "Resolutions is used to support selective version resolutions, which lets you define custom package versions or ranges inside your dependencies. See: https://classic.yarnpkg.com/en/docs/selective-version-resolutions",
790
+ "description": "Resolutions is used to support selective version resolutions using yarn, which lets you define custom package versions or ranges inside your dependencies. For npm, use overrides instead. See: https://yarnpkg.com/configuration/manifest#resolutions",
791
+ "type": "object"
792
+ },
793
+ "overrides": {
794
+ "description": "Overrides is used to support selective version overrides using npm, which lets you define custom package versions or ranges inside your dependencies. For yarn, use resolutions instead. See: https://docs.npmjs.com/cli/v9/configuring-npm/package-json#overrides",
612
795
  "type": "object"
613
796
  },
614
797
  "packageManager": {
615
798
  "description": "Defines which package manager is expected to be used when working on the current project. This field is currently experimental and needs to be opted-in; see https://nodejs.org/api/corepack.html",
616
799
  "type": "string",
617
- "pattern": "(npm|pnpm|yarn)@\\d+\\.\\d+\\.\\d+(-.+)?"
800
+ "pattern": "(npm|pnpm|yarn|bun)@\\d+\\.\\d+\\.\\d+(-.+)?"
618
801
  },
619
802
  "engines": {
620
803
  "type": "object",
@@ -627,6 +810,21 @@
627
810
  "type": "string"
628
811
  }
629
812
  },
813
+ "volta": {
814
+ "description": "Defines which tools and versions are expected to be used when Volta is installed.",
815
+ "type": "object",
816
+ "properties": {
817
+ "extends": {
818
+ "description": "The value of that entry should be a path to another JSON file which also has a \"volta\" section",
819
+ "type": "string"
820
+ }
821
+ },
822
+ "patternProperties": {
823
+ "(node|npm|pnpm|yarn)": {
824
+ "type": "string"
825
+ }
826
+ }
827
+ },
630
828
  "engineStrict": {
631
829
  "type": "boolean"
632
830
  },
@@ -644,6 +842,82 @@
644
842
  "type": "string"
645
843
  }
646
844
  },
845
+ "devEngines": {
846
+ "description": "Define the runtime and package manager for developing the current project.",
847
+ "type": "object",
848
+ "properties": {
849
+ "os": {
850
+ "oneOf": [
851
+ {
852
+ "$ref": "#/definitions/devEngineDependency"
853
+ },
854
+ {
855
+ "type": "array",
856
+ "items": {
857
+ "$ref": "#/definitions/devEngineDependency"
858
+ }
859
+ }
860
+ ],
861
+ "description": "Specifies which operating systems are supported for development"
862
+ },
863
+ "cpu": {
864
+ "oneOf": [
865
+ {
866
+ "$ref": "#/definitions/devEngineDependency"
867
+ },
868
+ {
869
+ "type": "array",
870
+ "items": {
871
+ "$ref": "#/definitions/devEngineDependency"
872
+ }
873
+ }
874
+ ],
875
+ "description": "Specifies which CPU architectures are supported for development"
876
+ },
877
+ "libc": {
878
+ "oneOf": [
879
+ {
880
+ "$ref": "#/definitions/devEngineDependency"
881
+ },
882
+ {
883
+ "type": "array",
884
+ "items": {
885
+ "$ref": "#/definitions/devEngineDependency"
886
+ }
887
+ }
888
+ ],
889
+ "description": "Specifies which C standard libraries are supported for development"
890
+ },
891
+ "runtime": {
892
+ "oneOf": [
893
+ {
894
+ "$ref": "#/definitions/devEngineDependency"
895
+ },
896
+ {
897
+ "type": "array",
898
+ "items": {
899
+ "$ref": "#/definitions/devEngineDependency"
900
+ }
901
+ }
902
+ ],
903
+ "description": "Specifies which JavaScript runtimes (like Node.js, Deno, Bun) are supported for development. Values should use WinterCG Runtime Keys (see https://runtime-keys.proposal.wintercg.org/)"
904
+ },
905
+ "packageManager": {
906
+ "oneOf": [
907
+ {
908
+ "$ref": "#/definitions/devEngineDependency"
909
+ },
910
+ {
911
+ "type": "array",
912
+ "items": {
913
+ "$ref": "#/definitions/devEngineDependency"
914
+ }
915
+ }
916
+ ],
917
+ "description": "Specifies which package managers are supported for development"
918
+ }
919
+ }
920
+ },
647
921
  "preferGlobal": {
648
922
  "type": "boolean",
649
923
  "description": "DEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible."
@@ -678,6 +952,9 @@
678
952
  "registry": {
679
953
  "type": "string",
680
954
  "format": "uri"
955
+ },
956
+ "provenance": {
957
+ "type": "boolean"
681
958
  }
682
959
  },
683
960
  "additionalProperties": true
@@ -769,6 +1046,230 @@
769
1046
  },
770
1047
  "jscpd": {
771
1048
  "$ref": "https://json.schemastore.org/jscpd.json"
1049
+ },
1050
+ "pnpm": {
1051
+ "description": "Defines pnpm specific configuration.",
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "overrides": {
1055
+ "description": "Used to override any dependency in the dependency graph.",
1056
+ "type": "object"
1057
+ },
1058
+ "packageExtensions": {
1059
+ "description": "Used to extend the existing package definitions with additional information.",
1060
+ "type": "object",
1061
+ "patternProperties": {
1062
+ "^.+$": {
1063
+ "type": "object",
1064
+ "properties": {
1065
+ "dependencies": {
1066
+ "$ref": "#/definitions/dependency"
1067
+ },
1068
+ "optionalDependencies": {
1069
+ "$ref": "#/definitions/optionalDependency"
1070
+ },
1071
+ "peerDependencies": {
1072
+ "$ref": "#/definitions/peerDependency"
1073
+ },
1074
+ "peerDependenciesMeta": {
1075
+ "$ref": "#/definitions/peerDependencyMeta"
1076
+ }
1077
+ },
1078
+ "additionalProperties": false
1079
+ }
1080
+ },
1081
+ "additionalProperties": false
1082
+ },
1083
+ "peerDependencyRules": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "ignoreMissing": {
1087
+ "description": "pnpm will not print warnings about missing peer dependencies from this list.",
1088
+ "type": "array",
1089
+ "items": {
1090
+ "type": "string"
1091
+ }
1092
+ },
1093
+ "allowedVersions": {
1094
+ "description": "Unmet peer dependency warnings will not be printed for peer dependencies of the specified range.",
1095
+ "type": "object"
1096
+ },
1097
+ "allowAny": {
1098
+ "description": "Any peer dependency matching the pattern will be resolved from any version, regardless of the range specified in \"peerDependencies\".",
1099
+ "type": "array",
1100
+ "items": {
1101
+ "type": "string"
1102
+ }
1103
+ }
1104
+ },
1105
+ "additionalProperties": false
1106
+ },
1107
+ "neverBuiltDependencies": {
1108
+ "description": "A list of dependencies to run builds for.",
1109
+ "type": "array",
1110
+ "items": {
1111
+ "type": "string"
1112
+ }
1113
+ },
1114
+ "onlyBuiltDependencies": {
1115
+ "description": "A list of package names that are allowed to be executed during installation.",
1116
+ "type": "array",
1117
+ "items": {
1118
+ "type": "string"
1119
+ }
1120
+ },
1121
+ "onlyBuiltDependenciesFile": {
1122
+ "description": "Specifies a JSON file that lists the only packages permitted to run installation scripts during the pnpm install process.",
1123
+ "type": "string"
1124
+ },
1125
+ "ignoredBuiltDependencies": {
1126
+ "description": "A list of package names that should not be built during installation.",
1127
+ "type": "array",
1128
+ "items": {
1129
+ "type": "string"
1130
+ }
1131
+ },
1132
+ "allowedDeprecatedVersions": {
1133
+ "description": "A list of deprecated versions that the warnings are suppressed.",
1134
+ "type": "object"
1135
+ },
1136
+ "patchedDependencies": {
1137
+ "description": "A list of dependencies that are patched.",
1138
+ "type": "object"
1139
+ },
1140
+ "allowNonAppliedPatches": {
1141
+ "description": "When true, installation won't fail if some of the patches from the \"patchedDependencies\" field were not applied.",
1142
+ "type": "boolean"
1143
+ },
1144
+ "allowUnusedPatches": {
1145
+ "description": "When true, installation won't fail if some of the patches from the \"patchedDependencies\" field were not applied.",
1146
+ "type": "boolean"
1147
+ },
1148
+ "updateConfig": {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "ignoreDependencies": {
1152
+ "description": "A list of packages that should be ignored when running \"pnpm outdated\" or \"pnpm update --latest\".",
1153
+ "type": "array",
1154
+ "items": {
1155
+ "type": "string"
1156
+ }
1157
+ }
1158
+ },
1159
+ "additionalProperties": false
1160
+ },
1161
+ "configDependencies": {
1162
+ "type": "object",
1163
+ "description": "Configurational dependencies are installed before all the other types of dependencies (before 'dependencies', 'devDependencies', 'optionalDependencies')."
1164
+ },
1165
+ "auditConfig": {
1166
+ "type": "object",
1167
+ "properties": {
1168
+ "ignoreCves": {
1169
+ "description": "A list of CVE IDs that will be ignored by \"pnpm audit\".",
1170
+ "type": "array",
1171
+ "items": {
1172
+ "type": "string",
1173
+ "pattern": "^CVE-\\d{4}-\\d{4,7}$"
1174
+ }
1175
+ },
1176
+ "ignoreGhsas": {
1177
+ "description": "A list of GHSA Codes that will be ignored by \"pnpm audit\".",
1178
+ "type": "array",
1179
+ "items": {
1180
+ "type": "string",
1181
+ "pattern": "^GHSA(-[23456789cfghjmpqrvwx]{4}){3}$"
1182
+ }
1183
+ }
1184
+ },
1185
+ "additionalProperties": false
1186
+ },
1187
+ "requiredScripts": {
1188
+ "description": "A list of scripts that must exist in each project.",
1189
+ "type": "array",
1190
+ "items": {
1191
+ "type": "string"
1192
+ }
1193
+ },
1194
+ "supportedArchitectures": {
1195
+ "description": "Specifies architectures for which you'd like to install optional dependencies, even if they don't match the architecture of the system running the install.",
1196
+ "type": "object",
1197
+ "properties": {
1198
+ "os": {
1199
+ "type": "array",
1200
+ "items": {
1201
+ "type": "string"
1202
+ }
1203
+ },
1204
+ "cpu": {
1205
+ "type": "array",
1206
+ "items": {
1207
+ "type": "string"
1208
+ }
1209
+ },
1210
+ "libc": {
1211
+ "type": "array",
1212
+ "items": {
1213
+ "type": "string"
1214
+ }
1215
+ }
1216
+ },
1217
+ "additionalProperties": false
1218
+ },
1219
+ "ignoredOptionalDependencies": {
1220
+ "description": "A list of optional dependencies that the install should be skipped.",
1221
+ "type": "array",
1222
+ "items": {
1223
+ "type": "string"
1224
+ }
1225
+ },
1226
+ "executionEnv": {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "nodeVersion": {
1230
+ "description": "Specifies which exact Node.js version should be used for the project's runtime.",
1231
+ "type": "string"
1232
+ }
1233
+ },
1234
+ "additionalProperties": false
1235
+ }
1236
+ },
1237
+ "additionalProperties": false
1238
+ },
1239
+ "stackblitz": {
1240
+ "description": "Defines the StackBlitz configuration for the project.",
1241
+ "type": "object",
1242
+ "properties": {
1243
+ "installDependencies": {
1244
+ "description": "StackBlitz automatically installs npm dependencies when opening a project.",
1245
+ "type": "boolean"
1246
+ },
1247
+ "startCommand": {
1248
+ "description": "A terminal command to be executed when opening the project, after installing npm dependencies.",
1249
+ "type": [
1250
+ "string",
1251
+ "boolean"
1252
+ ]
1253
+ },
1254
+ "compileTrigger": {
1255
+ "description": "The compileTrigger option controls how file changes in the editor are written to the WebContainers in-memory filesystem. ",
1256
+ "oneOf": [
1257
+ {
1258
+ "type": "string",
1259
+ "enum": [
1260
+ "auto",
1261
+ "keystroke",
1262
+ "save"
1263
+ ]
1264
+ }
1265
+ ]
1266
+ },
1267
+ "env": {
1268
+ "description": "A map of default environment variables that will be set in each top-level shell process.",
1269
+ "type": "object"
1270
+ }
1271
+ },
1272
+ "additionalProperties": false
772
1273
  }
773
1274
  },
774
1275
  "anyOf": [
@@ -803,5 +1304,6 @@
803
1304
  "bundleDependencies"
804
1305
  ]
805
1306
  }
806
- ]
1307
+ ],
1308
+ "$id": "https://json.schemastore.org/package.json"
807
1309
  }