1 | {
|
2 | "name": "recoil",
|
3 | "version": "0.0.11",
|
4 | "description": "Recoil - A state management library for React",
|
5 | "main": "cjs/recoil.js",
|
6 | "module": "es/recoil.js",
|
7 | "unpkg": "umd/recoil.js",
|
8 | "files": [
|
9 | "umd",
|
10 | "es",
|
11 | "cjs",
|
12 | "index.d.ts"
|
13 | ],
|
14 | "repository": "https://github.com/facebookexperimental/recoil.git",
|
15 | "license": "MIT",
|
16 | "scripts": {
|
17 | "prepare": "install-peers",
|
18 | "build": "rollup -c && node scripts/postbuild.js",
|
19 | "test": "jest src/*",
|
20 | "format": "prettier --write \"./**/*.{js,md,json}\"",
|
21 | "flow": "flow --show-all-errors",
|
22 | "flow:restart": "flow stop && npm run flow",
|
23 | "test:typescript": "dtslint typescript",
|
24 | "lint": "eslint ."
|
25 | },
|
26 | "peerDependencies": {
|
27 | "react": "^16.13.1",
|
28 | "react-dom": "^16.13.1"
|
29 | },
|
30 | "devDependencies": {
|
31 | "@babel/core": "^7.9.6",
|
32 | "@babel/plugin-proposal-class-properties": "^7.8.3",
|
33 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
34 | "@babel/plugin-proposal-optional-chaining": "^7.9.0",
|
35 | "@babel/plugin-syntax-optional-chaining": "^7.8.3",
|
36 | "@babel/plugin-transform-flow-strip-types": "^7.9.0",
|
37 | "@babel/preset-flow": "^7.9.0",
|
38 | "@babel/preset-react": "^7.9.4",
|
39 | "@rollup/plugin-babel": "^5.0.0",
|
40 | "@rollup/plugin-commonjs": "^11.1.0",
|
41 | "@rollup/plugin-node-resolve": "^7.1.3",
|
42 | "@rollup/plugin-replace": "^2.3.2",
|
43 | "@types/react": "^16.9.35",
|
44 | "babel-eslint": "^10.1.0",
|
45 | "babel-jest": "^26.0.1",
|
46 | "babel-plugin-module-resolver": "^4.0.0",
|
47 | "babel-preset-fbjs": "^3.3.0",
|
48 | "dtslint": "^3.6.11",
|
49 | "eslint": "^7.2.0",
|
50 | "eslint-plugin-fb-www": "^0.0.1",
|
51 | "eslint-plugin-flowtype": "^5.1.3",
|
52 | "eslint-plugin-jest": "^23.13.2",
|
53 | "eslint-plugin-react": "^7.20.0",
|
54 | "flow-bin": "^0.126.1",
|
55 | "gen-flow-files": "^0.4.11",
|
56 | "husky": ">=4",
|
57 | "immutable": "^4.0.0-rc.12",
|
58 | "install-peers-cli": "^2.2.0",
|
59 | "jest-cli": "^26.0.1",
|
60 | "lint-staged": ">=10",
|
61 | "prettier": "^2.0.5",
|
62 | "promise-polyfill": "^8.1.3",
|
63 | "react": "^16.13.1",
|
64 | "react-dom": "^16.13.1",
|
65 | "rollup": "^2.10.0",
|
66 | "rollup-plugin-includepaths": "^0.2.3",
|
67 | "rollup-plugin-terser": "^5.3.0",
|
68 | "typescript": "^3.9.5"
|
69 | },
|
70 | "jest": {
|
71 | "timers": "fake",
|
72 | "globals": {
|
73 | "__DEV__": true
|
74 | },
|
75 | "testPathIgnorePatterns": [
|
76 | "/node_modules/",
|
77 | "src/hooks/__tests__/Recoil_PublicHooks-test.js",
|
78 | "src/hooks/__tests__/Recoil_useRecoilCallback-test.js",
|
79 | "src/recoil_values/__tests__/Recoil_atomFamily-test.js"
|
80 | ],
|
81 | "setupFiles": [
|
82 | "./setupJestMock.js"
|
83 | ]
|
84 | },
|
85 | "husky": {
|
86 | "hooks": {
|
87 | "pre-commit": "lint-staged"
|
88 | }
|
89 | },
|
90 | "lint-staged": {
|
91 | "*.{js,md,json}": "prettier --write",
|
92 | "*.{js}": "eslint --fix"
|
93 | }
|
94 | }
|