|
21 | 21 | "format": "prettier --write 'src/**/*.js'",
|
22 | 22 | "prepublishOnly": "run-p flow build"
|
23 | 23 | },
|
| 24 | + "babel": { |
| 25 | + "presets": [ |
| 26 | + "@babel/preset-flow", |
| 27 | + "@babel/preset-react", |
| 28 | + [ |
| 29 | + "@babel/preset-env", |
| 30 | + { |
| 31 | + "loose": true, |
| 32 | + "modules": "commonjs" |
| 33 | + } |
| 34 | + ] |
| 35 | + ], |
| 36 | + "plugins": [ |
| 37 | + [ |
| 38 | + "@babel/plugin-proposal-class-properties", |
| 39 | + { |
| 40 | + "loose": true |
| 41 | + } |
| 42 | + ], |
| 43 | + "babel-plugin-macros" |
| 44 | + ] |
| 45 | + }, |
24 | 46 | "husky": {
|
25 | 47 | "hooks": {
|
26 | 48 | "pre-commit": "lint-staged"
|
27 | 49 | }
|
28 | 50 | },
|
29 | 51 | "lint-staged": {
|
30 | 52 | "src/**/*.js": [
|
31 |
| - "prettier --write", |
32 |
| - "git add" |
| 53 | + "prettier --write" |
33 | 54 | ]
|
34 | 55 | },
|
35 | 56 | "peerDependencies": {
|
36 | 57 | "react": ">=0.14.9"
|
37 | 58 | },
|
38 | 59 | "devDependencies": {
|
39 |
| - "@babel/core": "^7.9.0", |
40 |
| - "@babel/plugin-proposal-class-properties": "^7.8.3", |
41 |
| - "@babel/plugin-transform-flow-strip-types": "^7.9.0", |
42 |
| - "@babel/plugin-transform-object-assign": "^7.8.3", |
43 |
| - "@babel/plugin-transform-react-jsx": "^7.9.4", |
44 |
| - "@babel/preset-env": "^7.9.5", |
45 |
| - "@babel/preset-flow": "^7.9.0", |
46 |
| - "@babel/preset-react": "^7.9.4", |
47 |
| - "@testing-library/react": "^10.0.3", |
| 60 | + "@babel/core": "^7.12.17", |
| 61 | + "@babel/plugin-proposal-class-properties": "^7.12.13", |
| 62 | + "@babel/plugin-transform-flow-strip-types": "^7.12.13", |
| 63 | + "@babel/plugin-transform-object-assign": "^7.12.13", |
| 64 | + "@babel/plugin-transform-react-jsx": "^7.12.17", |
| 65 | + "@babel/preset-env": "^7.12.17", |
| 66 | + "@babel/preset-flow": "^7.12.13", |
| 67 | + "@babel/preset-react": "^7.12.13", |
| 68 | + "@rollup/plugin-babel": "^5.3.0", |
| 69 | + "@rollup/plugin-buble": "^0.21.3", |
| 70 | + "@rollup/plugin-commonjs": "^17.1.0", |
| 71 | + "@rollup/plugin-node-resolve": "^11.2.0", |
| 72 | + "@testing-library/react": "^11.2.5", |
48 | 73 | "babel-core": "^7.0.0-bridge.0",
|
49 |
| - "babel-jest": "^25.4.0", |
50 |
| - "babel-plugin-macros": "^2.8.0", |
51 |
| - "codegen.macro": "^4.0.0", |
52 |
| - "flow-bin": "^0.123.0", |
53 |
| - "globby": "^11.0.0", |
| 74 | + "babel-jest": "^26.6.3", |
| 75 | + "babel-plugin-macros": "^3.0.1", |
| 76 | + "codegen.macro": "^4.1.0", |
| 77 | + "flow-bin": "^0.145.0", |
| 78 | + "globby": "^11.0.2", |
54 | 79 | "husky": "^4.2.5",
|
55 |
| - "jest": "^25.4.0", |
56 |
| - "lint-staged": "^10.1.7", |
| 80 | + "jest": "^26.6.3", |
| 81 | + "lint-staged": "^10.5.4", |
57 | 82 | "npm-run-all": "^4.1.5",
|
58 |
| - "prettier": "^2.0.5", |
59 |
| - "prismjs": "^1.20.0", |
60 |
| - "react": "^16.13.1", |
61 |
| - "react-dom": "^16.13.1", |
62 |
| - "rollup": "^2.7.2", |
63 |
| - "rollup-plugin-babel": "^4.4.0", |
64 |
| - "rollup-plugin-buble": "^0.19.8", |
65 |
| - "rollup-plugin-commonjs": "^10.1.0", |
66 |
| - "rollup-plugin-node-resolve": "^5.2.0", |
67 |
| - "rollup-plugin-replace": "^2.2.0" |
| 83 | + "prettier": "^2.2.1", |
| 84 | + "prismjs": "^1.23.0", |
| 85 | + "react": "^17.0.1", |
| 86 | + "react-dom": "^17.0.1", |
| 87 | + "rollup": "^2.39.0" |
68 | 88 | }
|
69 | 89 | }
|
0 commit comments