-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
65 lines (65 loc) · 1.74 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
{
"name": "react-use-focus-trap",
"version": "1.1.7",
"description": "A react hook to trap the focus within a reference",
"keywords": [
"react",
"modal",
"focus",
"trap",
"focus-trap",
"a11y",
"accessibility"
],
"source": "src/useFocusTrap.js",
"targets": {
"commonjs": {
"includeNodeModules": {
"react": false
},
"isLibrary": true,
"outputFormat": "commonjs"
},
"esm": {
"includeNodeModules": {
"react": false
},
"outputFormat": "esmodule",
"isLibrary": true
}
},
"type": "module",
"exports": {
".": {
"require": "./dist/commonjs/useFocusTrap.cjs",
"import": "./dist/esm/useFocusTrap.mjs"
}
},
"scripts": {
"test": "mocha -r jsdom-global/register",
"build": "parcel build && npm run fixFileNamesCjs && npm run fixFileNamesMjs",
"fixFileNamesCjs": "cd dist/commonjs && mv useFocusTrap.js useFocusTrap.cjs && mv useFocusTrap.js.map useFocusTrap.cjs.map",
"fixFileNamesMjs": "cd dist/esm && mv useFocusTrap.js useFocusTrap.mjs && mv useFocusTrap.js.map useFocusTrap.mjs.map",
"run:demo": "npm install && npm run build && npm link && cd demo && npm install && npm start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/activenode/use-focus-trap.git"
},
"author": "David Lorenz <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/activenode/use-focus-trap/issues"
},
"homepage": "https://github.com/activenode/use-focus-trap#readme",
"peerDependencies": {
"react": "^17.0.0"
},
"devDependencies": {
"jsdom": "^19.0.0",
"jsdom-global": "^3.0.2",
"mocha": "^9.1.3",
"parcel": "^2.7.0",
"react": "^17.0.2"
}
}