refactor: cleanup husky install implementation
[benchmarks-js.git] / prepare.mjs
1 import { env } from 'node:process'
2
3 const isCIEnvironment = env.CI != null
4 if (isCIEnvironment === false) {
5 // eslint-disable-next-line n/no-unpublished-import
6 import('husky')
7 .then(({ install }) => {
8 return install()
9 })
10 .catch(console.error)
11 }