|
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 |
| - "module": "./dist/react-portable-text.esm.js", |
26 |
| - "import": "./dist/react-portable-text.cjs.mjs" |
| 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": {
|
|
91 | 92 | "dist/**/"
|
92 | 93 | ]
|
93 | 94 | },
|
94 |
| - "tap": { |
95 |
| - "check-coverage": false, |
96 |
| - "node-arg": [ |
97 |
| - "-r", |
98 |
| - "esbuild-register" |
99 |
| - ] |
100 |
| - }, |
101 | 95 | "dependencies": {
|
102 | 96 | "@portabletext/toolkit": "^2.0.9",
|
103 | 97 | "@portabletext/types": "^2.0.7"
|
|
112 | 106 | "@types/react": "^18.2.23",
|
113 | 107 | "@types/react-dom": "^18.2.8",
|
114 | 108 | "@types/refractor": "^3.0.3",
|
115 |
| - "@types/tap": "^15.0.9", |
116 | 109 | "@types/ws": "^8.5.6",
|
117 | 110 | "@typescript-eslint/eslint-plugin": "^6.7.3",
|
118 | 111 | "@typescript-eslint/parser": "^6.7.3",
|
|
139 | 132 | "rimraf": "^5.0.1",
|
140 | 133 | "rollup-plugin-visualizer": "^5.9.2",
|
141 | 134 | "styled-components": "^6.0.8",
|
142 |
| - "tap": "^16.3.9", |
143 | 135 | "typescript": "^5.2.2",
|
144 |
| - "vite": "^4.4.9" |
| 136 | + "vite": "^4.4.9", |
| 137 | + "vitest": "^0.34.2" |
145 | 138 | },
|
146 | 139 | "peerDependencies": {
|
147 | 140 | "react": "^17 || ^18"
|
|
0 commit comments