File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Skip Husky install in production and CI
2+ if ( process . env . NODE_ENV === 'production' || process . env . CI === 'true' ) {
3+ process . exit ( 0 ) ;
4+ }
5+ const husky = ( await import ( 'husky' ) ) . default ;
6+ console . log ( husky ( ) ) ;
Load diff This file was deleted.
Original file line number Diff line number Diff line change 115115 "docker:test" : " npm run docker:cli -- test" ,
116116 "lint:fix" : " prettier . --write && eslint . --fix" ,
117117 "lint" : " prettier . --check && eslint ." ,
118- "postinstall" : " opencollective-postinstall && npx husky install " ,
119- "prepare" : " npm run build" ,
118+ "postinstall" : " opencollective-postinstall" ,
119+ "prepare" : " npm run build && node .husky/install.mjs " ,
120120 "prettier" : " prettier . --write" ,
121121 "pub:next" : " cross-env RELEASE_TAG=next sh build/release.sh" ,
122122 "pub" : " sh build/release.sh" ,
You can’t perform that action at this time.
0 commit comments