|
18 | 18 | "typescript": "tsc --noEmit",
|
19 | 19 | "lint": "eslint --ext .js,.ts,.tsx .",
|
20 | 20 | "prepare": "bob build",
|
| 21 | + "release": "release-it", |
21 | 22 | "example": "yarn --cwd example",
|
22 | 23 | "bootstrap": "yarn example && yarn && cd example/ios && pod install"
|
23 | 24 | },
|
24 |
| - "keywords": ["react-native", "ios", "android"], |
| 25 | + "keywords": [ |
| 26 | + "react-native", |
| 27 | + "ios", |
| 28 | + "android" |
| 29 | + ], |
25 | 30 | "repository": "<%= repo %>",
|
26 | 31 | "author": "<%= author.name %> <<%= author.email %>> (<%= author.url %>)",
|
27 | 32 | "license": "MIT",
|
|
33 | 38 | "@commitlint/config-conventional": "^8.3.4",
|
34 | 39 | "@react-native-community/bob": "^<%= bob.version %>",
|
35 | 40 | "@react-native-community/eslint-config": "^0.0.7",
|
| 41 | + "@release-it/conventional-changelog": "^1.1.0", |
36 | 42 | "@types/jest": "^25.1.2",
|
37 | 43 | "@types/react": "^16.9.19",
|
38 | 44 | "@types/react-native": "0.61.10",
|
|
45 | 51 | "prettier": "^1.19.1",
|
46 | 52 | "react": "~16.9.0",
|
47 | 53 | "react-native": "~0.61.5",
|
| 54 | + "release-it": "^12.6.3", |
48 | 55 | "typescript": "^3.7.5"
|
49 | 56 | },
|
50 | 57 | "peerDependencies": {
|
|
53 | 60 | },
|
54 | 61 | "jest": {
|
55 | 62 | "preset": "react-native",
|
56 |
| - "modulePathIgnorePatterns": ["<rootDir>/lib/"] |
| 63 | + "modulePathIgnorePatterns": [ |
| 64 | + "<rootDir>/example/node_modules", |
| 65 | + "<rootDir>/lib/" |
| 66 | + ] |
57 | 67 | },
|
58 | 68 | "husky": {
|
59 | 69 | "hooks": {
|
|
62 | 72 | }
|
63 | 73 | },
|
64 | 74 | "eslintConfig": {
|
65 |
| - "extends": ["@react-native-community", "prettier"], |
| 75 | + "extends": [ |
| 76 | + "@react-native-community", |
| 77 | + "prettier" |
| 78 | + ], |
66 | 79 | "rules": {
|
67 | 80 | "prettier/prettier": [
|
68 | 81 | "error",
|
|
82 | 95 | "trailingComma": "es5",
|
83 | 96 | "useTabs": false
|
84 | 97 | },
|
| 98 | + "release-it": { |
| 99 | + "git": { |
| 100 | + "commitMessage": "chore: release %s", |
| 101 | + "tagName": "v%s" |
| 102 | + }, |
| 103 | + "npm": { |
| 104 | + "publish": true |
| 105 | + }, |
| 106 | + "github": { |
| 107 | + "release": true |
| 108 | + }, |
| 109 | + "plugins": { |
| 110 | + "@release-it/conventional-changelog": { |
| 111 | + "preset": "angular" |
| 112 | + } |
| 113 | + } |
| 114 | + }, |
85 | 115 | "@react-native-community/bob": {
|
86 | 116 | "source": "src",
|
87 | 117 | "output": "lib",
|
|
0 commit comments