[Toolkit] Rework the "dependencies" Recipe JSON schema #3076
+300
−494
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following #3073 (comment)
before:
after:
This pull request refactors the dependency structure for all
shadcn
kit manifest files and updates theschema-kit-recipe-v1.json
schema to match. The main goal is to simplify and standardize how dependencies are declared, moving from an array of objects to a categorized object of arrays. This makes dependencies easier to read, maintain, and process programmatically.Manifest dependency refactor:
manifest.json
files undersrc/Toolkit/kits/shadcn/
now declare dependencies as an object with keys likecomposer
,npm
,importmap
, andrecipe
, each mapping to an array of package names. This replaces the previous verbose array-of-objects format. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]Schema update:
src/Toolkit/schema-kit-recipe-v1.json
schema is updated to reflect the new dependency format. Thedependencies
property is now an object with keys for each dependency type, each containing an array of strings. The schema also removes thetype
property and theexamples-dir
property, and updates descriptions for clarity.These changes ensure consistency across all kit manifests and make the schema and manifests easier to extend and validate in the future.