Skip to content

Commit 9395905

Browse files
refactor: centralize package.json ingestion
1 parent 9ad9f02 commit 9395905

File tree

13 files changed

+1290
-181
lines changed

13 files changed

+1290
-181
lines changed

dist/schemas/modules.stage.4.schema.json

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,121 @@
102102
"type": "string"
103103
}
104104
}
105+
},
106+
{
107+
"$schema": "http://json-schema.org/draft-07/schema#",
108+
"title": "Module Package Manifest",
109+
"type": "object",
110+
"properties": {
111+
"packageJson": {
112+
"type": "object",
113+
"required": ["status"],
114+
"properties": {
115+
"status": {
116+
"type": "string",
117+
"enum": ["parsed", "missing", "error"]
118+
},
119+
"path": {
120+
"type": "string",
121+
"minLength": 1
122+
},
123+
"raw": {
124+
"type": "string"
125+
},
126+
"summary": {
127+
"type": "object",
128+
"properties": {
129+
"name": {
130+
"type": "string"
131+
},
132+
"version": {
133+
"type": "string"
134+
},
135+
"description": {
136+
"type": "string"
137+
},
138+
"license": {
139+
"type": "string"
140+
},
141+
"type": {
142+
"type": "string"
143+
},
144+
"keywords": {
145+
"type": "array",
146+
"items": {
147+
"type": "string"
148+
}
149+
},
150+
"scripts": {
151+
"type": "object",
152+
"patternProperties": {
153+
".*": {
154+
"type": "string"
155+
}
156+
},
157+
"additionalProperties": false
158+
},
159+
"dependencies": {
160+
"type": "object",
161+
"patternProperties": {
162+
".*": {
163+
"type": "string"
164+
}
165+
},
166+
"additionalProperties": false
167+
},
168+
"devDependencies": {
169+
"type": "object",
170+
"patternProperties": {
171+
".*": {
172+
"type": "string"
173+
}
174+
},
175+
"additionalProperties": false
176+
},
177+
"peerDependencies": {
178+
"type": "object",
179+
"patternProperties": {
180+
".*": {
181+
"type": "string"
182+
}
183+
},
184+
"additionalProperties": false
185+
},
186+
"optionalDependencies": {
187+
"type": "object",
188+
"patternProperties": {
189+
".*": {
190+
"type": "string"
191+
}
192+
},
193+
"additionalProperties": false
194+
},
195+
"engines": {
196+
"type": "object",
197+
"patternProperties": {
198+
".*": {
199+
"type": "string"
200+
}
201+
},
202+
"additionalProperties": false
203+
}
204+
},
205+
"additionalProperties": true
206+
},
207+
"warnings": {
208+
"type": "array",
209+
"items": {
210+
"type": "string"
211+
}
212+
},
213+
"error": {
214+
"type": "string"
215+
}
216+
},
217+
"additionalProperties": false
218+
}
219+
}
105220
}
106221
],
107222
"properties": {
@@ -171,6 +286,114 @@
171286
"type": "string",
172287
"minLength": 1
173288
}
289+
},
290+
"packageJson": {
291+
"type": "object",
292+
"required": ["status"],
293+
"properties": {
294+
"status": {
295+
"type": "string",
296+
"enum": ["parsed", "missing", "error"]
297+
},
298+
"path": {
299+
"type": "string",
300+
"minLength": 1
301+
},
302+
"raw": {
303+
"type": "string"
304+
},
305+
"summary": {
306+
"type": "object",
307+
"properties": {
308+
"name": {
309+
"type": "string"
310+
},
311+
"version": {
312+
"type": "string"
313+
},
314+
"description": {
315+
"type": "string"
316+
},
317+
"license": {
318+
"type": "string"
319+
},
320+
"type": {
321+
"type": "string"
322+
},
323+
"keywords": {
324+
"type": "array",
325+
"items": {
326+
"type": "string"
327+
}
328+
},
329+
"scripts": {
330+
"type": "object",
331+
"patternProperties": {
332+
".*": {
333+
"type": "string"
334+
}
335+
},
336+
"additionalProperties": false
337+
},
338+
"dependencies": {
339+
"type": "object",
340+
"patternProperties": {
341+
".*": {
342+
"type": "string"
343+
}
344+
},
345+
"additionalProperties": false
346+
},
347+
"devDependencies": {
348+
"type": "object",
349+
"patternProperties": {
350+
".*": {
351+
"type": "string"
352+
}
353+
},
354+
"additionalProperties": false
355+
},
356+
"peerDependencies": {
357+
"type": "object",
358+
"patternProperties": {
359+
".*": {
360+
"type": "string"
361+
}
362+
},
363+
"additionalProperties": false
364+
},
365+
"optionalDependencies": {
366+
"type": "object",
367+
"patternProperties": {
368+
".*": {
369+
"type": "string"
370+
}
371+
},
372+
"additionalProperties": false
373+
},
374+
"engines": {
375+
"type": "object",
376+
"patternProperties": {
377+
".*": {
378+
"type": "string"
379+
}
380+
},
381+
"additionalProperties": false
382+
}
383+
},
384+
"additionalProperties": true
385+
},
386+
"warnings": {
387+
"type": "array",
388+
"items": {
389+
"type": "string"
390+
}
391+
},
392+
"error": {
393+
"type": "string"
394+
}
395+
},
396+
"additionalProperties": false
174397
}
175398
},
176399
"additionalProperties": false

0 commit comments

Comments
 (0)