-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
87 lines (87 loc) · 2.9 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
{
"name": "use-global-state-react",
"version": "1.0.2",
"description": "Simple useGlobalState hook for react",
"license": "MIT",
"repository": "github:spiderpoul/use-global-state-react",
"bugs": "https://github.com/spiderpoul/use-global-state-react/issues",
"keywords": [
"state",
"predictable",
"functional",
"immutable",
"hot",
"react",
"hook",
"hooks",
"global hook",
"global hooks"
],
"authors": [
"Pavel Uvarov <spiderpoul@gmail.com> (https://github.com/spiderpoul)"
],
"main": "./lib/index.js",
"types": "./es/index.d.ts",
"unpkg": "dist/use-global-hook-react.js",
"module": "es/index.js",
"files": [
"dist",
"lib",
"src",
"es"
],
"scripts": {
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --extensions \".js,.ts,.tsx\" --out-dir lib",
"build:es": "babel src --extensions \".js,.ts,.tsx\" --out-dir es",
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/use-global-state-react.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/use-global-state-react.min.js",
"build:types": "tsc",
"build": "npm run build:types && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min",
"clean": "rimraf lib dist es coverage",
"api-types": "api-extractor run --local",
"format": "prettier --write \"{src,test}/**/*.{js,ts,tsx}\" \"docs/**/*.md\"",
"lint": "eslint src --ext ts,tsx,js test/utils test/components test/hooks",
"prepare": "npm run clean && npm run build",
"pretest": "npm run lint",
"test": "jest",
"type-tests": "npm run tsc -p test/typetests/tsconfig.json",
"coverage": "codecov"
},
"dependencies": {
"@babel/runtime": "^7.16.5",
"react": "^17.0.2"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-object-rest-spread": "^7.12.1",
"@babel/plugin-transform-react-display-name": "^7.12.1",
"@babel/plugin-transform-react-jsx": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.14.5",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/react": "^17.0.38",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.1",
"cross-env": "^7.0.2",
"eslint": "^7.12.0",
"eslint-config-prettier": "^6.14.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.21.5",
"glob": "^7.1.6",
"prettier": "^2.1.2",
"react": "^17.0.2",
"rimraf": "^3.0.2",
"rollup": "^2.32.1",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "26.5.6",
"typescript": "^4.3.4"
}
}