UNPKG

@sanity/schema

Version:

- **`Schema`** A collection of types - **`Type`** A specification of a data structure. Available through schema lookup. - **`Member type`** A member type is a type contained by a schema type. For example, an array may specify the allowed item types by def

84 lines 2.13 kB
{ "name": "@sanity/schema", "version": "5.1.0", "description": "", "keywords": [ "sanity", "cms", "headless", "realtime", "content", "schema" ], "homepage": "https://www.sanity.io/", "bugs": { "url": "https://github.com/sanity-io/sanity/issues" }, "repository": { "type": "git", "url": "git+https://github.com/sanity-io/sanity.git", "directory": "packages/@sanity/schema" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "sideEffects": false, "type": "module", "exports": { ".": { "source": "./src/_exports/index.ts", "default": "./lib/index.js" }, "./_internal": { "source": "./src/_exports/_internal.ts", "default": "./lib/_internal.js" }, "./package.json": "./package.json" }, "main": "./lib/index.js", "types": "./lib/index.d.ts", "typesVersions": { "*": { "_internal": [ "./lib/_internal.d.ts" ] } }, "files": [ "lib" ], "dependencies": { "@sanity/descriptors": "^1.2.1", "@sanity/generate-help-url": "^3.0.1", "arrify": "^2.0.1", "groq-js": "^1.24.0", "humanize-list": "^1.0.1", "leven": "^3.1.0", "lodash-es": "^4.17.21", "object-inspect": "^1.13.4", "@sanity/types": "5.1.0" }, "devDependencies": { "@sanity/icons": "^3.7.4", "@sanity/pkg-utils": "^10.2.1", "@types/lodash-es": "^4.17.12", "@types/object-inspect": "^1.13.0", "@types/react": "^19.2.7", "@typescript/native-preview": "7.0.0-dev.20251128.1", "eslint": "^9.39.2", "rimraf": "^5.0.10", "vitest": "^3.2.4", "@repo/package.config": "5.1.0", "@repo/test-config": "5.1.0", "@repo/tsconfig": "5.1.0", "@repo/eslint-config": "5.1.0" }, "scripts": { "build": "pnpm clean && pkg-utils build --strict --check --clean", "check:types": "(cd ../../.. && tsgo --project packages/@sanity/schema/tsconfig.lib.json --erasableSyntaxOnly)", "clean": "rimraf _internal.js lib", "lint": "eslint .", "test": "vitest run", "test:watch": "vitest watch", "watch": "pkg-utils watch" } }