-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 5.47 KB
/
Copy pathpackage.json
File metadata and controls
160 lines (160 loc) · 5.47 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"name": "react-native-global-state-hooks",
"version": "15.0.2",
"description": "This is a package to easily handling global-state across your react-native-components No-redux... The library now includes @react-native-async-storage/async-storage to persist your state across sessions... if you want to keep using the old version without async-storage or react-native dependencies just use version 5.0.15 or user react-hooks-global-states instead",
"main": "./bundle.js",
"types": "./index.d.ts",
"sideEffects": false,
"exports": {
".": {
"import": "./bundle.js",
"require": "./bundle.js",
"types": "./index.d.ts"
},
"./asyncStorageWrapper": {
"import": "./asyncStorageWrapper.js",
"require": "./asyncStorageWrapper.js",
"types": "./asyncStorageWrapper.d.ts"
},
"./createContext": {
"import": "./createContext.js",
"require": "./createContext.js",
"types": "./createContext.d.ts"
},
"./createGlobalState": {
"import": "./createGlobalState.js",
"require": "./createGlobalState.js",
"types": "./createGlobalState.d.ts"
},
"./GlobalStore": {
"import": "./GlobalStore.js",
"require": "./GlobalStore.js",
"types": "./GlobalStore.d.ts"
},
"./isRecord": {
"import": "./isRecord.js",
"require": "./isRecord.js",
"types": "./isRecord.d.ts"
},
"./shallowCompare": {
"import": "./shallowCompare.js",
"require": "./shallowCompare.js",
"types": "./shallowCompare.d.ts"
},
"./throwWrongKeyOnActionCollectionConfig": {
"import": "./throwWrongKeyOnActionCollectionConfig.js",
"require": "./throwWrongKeyOnActionCollectionConfig.js",
"types": "./throwWrongKeyOnActionCollectionConfig.d.ts"
}
},
"files": [
"*.js",
"*.d.ts"
],
"scripts": {
"format": "prettier --write . --log-level silent && yarn lint:fix",
"test": "yarn build && yarn jest",
"test:debug:no-watch": "node --inspect-brk node_modules/.bin/jest --no-watchman --runInBand",
"test:debug": "node --inspect-brk node_modules/.bin/jest --watch --runInBand",
"test:quick": "yarn test --no-coverage --maxWorkers=4 -c --no-watchman -u",
"test:coverage": "yarn test --maxWorkers=4 -c --colors --no-watchman --verbose --coverage",
"build": "yarn ts-check && yarn clean && webpack --config webpack.config.js",
"prepare": "yarn format && npm run build && yarn test:quick",
"version": "npm run format && yarn build && yarn jest && git add -A",
"postversion": "git push && git push --tags",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . --fix --max-warnings=0",
"clean": "find . -maxdepth 1 -type f \\( -name '*.js' -o -name '*.d.ts' \\) ! -name 'webpack.config.js' ! -name 'eslint.config.mts' -exec rm {} + && rm -rf coverage",
"ts-check": "tsc -p tsconfig.json --noEmit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/johnny-quesada-developer/react-native-global-state-hooks.git"
},
"keywords": [
"react",
"redux",
"state",
"useState",
"useContext",
"global-state",
"context",
"typescript",
"react-native",
"async-storage"
],
"author": "Johnny Quesada",
"license": "MIT",
"bugs": {
"url": "https://github.com/johnny-quesada-developer/react-native-global-state-hooks/issues"
},
"homepage": "https://github.com/johnny-quesada-developer/react-native-global-state-hooks#readme",
"devDependencies": {
"@babel/core": "^7.21.3",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-transform-modules-commonjs": "^7.21.2",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@eslint/js": "^9.39.1",
"@react-native-async-storage/async-storage": ">=1.17.11",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.11",
"@types/lodash": "^4.14.165",
"@types/react": "^18.0.38",
"@types/react-dom": "^18.0.11",
"@types/react-test-renderer": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1",
"babel-loader": "^9.1.2",
"clean-webpack-plugin": "^4.0.0",
"easy-cancelable-promise": "^1.0.2",
"eslint": "^9.39.1",
"eslint-config-airbnb": "^18.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.2.0",
"globals": "^16.5.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jiti": "^2.6.1",
"json-storage-formatter": "^3.0.2",
"prettier": "^3.6.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-native": ">=0.71.6",
"react-test-renderer": "^18.2.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.2",
"tslib": "^2.5.0",
"typescript": "^5.3.3",
"typescript-eslint": "^8.46.3",
"webpack": "^5.76.3",
"webpack-cli": "^5.0.1"
},
"peerDependencies": {
"@react-native-async-storage/async-storage": ">=1.17.11",
"json-storage-formatter": "^3.0.2",
"react": ">=18.0.0",
"react-native": ">=0.69.0"
},
"peerDependenciesMeta": {
"react": {
"optional": false
},
"react-native": {
"optional": false
},
"@react-native-async-storage/async-storage": {
"optional": true
},
"json-storage-formatter": {
"optional": false
}
},
"dependencies": {
"react-hooks-global-states": "^15.0.8"
}
}