|
19 | 19 | }, |
20 | 20 | "license": "(MIT AND Apache-2.0)", |
21 | 21 | "author": "Dylan Vann <[email protected]> (https://dylanvann.com)", |
22 | | - "main": "src/index.js", |
23 | | - "types": "src/index.d.ts", |
| 22 | + "main": "dist/index.js", |
| 23 | + "module": "dist/react-native-fast-image.esm.js", |
| 24 | + "typings": "dist/index.d.ts", |
24 | 25 | "files": [ |
25 | 26 | "android", |
26 | 27 | "!android/build", |
27 | 28 | "ios", |
28 | 29 | "!ios/build", |
29 | | - "src", |
| 30 | + "dist", |
30 | 31 | "RNFastImage.podspec" |
31 | 32 | ], |
32 | 33 | "scripts": { |
33 | | - "build": "exit 0", |
| 34 | + "build": "tsdx build", |
34 | 35 | "commit": "git-cz", |
35 | 36 | "format": "yarn prettier --write", |
36 | | - "lint": "eslint src/**/*.js", |
37 | | - "prettier": "prettier './**/*.{js,d.ts,js.flow,yml}'", |
| 37 | + "lint": "eslint 'src/**/*.tsx'", |
| 38 | + "prettier": "prettier './src/**/*.{tsx,js.flow,yml}'", |
38 | 39 | "semantic-release": "semantic-release", |
39 | 40 | "test": "jest ./src/*.js" |
40 | 41 | }, |
|
59 | 60 | "@semantic-release/git": "^9.0.0", |
60 | 61 | "@semantic-release/npm": "^7.0.3", |
61 | 62 | "@semantic-release/release-notes-generator": "^9.0.1", |
| 63 | + "@types/react": "^16.9.23", |
| 64 | + "@types/react-native": "^0.61.17", |
62 | 65 | "babel-jest": "^24.9.0", |
63 | 66 | "commitizen": "^4.0.3", |
64 | 67 | "cz-conventional-changelog": "^3.1.0", |
|
75 | 78 | "react-native": "0.61.5", |
76 | 79 | "react-test-renderer": "16.9.0", |
77 | 80 | "semantic-release": "^17.0.4", |
| 81 | + "tsdx": "^0.12.3", |
78 | 82 | "typescript": "^3.8.3" |
79 | 83 | }, |
80 | 84 | "peerDependencies": { |
|
0 commit comments