1 | ;
|
2 |
|
3 | const path = require('path');
|
4 | const utils = require('util');
|
5 | const resolve = utils.promisify(require('resolve'));
|
6 |
|
7 | module.exports = async function (root) {
|
8 | /* Find ember-cli's entry point module relative to
|
9 | the current projects root */
|
10 | let emberPath = await resolve('ember-cli', { basedir: root });
|
11 |
|
12 | // Return the path to the ember command script
|
13 | return path.join(emberPath, '..', '..', '..', 'bin', 'ember');
|
14 | };
|