-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 4.35 KB
/
package.json
File metadata and controls
120 lines (120 loc) · 4.35 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
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
113
114
115
116
117
118
119
120
{
"name": "@pokujs/react",
"version": "1.4.0",
"private": false,
"description": "React testing helpers and Poku plugin for DOM-backed component tests.",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./plugin": {
"types": "./dist/plugin.d.ts",
"import": "./dist/plugin.js"
},
"./react-testing": {
"types": "./dist/react-testing.d.ts",
"import": "./dist/react-testing.js"
}
},
"files": [
"dist"
],
"sideEffects": false,
"engines": {
"node": ">=20.x.x",
"bun": ">=1.x.x",
"deno": ">=2.x.x",
"typescript": ">=6.x.x"
},
"scripts": {
"test": "node --import=tsx run.test.ts",
"test:happy": "cross-env POKU_REACT_TEST_DOM=happy-dom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs",
"test:happy:none": "cross-env POKU_REACT_TEST_DOM=happy-dom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=none",
"test:happy:process": "cross-env POKU_REACT_TEST_DOM=happy-dom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=process",
"test:jsdom": "cross-env POKU_REACT_TEST_DOM=jsdom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs",
"test:jsdom:none": "cross-env POKU_REACT_TEST_DOM=jsdom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=none",
"test:jsdom:process": "cross-env POKU_REACT_TEST_DOM=jsdom node --import=tsx ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=process",
"test:bun": "bun run.test.ts",
"test:bun:none": "cross-env POKU_REACT_TEST_DOM=happy-dom bun ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=none && cross-env POKU_REACT_TEST_DOM=jsdom bun ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=none",
"test:bun:process": "cross-env POKU_REACT_TEST_DOM=happy-dom bun ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=process && cross-env POKU_REACT_TEST_DOM=jsdom bun ./node_modules/poku/lib/bin/index.js tests --showLogs --isolation=process",
"test:deno": "deno run -A run.test.ts",
"test:deno:none": "cross-env POKU_REACT_TEST_DOM=happy-dom deno run -A npm:poku tests --showLogs --isolation=none",
"test:deno:process": "cross-env POKU_REACT_TEST_DOM=happy-dom deno run -A npm:poku tests --showLogs --isolation=process",
"clean": "rimraf dist",
"build": "tsup src/index.ts src/plugin.ts src/react-testing.ts src/dom-setup-happy.ts src/dom-setup-jsdom.ts --format esm --dts --target node20 --sourcemap --clean --tsconfig tsconfig.tsup.json",
"typecheck": "tsc -p tsconfig.build.json --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "npm run typecheck",
"check": "npm run typecheck && npm test",
"prepack": "npm run build"
},
"keywords": [
"poku",
"react",
"testing",
"testing-library",
"happy-dom",
"jsdom"
],
"author": "Lojhan",
"repository": {
"type": "git",
"url": "git+https://github.com/pokujs/react.git"
},
"homepage": "https://github.com/pokujs/react#readme",
"bugs": {
"url": "https://github.com/pokujs/react/issues"
},
"license": "MIT",
"publishConfig": {
"access": "public",
"provenance": true
},
"dependencies": {
"@testing-library/dom": "^10.4.1"
},
"peerDependencies": {
"@happy-dom/global-registrator": ">=20",
"happy-dom": ">=20",
"jsdom": ">=22",
"poku": ">=4.1.0",
"react": ">=18",
"react-dom": ">=18"
},
"peerDependenciesMeta": {
"@happy-dom/global-registrator": {
"optional": true
},
"happy-dom": {
"optional": true
},
"jsdom": {
"optional": true
}
},
"devDependencies": {
"@happy-dom/global-registrator": "^20.8.9",
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
"@pokujs/dom": "^1.2.0",
"@types/jsdom": "^28.0.1",
"@types/node": "^25.5.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"cross-env": "^10.1.0",
"happy-dom": "^20.8.9",
"jsdom": "^26.1.0",
"poku": "4.2.0",
"prettier": "^3.6.2",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"rimraf": "^6.0.1",
"tsup": "^8.5.0",
"tsx": "^4.21.0",
"typescript": "^6.0.2"
}
}