|
16 | 16 | "license": "MIT",
|
17 | 17 | "author": "Sanity.io <hello@sanity.io>",
|
18 | 18 | "sideEffects": false,
|
| 19 | + "type": "module", |
19 | 20 | "exports": {
|
20 | 21 | ".": {
|
21 |
| - "types": "./dist/react-portable-text.d.ts", |
| 22 | + "types": "./lib/index.d.ts", |
22 | 23 | "source": "./src/index.ts",
|
23 |
| - "require": "./dist/react-portable-text.js", |
| 24 | + "require": "./lib/index.cjs", |
24 | 25 | "node": {
|
25 |
| - "import": "./dist/react-portable-text.cjs.mjs", |
26 |
| - "require": "./dist/react-portable-text.js" |
| 26 | + "module": "./lib/index.js", |
| 27 | + "import": "./lib/index.cjs.js" |
27 | 28 | },
|
28 |
| - "import": "./dist/react-portable-text.esm.js", |
29 |
| - "default": "./dist/react-portable-text.esm.js" |
| 29 | + "import": "./lib/index.js", |
| 30 | + "default": "./lib/index.js" |
30 | 31 | },
|
31 | 32 | "./package.json": "./package.json"
|
32 | 33 | },
|
33 |
| - "main": "./dist/react-portable-text.js", |
34 |
| - "module": "./dist/react-portable-text.esm.js", |
| 34 | + "main": "./lib/index.cjs", |
| 35 | + "module": "./lib/index.js", |
35 | 36 | "source": "./src/index.ts",
|
36 |
| - "types": "./dist/react-portable-text.d.ts", |
| 37 | + "types": "./lib/index.d.ts", |
37 | 38 | "files": [
|
38 | 39 | "dist",
|
39 | 40 | "!dist/stats.html",
|
|
51 | 52 | "prepare": "husky install",
|
52 | 53 | "prepublishOnly": "run-s build lint type-check",
|
53 | 54 | "start": "vite demo",
|
54 |
| - "test": "tap test/*.test.*", |
| 55 | + "test": "vitest", |
55 | 56 | "type-check": "tsc --noEmit"
|
56 | 57 | },
|
57 | 58 | "commitlint": {
|
|
106 | 107 | ],
|
107 | 108 | "extends": "@sanity/semantic-release-preset"
|
108 | 109 | },
|
109 |
| - "tap": { |
110 |
| - "check-coverage": false, |
111 |
| - "node-arg": [ |
112 |
| - "-r", |
113 |
| - "esbuild-register" |
114 |
| - ] |
115 |
| - }, |
116 | 110 | "dependencies": {
|
117 | 111 | "@portabletext/toolkit": "^2.0.4",
|
118 | 112 | "@portabletext/types": "^2.0.5"
|
|
129 | 123 | "@types/react-dom": "^18.2.7",
|
130 | 124 | "@types/refractor": "^3.0.2",
|
131 | 125 | "@types/styled-components": "^5.1.26",
|
132 |
| - "@types/tap": "^15.0.8", |
133 | 126 | "@types/ws": "^8.5.5",
|
134 | 127 | "@typescript-eslint/eslint-plugin": "^5.62.0",
|
135 | 128 | "@typescript-eslint/parser": "^5.62.0",
|
|
157 | 150 | "rollup-plugin-visualizer": "^5.9.2",
|
158 | 151 | "semantic-release": "^21.0.9",
|
159 | 152 | "styled-components": "^5.3.11",
|
160 |
| - "tap": "^16.3.8", |
161 | 153 | "typescript": "^5.1.6",
|
162 |
| - "vite": "^4.4.9" |
| 154 | + "vite": "^4.4.9", |
| 155 | + "vitest": "^0.34.2" |
163 | 156 | },
|
164 | 157 | "peerDependencies": {
|
165 | 158 | "react": "^17 || ^18"
|
|
0 commit comments