File tree Expand file tree Collapse file tree 3 files changed +316
-19
lines changed Expand file tree Collapse file tree 3 files changed +316
-19
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+
5
+ yarn run lint-staged
6
+ yarn run build
7
+ yarn run test
Original file line number Diff line number Diff line change 12
12
"author" :
" ri7nz <[email protected] >" ,
13
13
"license" : " MIT" ,
14
14
"homepage" : " https://rescript-chakra.vercel.app/" ,
15
+ "publishConfig" : {
16
+ "access" : " public"
17
+ },
15
18
"files" : [
16
19
" src/**/*.re" ,
17
20
" src/**/*.rei" ,
32
35
"semantic-release" : " semantic-release" ,
33
36
"ci" : " yarn install --immutable" ,
34
37
"pretest" : " yarn build" ,
35
- "test" : " jest"
38
+ "test" : " jest" ,
39
+ "postinstall" : " husky install" ,
40
+ "prepublishOnly" : " pinst --disable" ,
41
+ "postpublish" : " pinst --enable"
36
42
},
37
- "publishConfig" : {
38
- "access" : " public"
43
+ "jest" : {
44
+ "verbose" : true ,
45
+ "testPathIgnorePatterns" : [
46
+ " /node_modules/" ,
47
+ " /testUtils/"
48
+ ],
49
+ "coveragePathIgnorePatterns" : [
50
+ " /node_modules/" ,
51
+ " /testUtils/"
52
+ ]
53
+ },
54
+ "prettier" : {
55
+ "trailingComma" : " all"
56
+ },
57
+ "lint-staged" : {
58
+ "*.{md,json,js}" : [
59
+ " prettier --write"
60
+ ],
61
+ "*.{res,resi}" : [
62
+ " bsrefmt --in-place"
63
+ ]
39
64
},
40
65
"devDependencies" : {
41
66
"@glennsl/bs-jest" : " 0.7.0" ,
42
67
"@rescript/react" : " 0.10.3" ,
68
+ "husky" : " 7.0.2" ,
43
69
"jest" : " 26.6.3" ,
70
+ "lint-staged" : " 11.1.2" ,
71
+ "pinst" : " 2.1.6" ,
72
+ "prettier" : " 2.4.1" ,
44
73
"rescript" : " 9.1.4" ,
45
74
"semantic-release" : " 17.4.4" ,
46
75
"semantic-release-npm-github-publish" : " 1.4.0"
47
76
},
48
77
"peerDependencies" : {
49
78
"@chakra-ui/react" : " >=1.6.3" ,
50
79
"@rescript/react" : " 0.10.3"
51
- },
52
- "jest" : {
53
- "verbose" : true ,
54
- "testPathIgnorePatterns" : [
55
- " /node_modules/" ,
56
- " /testUtils/"
57
- ],
58
- "coveragePathIgnorePatterns" : [
59
- " /node_modules/" ,
60
- " /testUtils/"
61
- ]
62
80
}
63
81
}
You can’t perform that action at this time.
0 commit comments