forked from LegendApp/legend-state
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
181 lines (181 loc) · 6.71 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "@legendapp/state",
"version": "2.1.13",
"description": "legend-state",
"sideEffects": false,
"private": true,
"main": "./index.js",
"module": "./index.mjs",
"types": "./index.d.ts",
"files": [
"**"
],
"engines": {
"node": ">=16.6.0",
"npm": ">=8.11.0"
},
"scripts": {
"clean": "rimraf dist",
"prebuild": "npm run clean",
"build": "npm run lint:check && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript && cp README.md dist/README.md && cp CHANGELOG.md dist/CHANGELOG.md && cp LICENSE dist/LICENSE && mkdir \"dist/types\" && cp src/types/* dist/types/ && rm -rf dist/tests && rm dist/*.tsbuildinfo && rm dist/rollup.config.d.ts",
"postbuild": "node postbuild.mjs",
"test": "jest",
"postversion": "npm run build && git push --follow-tags",
"jestclear": "jest --clearCache",
"publish:betarelease": "npm version prerelease --preid=beta && cd dist && npm publish --tag beta",
"publish:manual": "npm run build && cd dist && npm publish",
"publish:minor": "npm version minor && cd dist && npm publish",
"publish:nextrelease": "npm version prerelease --preid=next && cd dist && npm publish --tag next",
"publish:patch": "npm version patch && cd dist && npm publish",
"publish:premajor": "npm version premajor --preid=next && cd dist && npm publish --tag next",
"publish:preminor": "npm version preminor --preid=next && cd dist && npm publish --tag next",
"publish:prepatch": "npm version prepatch --preid=next && cd dist && npm publish --tag next",
"publish:rcrelease": "npm version prerelease --preid=rc && cd dist && npm publish --tag rc",
"checksize:core": "npx esbuild ./testbundles/bundlecore.js --bundle --outfile=temp-built.js --minify && gzip temp-built.js && stat -f%z ./temp-built.js.gz && rm temp-built.js.*",
"checksize:react": "npx esbuild ./testbundles/bundlereact.js --bundle --outfile=temp-built.js --minify --external:react --external:@legendapp/state && gzip temp-built.js && stat -f%z ./temp-built.js.gz && rm temp-built.js.*",
"checksize": "npm run checksize:core && npm run checksize:react",
"lint:write": "eslint ./src ./tests --fix --ext .ts,.tsx",
"lint:check": "eslint ./src ./tests --ext .ts,.tsx",
"format:write": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\"",
"release": "release-it"
},
"exports": {
"./package.json": "./package.json",
".": {
"import": "./index.mjs",
"require": "./index.js",
"types": "./index.d.ts"
},
"./persist": {
"import": "./persist.mjs",
"require": "./persist.js",
"types": "./persist.d.ts"
},
"./react": {
"import": "./react.mjs",
"require": "./react.js",
"types": "./react.d.ts"
},
"./trace": {
"import": "./trace.mjs",
"require": "./trace.js",
"types": "./trace.d.ts"
},
"./history": {
"import": "./history.mjs",
"require": "./history.js",
"types": "./history.d.ts"
},
"./config/*": {
"import": "./config/*.mjs",
"require": "./config/*.js",
"types": "./config/*.d.ts"
},
"./helpers/*": {
"import": "./helpers/*.mjs",
"require": "./helpers/*.js",
"types": "./helpers/*.d.ts"
},
"./persist-plugins/*": {
"import": "./persist-plugins/*.mjs",
"require": "./persist-plugins/*.js",
"types": "./persist-plugins/*.d.ts"
},
"./react-hooks/*": {
"import": "./react-hooks/*.mjs",
"require": "./react-hooks/*.js",
"types": "./react-hooks/*.d.ts"
},
"./types/babel": {
"types": "./types/babel.d.ts"
},
"./babel": "./babel.js"
},
"devDependencies": {
"@babel/types": "^7.20.2",
"@commitlint/config-conventional": "^17.4.4",
"@evilmartians/lefthook": "^1.3.3",
"@jest/globals": "^29.6.1",
"@react-native-async-storage/async-storage": "^1.19.3",
"@release-it/conventional-changelog": "^5.1.1",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^9.0.2",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.3.14",
"@tanstack/react-query": "^4.14.6",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.3",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/react-native": "^0.70.6",
"@types/use-sync-external-store": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"babel-jest": "^29.4.1",
"babel-plugin-tester": "^11.0.4",
"commitlint": "^17.4.4",
"eslint": "^8.45.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fake-indexeddb": "^4.0.0",
"firebase": "^10.3.0",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"json": "^11.0.0",
"next": "^13",
"prettier": "^3.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "^0.70.5",
"react-native-mmkv": "^2.5.1",
"react-test-renderer": "^18.2.0",
"release-it": "^15.7.0",
"rimraf": "^3.0.2",
"rollup": "^3.2.5",
"ts-jest": "^29.1.2",
"tslib": "^2.4.1",
"typescript": "^5.3.2"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"overrides": {
"react": "18.2.0"
},
"author": "Legend <[email protected]> (https://github.com/LegendApp)",
"keywords": [
"react",
"react-native",
"state",
"hooks",
"proxy"
],
"repository": {
"type": "git",
"url": "git+https://github.com/LegendApp/legend-state.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/LegendApp/legend-state/issues"
},
"homepage": "https://github.com/LegendApp/legend-state#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"dependencies": {
"use-sync-external-store": "^1.2.0"
}
}