Skip to content

Commit

Permalink
feat: add cmd to generate a JSON representation of schema (#5919)
Browse files Browse the repository at this point in the history
* feat: add cmd to generate a JSON representation of schema

* feat: refactor to use compiled schema

* fix: append _type to objects

* chore(schema): clean up and describe execution

* chore(schema): lock groq-js to minor canary
  • Loading branch information
sgulseth authored Mar 12, 2024
1 parent bf22266 commit c1e4f2a
Show file tree
Hide file tree
Showing 23 changed files with 6,444 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@sanity/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@
"@sanity/generate-help-url": "^3.0.0",
"@sanity/types": "3.32.0",
"arrify": "^1.0.1",
"groq-js": "^1.5.0-canary.1",
"humanize-list": "^1.0.1",
"leven": "^3.1.0",
"lodash": "^4.17.21",
"object-inspect": "^1.6.0"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@sanity/icons": "^2.8.0",
"rimraf": "^3.0.2"
}
}
1 change: 1 addition & 0 deletions packages/@sanity/schema/src/_exports/_internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export {
resolveSearchConfig,
resolveSearchConfigForBaseFieldPaths,
} from '../legacy/searchConfig/resolve'
export {extractSchema} from '../sanity/extractSchema'
export {groupProblems} from '../sanity/groupProblems'
export {
type _FIXME_ as FIXME,
Expand Down
Loading

0 comments on commit c1e4f2a

Please sign in to comment.