UNPKG

441 BJavaScriptView Raw
1'use strict';
2
3const path = require('path');
4const utils = require('util');
5const resolve = utils.promisify(require('resolve'));
6
7module.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};