Skip to content

Commit dc38ae3

Browse files
committed
chore: update release-it config
1 parent 9399936 commit dc38ae3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packages/react-native-tailwind.macro/package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-tailwind.macro",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Babel macro for writing Tailwind styles in React Native (+ Web)",
55
"main": "dist/cjs",
66
"module": "dist",
@@ -17,7 +17,7 @@
1717
"test": "jest",
1818
"typescript": "tsc --noEmit",
1919
"lint": "eslint \"**/*.{js,ts,tsx}\"",
20-
"release": "cp ../../README.md ./README.md && release-it",
20+
"release": "release-it",
2121
"clean": "rimraf ./dist",
2222
"build": "yarn build:module && yarn build:commonjs",
2323
"build:module": "tsc -p tsconfig.module.json",
@@ -99,6 +99,16 @@
9999
"@release-it/conventional-changelog": {
100100
"preset": "angular"
101101
}
102+
},
103+
"hooks": {
104+
"before:init": [
105+
"yarn lint",
106+
"yarn test"
107+
],
108+
"after:bump": [
109+
"yarn build",
110+
"cp ../../README.md ./README.md"
111+
]
102112
}
103113
},
104114
"eslintConfig": {

0 commit comments

Comments
 (0)