|
3 | 3 | "version": "0.0.130", |
4 | 4 | "description": "React Native for Web", |
5 | 5 | "main": "dist/index.js", |
| 6 | + "module": "dist/module.js", |
6 | 7 | "files": [ |
7 | 8 | "babel", |
8 | 9 | "dist", |
|
29 | 30 | "test": "flow && jest" |
30 | 31 | }, |
31 | 32 | "babel": { |
32 | | - "presets": [ |
33 | | - "react-native" |
34 | | - ], |
| 33 | + "presets": [ "react-native" ], |
35 | 34 | "plugins": [ |
36 | | - [ |
37 | | - "transform-react-remove-prop-types", |
38 | | - { |
39 | | - "mode": "wrap" |
40 | | - } |
41 | | - ] |
| 35 | + [ "transform-react-remove-prop-types", { "mode": "wrap" } ] |
42 | 36 | ] |
43 | 37 | }, |
44 | 38 | "jest": { |
45 | 39 | "testEnvironment": "jsdom", |
46 | 40 | "timers": "fake", |
47 | | - "snapshotSerializers": [ |
48 | | - "<rootDir>/node_modules/enzyme-to-json/serializer" |
49 | | - ] |
| 41 | + "setupFiles": [ "raf/polyfill" ], |
| 42 | + "setupTestFrameworkScriptFile": "<rootDir>/jest-setup-framework.js", |
| 43 | + "snapshotSerializers": [ "enzyme-to-json/serializer" ] |
50 | 44 | }, |
51 | 45 | "lint-staged": { |
52 | 46 | "**/*.js": [ |
|
59 | 53 | "animated": "^0.2.0", |
60 | 54 | "array-find-index": "^1.0.2", |
61 | 55 | "babel-runtime": "^6.26.0", |
62 | | - "create-react-class": "^15.6.0", |
| 56 | + "create-react-class": "^15.6.2", |
63 | 57 | "debounce": "1.0.2", |
64 | 58 | "deep-assign": "^2.0.0", |
65 | | - "fbjs": "^0.8.14", |
| 59 | + "fbjs": "^0.8.16", |
66 | 60 | "hyphenate-style-name": "^1.0.2", |
67 | 61 | "inline-style-prefixer": "^3.0.8", |
68 | 62 | "normalize-css-color": "^1.0.2", |
69 | | - "prop-types": "^15.5.10", |
| 63 | + "prop-types": "^15.6.0", |
70 | 64 | "react-timer-mixin": "^0.13.3" |
71 | 65 | }, |
72 | 66 | "devDependencies": { |
|
79 | 73 | "babel-preset-react-native": "^4.0.0", |
80 | 74 | "caniuse-api": "^2.0.0", |
81 | 75 | "del-cli": "^1.1.0", |
82 | | - "enzyme": "^2.9.1", |
83 | | - "enzyme-to-json": "^2.0.0", |
| 76 | + "enzyme": "^3.0.0", |
| 77 | + "enzyme-adapter-react-16": "^1.0.0", |
| 78 | + "enzyme-to-json": "next", |
84 | 79 | "eslint": "^4.6.1", |
85 | 80 | "eslint-config-prettier": "^2.4.0", |
86 | 81 | "eslint-plugin-promise": "^3.5.0", |
|
90 | 85 | "jest": "^21.1.0", |
91 | 86 | "lint-staged": "^4.1.3", |
92 | 87 | "prettier": "^1.7.0", |
93 | | - "react": "^15.6.1", |
94 | | - "react-dom": "^15.6.1", |
95 | | - "react-test-renderer": "^15.6.1", |
| 88 | + "raf": "^3.3.2", |
| 89 | + "react": "^16.0.0", |
| 90 | + "react-dom": "^16.0.0", |
| 91 | + "react-test-renderer": "^16.0.0", |
96 | 92 | "url-loader": "^0.5.9", |
97 | 93 | "webpack": "^3.6.0", |
98 | 94 | "webpack-bundle-analyzer": "^2.9.0" |
99 | 95 | }, |
100 | 96 | "peerDependencies": { |
101 | | - "react": "15.4.x || 15.5.x || 15.6.x", |
102 | | - "react-dom": "15.4.x || 15.5.x || 15.6.x" |
| 97 | + "react": "16.x.x", |
| 98 | + "react-dom": "16.x.x" |
103 | 99 | }, |
104 | 100 | "author": "Nicolas Gallagher", |
105 | 101 | "license": "BSD-3-Clause", |
|
0 commit comments