-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
112 lines (112 loc) · 2.87 KB
/
package.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "react-from-dom",
"version": "0.7.3",
"description": "Convert HTML/XML source code or DOM nodes to React elements",
"author": "Gil Barbara <gilbarbara@gmail.com>",
"keywords": [
"string",
"DOM",
"converter",
"react",
"component",
"dangerouslySetInnerHTML"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/gilbarbara/react-from-dom.git"
},
"bugs": {
"url": "https://github.com/gilbarbara/react-from-dom/issues"
},
"homepage": "https://github.com/gilbarbara/react-from-dom#readme",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"files": [
"dist",
"src"
],
"types": "dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.0",
"@gilbarbara/eslint-config": "^0.7.4",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@size-limit/preset-small-lib": "^11.0.2",
"@swc/core": "^1.4.5",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@types/node": "^20.11.25",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-v8": "^1.3.1",
"del-cli": "^5.1.0",
"husky": "^9.0.11",
"is-ci-cli": "^2.2.0",
"jest-extended": "^4.0.2",
"jsdom": "^24.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"repo-tools": "^0.3.1",
"size-limit": "^11.0.2",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
},
"scripts": {
"build": "npm run clean && tsup",
"watch": "tsup --watch",
"clean": "del dist/*",
"lint": "eslint --fix src test",
"test": "is-ci \"test:coverage\" \"test:watch\"",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"typecheck": "tsc",
"typevalidation": "attw -P",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"validate": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run size && npm run typevalidation",
"size": "size-limit",
"prepublishOnly": "npm run validate",
"prepare": "husky"
},
"tsup": {
"dts": true,
"entry": [
"src/index.ts"
],
"format": [
"cjs",
"esm"
],
"sourcemap": true,
"splitting": false
},
"eslintConfig": {
"extends": [
"@gilbarbara/eslint-config"
]
},
"prettier": "@gilbarbara/prettier-config",
"size-limit": [
{
"name": "commonjs",
"path": "./dist/index.js",
"limit": "5 kB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"limit": "5 kB"
}
]
}