Skip to content

Commit

Permalink
Support a public schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hamlim committed May 16, 2024
1 parent 2fc8b3a commit d675f03
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions apps/docs/public/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://one-version.vercel.app/schema.json",
"title": "One Version Configuration",
"description": "The configuration for the one-version NPM package",
"type": "object",
"properties": {
"packageManager": {
"type": "string",
"enum": ["bun", "yarn-berry", "yarn-classic", "pnpm", "npm"],
"description": "The package manager to use. Defaults to detecting based on the presence of a lockfile."
},
"overrides": {
"type": "object",
"patternProperties": {
"^[a-zA-Z0-9@/._-]+$": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"additionalProperties": false,
"description": "A mapping of dependencies and which workspaces are allowed to use different versions."
}
},
"required": ["packageManager"],
"additionalProperties": false
}
4 changes: 4 additions & 0 deletions one-version.config.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "./apps/docs/public/schema.json",
"packageManager": "bun"
}

0 comments on commit d675f03

Please sign in to comment.