|
2 | 2 | "name": "@portabletext/to-html",
|
3 | 3 | "version": "1.0.4",
|
4 | 4 | "description": "Render Portable Text to HTML",
|
5 |
| - "main": "./dist/to-html.js", |
6 |
| - "module": "./dist/to-html.mjs", |
| 5 | + "keywords": [ |
| 6 | + "portable-text" |
| 7 | + ], |
| 8 | + "homepage": "https://github.com/portabletext/to-html#readme", |
| 9 | + "bugs": { |
| 10 | + "url": "https://github.com/portabletext/to-html/issues" |
| 11 | + }, |
| 12 | + "repository": { |
| 13 | + "type": "git", |
| 14 | + "url": "git+ssh://git@github.com/portabletext/to-html.git" |
| 15 | + }, |
| 16 | + "license": "MIT", |
| 17 | + "author": "Sanity.io <hello@sanity.io>", |
| 18 | + "sideEffects": false, |
7 | 19 | "exports": {
|
8 | 20 | ".": {
|
9 |
| - "import": "./dist/to-html.mjs", |
10 |
| - "require": "./dist/to-html.js" |
11 |
| - } |
| 21 | + "types": "./dist/pt-to-html.d.ts", |
| 22 | + "source": "./src/index.ts", |
| 23 | + "require": "./dist/pt-to-html.js", |
| 24 | + "node": { |
| 25 | + "import": "./dist/pt-to-html.cjs.mjs", |
| 26 | + "require": "./dist/pt-to-html.js" |
| 27 | + }, |
| 28 | + "import": "./dist/pt-to-html.esm.js", |
| 29 | + "default": "./dist/pt-to-html.esm.js" |
| 30 | + }, |
| 31 | + "./package.json": "./package.json" |
12 | 32 | },
|
13 |
| - "sideEffects": false, |
| 33 | + "main": "./dist/pt-to-html.js", |
| 34 | + "module": "./dist/pt-to-html.esm.js", |
| 35 | + "source": "./src/index.ts", |
| 36 | + "types": "./dist/pt-to-html.d.ts", |
14 | 37 | "files": [
|
15 | 38 | "dist",
|
16 | 39 | "!dist/stats.html",
|
17 | 40 | "src",
|
18 | 41 | "README.md"
|
19 | 42 | ],
|
20 | 43 | "scripts": {
|
21 |
| - "lint": "eslint . && tsc --noEmit", |
22 |
| - "prepublishOnly": "npm run build && npm run lint", |
23 |
| - "build": "vite build", |
| 44 | + "build": "run-s clean pkg:build pkg:check", |
| 45 | + "clean": "rimraf .nyc_output dist coverage", |
| 46 | + "coverage": "tap test/*.test.* --coverage-report=html", |
| 47 | + "docs:build": "typedoc", |
| 48 | + "format": "prettier --write --cache --ignore-unknown .", |
| 49 | + "lint": "eslint .", |
| 50 | + "pkg:build": "pkg-utils build --strict", |
| 51 | + "pkg:check": "pkg-utils --strict", |
| 52 | + "prepare": "husky install", |
| 53 | + "prepublishOnly": "run-s build lint type-check", |
24 | 54 | "test": "tap test/*.test.*",
|
25 |
| - "prettify": "prettier --write src/**/*.ts src/**/*.tsx test/**/*.ts test/**/*.tsx", |
26 |
| - "prettify-check": "prettier --check src/**/*.ts src/**/*.tsx test/**/*.ts test/**/*.tsx" |
27 |
| - }, |
28 |
| - "repository": { |
29 |
| - "type": "git", |
30 |
| - "url": "git+ssh://git@github.com/portabletext/to-html.git" |
31 |
| - }, |
32 |
| - "keywords": [ |
33 |
| - "portable-text" |
34 |
| - ], |
35 |
| - "author": "Sanity.io <hello@sanity.io>", |
36 |
| - "license": "MIT", |
37 |
| - "dependencies": { |
38 |
| - "@portabletext/toolkit": "^1.0.5", |
39 |
| - "@portabletext/types": "^1.0.2" |
| 55 | + "type-check": "tsc --noEmit" |
40 | 56 | },
|
41 |
| - "devDependencies": { |
42 |
| - "@rexxars/vite-dts": "^1.0.4", |
43 |
| - "@types/tap": "^15.0.5", |
44 |
| - "@typescript-eslint/eslint-plugin": "^5.7.0", |
45 |
| - "@typescript-eslint/parser": "^5.7.0", |
46 |
| - "esbuild-register": "^3.2.1", |
47 |
| - "eslint": "^7.32.0", |
48 |
| - "eslint-config-prettier": "^8.3.0", |
49 |
| - "eslint-config-sanity": "^5.1.0", |
50 |
| - "prettier": "^2.5.1", |
51 |
| - "rollup-plugin-visualizer": "^5.5.4", |
52 |
| - "tap": "^15.1.5", |
53 |
| - "typescript": "^4.5.4", |
54 |
| - "vite": "^2.7.4" |
| 57 | + "commitlint": { |
| 58 | + "extends": [ |
| 59 | + "@commitlint/config-conventional" |
| 60 | + ] |
55 | 61 | },
|
56 |
| - "bugs": { |
57 |
| - "url": "https://github.com/portabletext/to-html/issues" |
| 62 | + "lint-staged": { |
| 63 | + "*": [ |
| 64 | + "prettier --write --cache --ignore-unknown" |
| 65 | + ] |
58 | 66 | },
|
59 |
| - "homepage": "https://github.com/portabletext/to-html#readme", |
60 | 67 | "prettier": {
|
61 |
| - "semi": false, |
62 |
| - "printWidth": 100, |
63 | 68 | "bracketSpacing": false,
|
| 69 | + "plugins": [ |
| 70 | + "prettier-plugin-packagejson" |
| 71 | + ], |
| 72 | + "printWidth": 100, |
| 73 | + "semi": false, |
64 | 74 | "singleQuote": true
|
65 | 75 | },
|
66 | 76 | "eslintConfig": {
|
67 | 77 | "parserOptions": {
|
68 |
| - "ecmaVersion": 9, |
69 |
| - "sourceType": "module", |
70 | 78 | "ecmaFeatures": {
|
71 | 79 | "modules": true
|
72 |
| - } |
| 80 | + }, |
| 81 | + "ecmaVersion": 9, |
| 82 | + "sourceType": "module" |
73 | 83 | },
|
74 | 84 | "extends": [
|
75 | 85 | "sanity",
|
76 | 86 | "sanity/typescript",
|
77 | 87 | "prettier"
|
78 | 88 | ],
|
79 | 89 | "ignorePatterns": [
|
80 |
| - "lib/**/" |
| 90 | + "dist/**/" |
81 | 91 | ]
|
82 | 92 | },
|
| 93 | + "release": { |
| 94 | + "branches": [ |
| 95 | + "+([0-9])?(.{+([0-9]),x}).x", |
| 96 | + "main", |
| 97 | + { |
| 98 | + "name": "beta", |
| 99 | + "prerelease": true |
| 100 | + }, |
| 101 | + { |
| 102 | + "name": "alpha", |
| 103 | + "prerelease": true |
| 104 | + } |
| 105 | + ], |
| 106 | + "extends": "@sanity/semantic-release-preset" |
| 107 | + }, |
83 | 108 | "tap": {
|
| 109 | + "check-coverage": false, |
84 | 110 | "node-arg": [
|
85 | 111 | "-r",
|
86 | 112 | "esbuild-register"
|
87 |
| - ], |
88 |
| - "check-coverage": false |
| 113 | + ] |
| 114 | + }, |
| 115 | + "dependencies": { |
| 116 | + "@portabletext/toolkit": "^2.0.1", |
| 117 | + "@portabletext/types": "^2.0.2" |
| 118 | + }, |
| 119 | + "devDependencies": { |
| 120 | + "@babel/core": "^7.20.12", |
| 121 | + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", |
| 122 | + "@commitlint/cli": "^17.4.2", |
| 123 | + "@commitlint/config-conventional": "^17.4.2", |
| 124 | + "@sanity/pkg-utils": "^2.2.3", |
| 125 | + "@sanity/semantic-release-preset": "^4.0.0", |
| 126 | + "@types/tap": "^15.0.7", |
| 127 | + "@typescript-eslint/eslint-plugin": "^5.11.0", |
| 128 | + "@typescript-eslint/parser": "^5.11.0", |
| 129 | + "commitizen": "^4.3.0", |
| 130 | + "cz-conventional-changelog": "^3.3.0", |
| 131 | + "esbuild": "^0.17.5", |
| 132 | + "esbuild-register": "^3.4.2", |
| 133 | + "eslint": "^8.8.0", |
| 134 | + "eslint-config-prettier": "^8.3.0", |
| 135 | + "eslint-config-sanity": "^6.0.0", |
| 136 | + "husky": "^8.0.3", |
| 137 | + "npm-run-all": "^4.1.5", |
| 138 | + "prettier": "^2.5.1", |
| 139 | + "prettier-plugin-packagejson": "^2.4.2", |
| 140 | + "rimraf": "^4.1.2", |
| 141 | + "semantic-release": "^20.0.4", |
| 142 | + "tap": "^16.3.0", |
| 143 | + "typedoc": "^0.23.19", |
| 144 | + "typescript": "^4.9.4" |
| 145 | + }, |
| 146 | + "packageManager": "pnpm@7.26.2", |
| 147 | + "engines": { |
| 148 | + "node": "^14.13.1 || >=16.0.0" |
| 149 | + }, |
| 150 | + "publishConfig": { |
| 151 | + "access": "public" |
89 | 152 | }
|
90 | 153 | }
|
0 commit comments