@portabletext/block-tools
Version:
Can format HTML, Slate JSON or Sanity block array into any other format.
74 lines • 1.94 kB
JSON
{
"name": "@portabletext/block-tools",
"version": "1.1.17",
"description": "Can format HTML, Slate JSON or Sanity block array into any other format.",
"keywords": [
"portable-text",
"block-tools"
],
"homepage": "https://www.sanity.io/",
"bugs": {
"url": "https://github.com/portabletext/editor/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/portabletext/editor.git",
"directory": "packages/block-tools"
},
"license": "MIT",
"author": "Sanity.io <hello@sanity.io>",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"source": "./src/index.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib",
"src"
],
"dependencies": {
"get-random-values-esm": "1.0.2",
"lodash": "^4.17.21"
},
"devDependencies": {
"@sanity/pkg-utils": "^7.2.2",
"@sanity/schema": "^3.83.0",
"@sanity/types": "^3.83.0",
"@types/jsdom": "^20.0.0",
"@types/lodash": "^4.17.16",
"@types/react": "^19.1.0",
"@vercel/stega": "0.1.2",
"@vitest/coverage-v8": "^3.1.1",
"jsdom": "^26.0.0",
"typescript": "^5.8.3",
"vitest": "^3.1.1"
},
"peerDependencies": {
"@sanity/types": "^3.83.0",
"@types/react": "18 || 19"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "pkg-utils build --strict --check --clean",
"check:lint": "biome lint .",
"check:types": "tsc",
"clean": "del .turbo && del lib && del node_modules",
"dev": "pkg-utils watch",
"lint:fix": "biome lint --write .",
"test": "vitest --run",
"test:watch": "vitest",
"test:unit": "vitest --run --project unit",
"test:unit:watch": "vitest --project unit"
}
}