Skip to content

Commit 568309e

Browse files
committed
feat: include release-it by default
1 parent 9499582 commit 568309e

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

templates/library/$package.json

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,15 @@
1818
"typescript": "tsc --noEmit",
1919
"lint": "eslint --ext .js,.ts,.tsx .",
2020
"prepare": "bob build",
21+
"release": "release-it",
2122
"example": "yarn --cwd example",
2223
"bootstrap": "yarn example && yarn && cd example/ios && pod install"
2324
},
24-
"keywords": ["react-native", "ios", "android"],
25+
"keywords": [
26+
"react-native",
27+
"ios",
28+
"android"
29+
],
2530
"repository": "<%= repo %>",
2631
"author": "<%= author.name %> <<%= author.email %>> (<%= author.url %>)",
2732
"license": "MIT",
@@ -33,6 +38,7 @@
3338
"@commitlint/config-conventional": "^8.3.4",
3439
"@react-native-community/bob": "^<%= bob.version %>",
3540
"@react-native-community/eslint-config": "^0.0.7",
41+
"@release-it/conventional-changelog": "^1.1.0",
3642
"@types/jest": "^25.1.2",
3743
"@types/react": "^16.9.19",
3844
"@types/react-native": "0.61.10",
@@ -45,6 +51,7 @@
4551
"prettier": "^1.19.1",
4652
"react": "~16.9.0",
4753
"react-native": "~0.61.5",
54+
"release-it": "^12.6.3",
4855
"typescript": "^3.7.5"
4956
},
5057
"peerDependencies": {
@@ -53,7 +60,10 @@
5360
},
5461
"jest": {
5562
"preset": "react-native",
56-
"modulePathIgnorePatterns": ["<rootDir>/lib/"]
63+
"modulePathIgnorePatterns": [
64+
"<rootDir>/example/node_modules",
65+
"<rootDir>/lib/"
66+
]
5767
},
5868
"husky": {
5969
"hooks": {
@@ -62,7 +72,10 @@
6272
}
6373
},
6474
"eslintConfig": {
65-
"extends": ["@react-native-community", "prettier"],
75+
"extends": [
76+
"@react-native-community",
77+
"prettier"
78+
],
6679
"rules": {
6780
"prettier/prettier": [
6881
"error",
@@ -82,6 +95,23 @@
8295
"trailingComma": "es5",
8396
"useTabs": false
8497
},
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+
},
85115
"@react-native-community/bob": {
86116
"source": "src",
87117
"output": "lib",

0 commit comments

Comments
 (0)