repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: version 1.3.7
[e-mobility-charging-stations-simulator.git]
/
prepare.js
diff --git
a/prepare.js
b/prepare.js
index 8c299a6214bb5ff469ebc0d1cdf205829281f845..bf54524b32ad93a7b167b340fce78e32c201b2b9 100644
(file)
--- a/
prepare.js
+++ b/
prepare.js
@@
-1,10
+1,8
@@
-import { env } from 'node:process'
;
+import { env } from 'node:process'
-// eslint-disable-next-line n/no-unpublished-import
-import { install } from 'husky';
-
-const isCIEnvironment = env.CI !== undefined;
-const isCFEnvironment = env.VCAP_APPLICATION !== undefined;
+const isCIEnvironment = env.CI != null
+const isCFEnvironment = env.VCAP_APPLICATION != null
if (isCFEnvironment === false && isCIEnvironment === false) {
if (isCFEnvironment === false && isCIEnvironment === false) {
- install();
+ // eslint-disable-next-line n/no-unpublished-import
+ import('husky').then(husky => console.warn(husky.default()))
}
}