|
2 | 2 | "name": "react-native-testing-library",
|
3 | 3 | "version": "1.4.0",
|
4 | 4 | "description": "Simple React Native testing utilities helping you write better tests with less effort",
|
5 |
| - "main": "src/index.js", |
| 5 | + "main": "build/index.js", |
6 | 6 | "typings": "./typings/index.d.ts",
|
7 | 7 | "repository": "[email protected]:callstack/react-native-testing-library.git",
|
8 | 8 | "author": "Michał Pierzchała <[email protected]>",
|
9 | 9 | "license": "MIT",
|
10 | 10 | "private": false,
|
11 | 11 | "devDependencies": {
|
| 12 | + "@babel/cli": "^7.1.2", |
12 | 13 | "@babel/core": "^7.1.2",
|
13 | 14 | "@babel/runtime": "^7.1.2",
|
14 | 15 | "@callstack/eslint-config": "^3.0.0",
|
|
21 | 22 | "dedent": "^0.7.0",
|
22 | 23 | "eslint": "^5.6.1",
|
23 | 24 | "flow-bin": "^0.86.0",
|
| 25 | + "flow-copy-source": "^2.0.2", |
24 | 26 | "jest": "^23.6.0",
|
25 | 27 | "metro-react-native-babel-preset": "^0.49.0",
|
26 | 28 | "react": "16.6.1",
|
|
42 | 44 | "flow-check": "flow check",
|
43 | 45 | "typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*",
|
44 | 46 | "lint": "eslint src --cache",
|
45 |
| - "release": "release-it" |
| 47 | + "release": "release-it", |
| 48 | + "prepublish": "yarn build && yarn copy-flowtypes", |
| 49 | + "copy-flowtypes": "flow-copy-source --ignore __tests__/*.js src build", |
| 50 | + "build": "rm -rf build; babel src --out-dir build --presets=module:metro-react-native-babel-preset --ignore 'src/__tests__/*'" |
46 | 51 | },
|
47 | 52 | "jest": {
|
48 | 53 | "preset": "react-native"
|
|
0 commit comments