X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=prepare.js;h=6160cf597883cf75183a7b6e72e015fc2121ccd0;hb=78202038ffd2aca15aa97f45bc66ba42f40f2ec4;hp=6673200f5676a4b008f4f8be48dcbad822fbe9ad;hpb=2aa2a8df7efc101413c780938bf5d4c02ea4a525;p=e-mobility-charging-stations-simulator.git diff --git a/prepare.js b/prepare.js index 6673200f..6160cf59 100644 --- a/prepare.js +++ b/prepare.js @@ -1,8 +1,6 @@ -// eslint-disable-next-line no-undefined -const isCi = process.env.CI !== undefined; -// eslint-disable-next-line no-undefined -const isCloudFoundry = process.env.VCAP_APPLICATION !== undefined; -if (!isCloudFoundry && !isCi) { - // eslint-disable-next-line node/no-unpublished-require +const isCIEnvironment = process.env.CI !== undefined; +const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined; +if (isCFEnvironment === false && isCIEnvironment === false) { + // eslint-disable-next-line n/no-unpublished-require require('husky').install(); }