-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
79 lines (79 loc) · 2.45 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
{
"name": "use-pubsub-js",
"version": "1.0.7",
"description": "A service and hooks for React to publish or subscribe",
"author": "AZagatti",
"license": "MIT",
"repository": "reactivando/use-pubsub-js",
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"jsnext:main": "dist/index.es.js",
"engines": {
"node": ">=8",
"npm": ">=5"
},
"scripts": {
"test": "cross-env CI=1 react-scripts test --env=jsdom",
"test:watch": "react-scripts test --env=jsdom",
"build": "rollup -c && tsc -d --emitDeclarationOnly --noEmit false --declarationDir dist",
"start": "rollup -c -w",
"prepare": "yarn run build && husky install",
"predeploy": "cd example && yarn install && yarn run build",
"deploy": "gh-pages -d example/build",
"format": "prettier --write \"src/**/*.ts\" \"example/src/**/*.js\"",
"lint": "eslint",
"prepublishOnly": "yarn test && yarn run lint",
"preversion": "yarn run lint",
"version": "yarn run format && git add -A src",
"postversion": "git push && git push --tags"
},
"dependencies": {
"@types/pubsub-js": "^1.8.2",
"pubsub-js": "^1.9.3"
},
"peerDependencies": {
"@types/pubsub-js": "^1.8.2",
"pubsub-js": "^1.9.3",
"react": ">17.0.2"
},
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/runtime": "^7.14.0",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
"@rollup/plugin-url": "^6.0.0",
"@testing-library/react-hooks": "^7.0.0",
"@types/jest": "^26.0.23",
"@types/react": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"cross-env": "^7.0.3",
"eslint": "^7.27.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"gh-pages": "^3.2.0",
"husky": "^6.0.0",
"lint-staged": "^11.0.0",
"prettier": "^2.3.0",
"pubsub-js": "^1.9.3",
"react": "^17.0.2",
"react-scripts": "^4.0.3",
"react-test-renderer": "^17.0.2",
"rollup": "^2.50.5",
"rollup-plugin-peer-deps-external": "^2.2.0",
"tslib": "^2.0.1",
"typescript": "^4.3.2"
},
"lint-staged": {
"*.{js,json,jsx,ts,tsx}": [
"eslint",
"prettier --check"
]
}
}