ember-cli-addon-tests
ember-cli-addon-tests copied to clipboard
"Precooking" Node Modules only works if addon uses expected Ember CLI version
trafficstars
I'm not 100%ly sure how the script for precooking node modules should be used. I've run it from an addon that depends on ember-cli-addon-tests by executing node ./node_modules/ember-cli-addon-tests/scripts/precook-node-modules.js. In that case the script picks up ember-cli from the hosting addon not the configured here. If that doesn't equal the expected one, this results in an dependency error thrown by ember-cli-dependency-checker.
omg I just got burned by this 🙈
I guess the simplest thing to do here would be to warn people when running the precook script of this scenario 🤔