forked from peternewnham/react-html-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
74 lines (74 loc) · 2.48 KB
/
package.json
File metadata and controls
74 lines (74 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"name": "@orrisroot/react-html-parser",
"version": "3.0.0",
"description": "Parse HTML into React components",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"umd:main": "dist/react-html-parser.min.js",
"unpkg": "dist/react-html-parser.min.js",
"jsdelivr": "dist/react-html-parser.min.js",
"source": "src/index.ts",
"scripts": {
"clean": "rimraf coverage dist lib",
"check": "npm run lint && npm run test",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "biome check .",
"lint:fix": "biome check --write .",
"format": "biome format --write .",
"build": "npm run build:lib && npm run build:umd:min && npm run build:umd",
"build:lib": "rimraf lib && tsc -p tsconfig.lib.json && tsc -p tsconfig.types.json",
"build:umd": "vite build --config vite.dev.ts",
"build:umd:min": "vite build --config vite.prod.ts",
"prerelease": "npm run clean && npm run check",
"release": "npm run build",
"postrelease": "git push --follow-tags && npm publish",
"release:patch": "npm version patch && npm run release",
"release:minor": "npm version minor && npm run release",
"release:major": "npm version major && npm run release",
"demo:clean": "rimraf demo/dist",
"demo:dev": "cd demo && npm run dev",
"demo:build": "cd demo && npm run build",
"demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:orrisroot/react-html-parser gh-pages --force",
"demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
},
"repository": {
"type": "git",
"url": "https://github.com/orrisroot/react-html-parser.git"
},
"keywords": [
"react",
"html",
"htmlparser",
"htmlparser2",
"inner html",
"dangerouslySetInnerHTML"
],
"author": "Peter Newnham",
"contributors": [
"Yoshihiro Okumura"
],
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "^2.4.15",
"@types/node": "^24.12.4",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.2",
"jsdom": "^29.1.1",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"rimraf": "^6.1.3",
"terser": "^5.47.1",
"typescript": "^6.0.3",
"vite": "^8.0.13",
"vitest": "^4.1.7"
},
"dependencies": {
"htmlparser2": "^12.0.0"
},
"peerDependencies": {
"react": "^19.0.0"
}
}