Skip to content

Commit 9399936

Browse files
committed
chore: move husky, commitlint to root
1 parent 97dd46d commit 9399936

File tree

2 files changed

+27
-29
lines changed

2 files changed

+27
-29
lines changed

package.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,29 @@
1717
"url": "https://github.com/finkef/react-native-tailwind.macro/issues"
1818
},
1919
"homepage": "https://github.com/finkef/react-native-tailwind.macro#readme",
20-
"scripts": {}
20+
"scripts": {
21+
"release": "yarn workspace react-native-tailwind.macro release"
22+
},
23+
"devDependencies": {
24+
"@commitlint/config-conventional": "^11.0.0",
25+
"commitlint": "^11.0.0",
26+
"cz-conventional-changelog": "3.3.0",
27+
"husky": "^4.2.5"
28+
},
29+
"husky": {
30+
"hooks": {
31+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
32+
"pre-commit": "yarn workspace react-native-tailwind.macro lint && yarn workspace react-native-tailwind.macro typescript"
33+
}
34+
},
35+
"commitlint": {
36+
"extends": [
37+
"@commitlint/config-conventional"
38+
]
39+
},
40+
"config": {
41+
"commitizen": {
42+
"path": "./node_modules/cz-conventional-changelog"
43+
}
44+
}
2145
}

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

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
"files": [
1010
"src",
1111
"dist",
12-
"android",
13-
"ios",
14-
"cpp",
15-
"react-native-tailwind-macro.podspec",
16-
"!android/build",
17-
"!ios/build",
1812
"!**/__tests__",
1913
"!**/__fixtures__",
2014
"!**/__mocks__"
@@ -23,7 +17,7 @@
2317
"test": "jest",
2418
"typescript": "tsc --noEmit",
2519
"lint": "eslint \"**/*.{js,ts,tsx}\"",
26-
"release": "release-it",
20+
"release": "cp ../../README.md ./README.md && release-it",
2721
"clean": "rimraf ./dist",
2822
"build": "yarn build:module && yarn build:commonjs",
2923
"build:module": "tsc -p tsconfig.module.json",
@@ -52,7 +46,6 @@
5246
"twrnc": "2.1.0-beta.5"
5347
},
5448
"devDependencies": {
55-
"@commitlint/config-conventional": "^11.0.0",
5649
"@react-native-community/eslint-config": "^2.0.0",
5750
"@release-it/conventional-changelog": "^2.0.0",
5851
"@types/babel-plugin-macros": "^2.8.5",
@@ -62,13 +55,10 @@
6255
"@types/tailwindcss": "^2.2.4",
6356
"babel-plugin-module-resolver": "^4.1.0",
6457
"babel-plugin-tester": "^10.1.0",
65-
"commitlint": "^11.0.0",
66-
"cz-conventional-changelog": "3.3.0",
6758
"eslint": "^7.2.0",
6859
"eslint-config-prettier": "^7.0.0",
6960
"eslint-plugin-prettier": "^3.1.3",
7061
"glob-all": "^3.2.1",
71-
"husky": "^4.2.5",
7262
"jest": "^26.0.1",
7363
"jest-react-native": "^18.0.0",
7464
"pod-install": "^0.1.0",
@@ -94,17 +84,6 @@
9484
],
9585
"resolver": "./jest-twrnc-resolver.js"
9686
},
97-
"husky": {
98-
"hooks": {
99-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
100-
"pre-commit": "yarn lint && yarn typescript"
101-
}
102-
},
103-
"commitlint": {
104-
"extends": [
105-
"@commitlint/config-conventional"
106-
]
107-
},
10887
"release-it": {
10988
"git": {
11089
"commitMessage": "chore: release ${version}",
@@ -145,7 +124,7 @@
145124
},
146125
"eslintIgnore": [
147126
"node_modules/",
148-
"lib/",
127+
"dist/",
149128
"src/__tests__/__fixtures__"
150129
],
151130
"prettier": {
@@ -155,10 +134,5 @@
155134
"trailingComma": "es5",
156135
"useTabs": false,
157136
"semi": false
158-
},
159-
"config": {
160-
"commitizen": {
161-
"path": "./node_modules/cz-conventional-changelog"
162-
}
163137
}
164138
}

0 commit comments

Comments
 (0)