UNPKG

@sanity/id-utils

Version:

Utilities for working with Sanity document IDs

99 lines 2.94 kB
{ "name": "@sanity/id-utils", "version": "1.0.0", "description": "Utilities for working with Sanity document IDs", "keywords": [ "sanity", "id", "drafts", "documents" ], "repository": { "type": "git", "url": "git+https://github.com/sanity-io/id-utils.git" }, "license": "MIT", "author": "Sanity.io <hello@sanity.io>", "contributors": [ "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" }, "./package.json": "./package.json" }, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "files": [ "dist", "README.md", "package.json" ], "browserslist": "extends @sanity/browserslist-config", "dependencies": { "@sanity/uuid": "^3.0.2", "lodash": "^4.17.21", "ts-brand": "^0.2.0" }, "devDependencies": { "@eslint/js": "^9.14.0", "@microsoft/api-documenter": "^7.25.21", "@microsoft/api-extractor": "^7.47.11", "@sanity/pkg-utils": "^6.11.9", "@sanity/prettier-config": "^1.0.3", "@sanity/types": "^3.63.0", "@types/diff-match-patch": "^1.0.36", "@types/eslint__js": "^8.42.3", "@types/lodash": "^4.17.13", "@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/parser": "^8.13.0", "@vitest/coverage-istanbul": "2.1.4", "@vitest/coverage-v8": "^2.1.4", "@vitest/ui": "^2.1.4", "eslint": "^9.14.0", "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-node": "^0.3.9", "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.1", "prettier": "^3.3.3", "rimraf": "^6.0.1", "tsx": "^4.19.2", "typescript": "^5.6.3", "typescript-eslint": "^8.13.0", "vitest": "^2.1.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/tsconfig.json", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "vitest run --typecheck", "test:watch": "vitest --typecheck", "test:ui": "vitest --ui", "coverage": "vitest run --coverage", "check": "run-s typecheck pkg:build test", "docs": "run-s build && api-extractor run --local && api-documenter markdown -i temp -o docs", "dev": "run-p pkg:watch" } }