UNPKG

@sanity/mutate

Version:

Experimental toolkit for working with Sanity mutations in JavaScript & TypeScript

128 lines 3.71 kB
{ "name": "@sanity/mutate", "version": "0.12.3", "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": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "require": "./dist/index.cjs", "default": "./dist/index.js" }, "./path": { "source": "./src/_path.ts", "import": "./dist/_path.js", "require": "./dist/_path.cjs", "default": "./dist/_path.js" }, "./_unstable_store": { "source": "./src/_unstable_store.ts", "import": "./dist/_unstable_store.js", "require": "./dist/_unstable_store.cjs", "default": "./dist/_unstable_store.js" }, "./_unstable_apply": { "source": "./src/_unstable_apply.ts", "import": "./dist/_unstable_apply.js", "require": "./dist/_unstable_apply.cjs", "default": "./dist/_unstable_apply.js" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "typesVersions": { "*": { "path": [ "./dist/_path.d.ts" ], "_unstable_apply": [ "./dist/_unstable_apply.d.ts" ], "_unstable_store": [ "./dist/_unstable_store.d.ts" ] } }, "files": [ "dist", "test", "README.md", "package.json" ], "browserslist": "extends @sanity/browserslist-config", "dependencies": { "@sanity/client": "^6.24.1", "@sanity/diff-match-patch": "^3.1.1", "@sanity/uuid": "^3.0.2", "hotscript": "^1.0.13", "lodash": "^4.17.21", "mendoza": "^3.0.8", "nanoid": "^5.0.9", "rxjs": "^7.8.1" }, "devDependencies": { "@eslint/js": "^9.17.0", "@sanity/pkg-utils": "^6.12.0", "@sanity/prettier-config": "^1.0.3", "@types/diff-match-patch": "^1.0.36", "@types/lodash": "^4.17.13", "@typescript-eslint/parser": "^8.18.1", "@vitest/coverage-v8": "^3.0.4", "@vitest/ui": "^3.0.4", "eslint": "^9.17.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^4.1.4", "npm-run-all2": "^7.0.2", "prettier": "^3.4.2", "rimraf": "^6.0.1", "tsx": "^4.19.2", "typescript": "^5.7.2", "typescript-eslint": "^8.18.1", "vitest": "^3.0.4" }, "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "scripts": { "build": "run-p pkg:build", "format": "prettier --write --cache --ignore-unknown .", "pkg:build": "pkg build --strict --check --clean", "pkg:watch": "pkg watch --strict", "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:web": "tsc --project examples/web/tsconfig.json", "lint": "eslint .", "test": "vitest run --typecheck", "test:watch": "vitest --typecheck", "test:ui": "vitest --ui", "coverage": "vitest run --coverage", "example:web": "pnpm --filter example-web run dev", "check": "run-s typecheck typecheck:examples pkg:build test", "dev": "run-p pkg:watch" } }