quaertym / ember-cli-dependency-checker

Ember CLI addon for checking missing node and bower dependencies before running ember commands
MIT License
40 stars 38 forks source link

Skip dependency check on `ember init` #124

Closed gnclmorais closed 2 years ago

gnclmorais commented 2 years ago

This pull request addresses https://github.com/ember-cli/ember-cli/issues/6277, trying to look into the process.argv passed to the Node process to evaluate if we’re looking into an ember init execution. Feedback welcome!

As a bonus, in order to get a green CI, I had to remove Node 6 from the versions we test again, since this seems to happen otherwise:

$> node -v
v6.17.1

$> yarn install --frozen-lockfile --non-interactive
yarn install v1.22.17
[1/5] πŸ”  Validating package.json...
[2/5] πŸ”  Resolving packages...
[3/5] 🚚  Fetching packages...
error supports-color@7.2.0: The engine "node" is incompatible with this module. Expected version ">=8". Got "6.17.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Node.js 6.x (β€œBoron”), which has been maintained as a long-term stable (LTS) release line since fall of 2016, is reaching its scheduled end-of-life (EOL) on April 30, 2019. β€” source