UNPKG

@bjoerge/mutiny

Version:

Tiny toolkit for working with Sanity mutations in JavaScript & TypeScript

124 lines 3.68 kB
{ "name": "@bjoerge/mutiny", "version": "0.7.1", "description": "Tiny toolkit for working with Sanity mutations in JavaScript & TypeScript", "keywords": [ "sanity", "mutations", "patch" ], "repository": { "type": "git", "url": "git+https://github.com/bjoerge/mutiny.git" }, "license": "MIT", "author": "Bjørge Næss <bjoerge@gmail.com>", "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.esm.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.21.1", "@sanity/diff-match-patch": "^3.1.1", "hotscript": "^1.0.13", "mendoza": "^3.0.7", "nanoid": "^5.0.7", "rxjs": "^7.8.1" }, "devDependencies": { "@sanity/pkg-utils": "^6.10.7", "@types/diff-match-patch": "^1.0.36", "@types/lodash": "^4.17.7", "@typescript-eslint/eslint-plugin": "^7.16.1", "@typescript-eslint/parser": "^7.16.1", "@vitest/coverage-v8": "^2.0.5", "@vitest/ui": "^2.0.5", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-react": "^7.34.4", "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^3.2.0", "lodash": "^4.17.21", "npm-run-all": "^4.1.5", "prettier": "^3.3.3", "prettier-plugin-packagejson": "^2.5.1", "rimraf": "^6.0.1", "tsx": "^4.16.5", "typescript": "^5.4.5", "vitest": "^2.0.5" }, "engines": { "node": ">=18" }, "scripts": { "build": "run-s clean pkg:build pkg:check", "clean": "rimraf dist", "format": "prettier --write --cache --ignore-unknown .", "pkg:build": "pkg build --strict", "pkg:check": "pkg check --strict", "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 . --ext .cjs,.js,.ts,.tsx", "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 pkg:build test", "dev": "run-p pkg:watch" } }