UNPKG

@sanity/mutate

Version:

Experimental toolkit for working with Sanity mutations in JavaScript & TypeScript

106 lines 3.45 kB
{ "name": "@sanity/mutate", "version": "0.18.0", "description": "Experimental toolkit for working with Sanity mutations in JavaScript & TypeScript", "keywords": [ "sanity", "mutations", "patch" ], "repository": { "type": "git", "url": "git+https://github.com/sanity-io/mutate.git" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "contributors": [ "Bjørge Næss <bjoerge@gmail.com>", "Cody Olsen <stipsan@gmail.com> (https://github.com/stipsan)" ], "sideEffects": false, "type": "module", "exports": { ".": "./dist/index.js", "./path": "./dist/_path.js", "./_unstable_apply": "./dist/_unstable_apply.js", "./_unstable_machine": "./dist/_unstable_machine.js", "./_unstable_store": "./dist/_unstable_store.js", "./package.json": "./package.json" }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "test", "README.md", "package.json" ], "browserslist": "extends @sanity/browserslist-config", "dependencies": { "@isaacs/ttlcache": "^2.1.4", "@sanity/client": "^7.22.0", "@sanity/diff-match-patch": "^3.2.0", "@sanity/uuid": "^3.0.2", "hotscript": "^1.0.13", "lodash": "^4.18.1", "mendoza": "^3.0.8", "nanoid": "^5.1.11", "rxjs": "^7.8.2" }, "devDependencies": { "@eslint/js": "^10.0.1", "@sanity/pkg-utils": "^10.4.18", "@sanity/prettier-config": "^3.0.0", "@types/diff-match-patch": "^1.0.36", "@types/lodash": "^4.17.24", "@typescript-eslint/parser": "^8.59.2", "@vitest/coverage-v8": "^4.1.5", "@vitest/ui": "^4.1.5", "eslint": "^10.3.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-prettier": "^5.5.5", "eslint-plugin-simple-import-sort": "^13.0.0", "eslint-plugin-unused-imports": "^4.4.1", "lefthook": "^2.1.6", "npm-run-all2": "^8.0.4", "prettier": "^3.8.3", "prettier-plugin-packagejson": "^3.0.2", "rimraf": "^6.1.3", "std-env": "^4.1.0", "tsx": "^4.21.0", "typescript": "^6.0.3", "typescript-eslint": "^8.59.2", "vitest": "^4.1.5" }, "peerDependencies": { "xstate": "^5.19.0" }, "peerDependenciesMeta": { "xstate": { "optional": true } }, "scripts": { "build": "run-p pkg:build", "check": "run-s typecheck typecheck:examples pkg:build test", "coverage": "vitest run --coverage", "dev": "run-p pkg:watch", "docs:build": "pnpm --filter @sanity/mutate-docs run build", "docs:dev": "pnpm --filter @sanity/mutate-docs run dev", "docs:preview": "pnpm --filter @sanity/mutate-docs run preview", "example:visual-editing": "pnpm --filter example-visual-editing run dev", "example:web": "pnpm --filter example-web run dev", "format": "prettier --write --cache --ignore-unknown .", "lint": "eslint .", "pkg:build": "pkg build --strict --check --clean", "pkg:watch": "pkg watch --strict", "test": "vitest run --typecheck", "test:ui": "vitest --ui", "test:watch": "vitest --typecheck", "typecheck": "tsc --noEmit --emitDeclarationOnly false -p tsconfig.dist.json", "typecheck:examples": "run-p typecheck:examples:*", "typecheck:examples:ts": "tsc --project examples/ts/tsconfig.json", "typecheck:examples:visual-editing": "tsc --project examples/visual-editing/tsconfig.json", "typecheck:examples:web": "tsc --project examples/web/tsconfig.json" } }