Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
},
"scripts": {
"preinstall": "npx --yes only-allow pnpm",
- "prepare": "node prepare.js",
+ "prepare": "node prepare.mjs",
"benchmark:busy-wait": "node busy-wait.mjs",
"benchmark:empty-array": "node empty-array.mjs",
"benchmark:deep-clone-object": "node deep-clone-object.mjs",
+++ /dev/null
-const isCIEnvironment = process.env.CI != null
-if (isCIEnvironment === false) {
- // eslint-disable-next-line n/no-unpublished-require
- require('husky').install()
-}
--- /dev/null
+import { env } from 'node:process'
+// eslint-disable-next-line n/no-unpublished-import
+import { install } from 'husky'
+
+const isCIEnvironment = env.CI != null
+if (isCIEnvironment === false) {
+ install()
+}