@portabletext/to-html
Version:
Render Portable Text to HTML
129 lines • 3.21 kB
JSON
{
"name": "@portabletext/to-html",
"version": "2.0.14",
"description": "Render Portable Text to HTML",
"keywords": [
"portable-text"
],
"homepage": "https://github.com/portabletext/to-html#readme",
"bugs": {
"url": "https://github.com/portabletext/to-html/issues"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/portabletext/to-html.git"
},
"license": "MIT",
"author": "Sanity.io <hello@sanity.io>",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"source": "./src/index.ts",
"import": "./dist/pt-to-html.mjs",
"require": "./dist/pt-to-html.js",
"default": "./dist/pt-to-html.js"
},
"./package.json": "./package.json"
},
"main": "./dist/pt-to-html.js",
"module": "./dist/pt-to-html.mjs",
"types": "./dist/pt-to-html.d.ts",
"files": [
"dist",
"!dist/stats.html",
"src",
"README.md"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*": [
"prettier --write --cache --ignore-unknown"
]
},
"browserslist": "extends @sanity/browserslist-config",
"prettier": {
"bracketSpacing": false,
"plugins": [
"prettier-plugin-packagejson"
],
"printWidth": 100,
"semi": false,
"singleQuote": true
},
"eslintConfig": {
"parserOptions": {
"ecmaFeatures": {
"modules": true
},
"ecmaVersion": 9,
"sourceType": "module"
},
"extends": [
"sanity",
"sanity/typescript",
"prettier"
],
"ignorePatterns": [
"dist/**/"
]
},
"tap": {
"check-coverage": false,
"node-arg": [
"-r",
"esbuild-register"
]
},
"dependencies": {
"@portabletext/toolkit": "^2.0.17",
"@portabletext/types": "^2.0.13"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@sanity/pkg-utils": "^6.8.18",
"@types/tap": "^15.0.11",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"esbuild": "^0.21.4",
"esbuild-register": "^3.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-sanity": "^7.1.2",
"husky": "^8.0.3",
"npm-run-all2": "^5.0.2",
"prettier": "^3.2.5",
"prettier-plugin-packagejson": "^2.5.0",
"rimraf": "^4.4.1",
"tap": "^16.3.10",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
},
"engines": {
"node": "^14.13.1 || >=16.0.0"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "run-s clean pkg:build pkg:check",
"clean": "rimraf .nyc_output dist coverage",
"coverage": "tap test/*.test.* --coverage-report=html",
"docs:build": "typedoc",
"format": "prettier --write --cache --ignore-unknown .",
"lint": "eslint .",
"pkg:build": "pkg-utils build --strict",
"pkg:check": "pkg-utils --strict",
"test": "tap test/*.test.*",
"type-check": "tsc --noEmit"
}
}