Skip to content

Commit 9ae7d27

Browse files
committed
chore(cli): move ember proxy to lib folder
1 parent ff92806 commit 9ae7d27

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

bin/wrenchjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ resolve('wrenchjs', {
1717
// library from a package.json. Instead, include it from a relative
1818
// path to this script file (which is likely a globally installed
1919
// npm package). Most common cause for hitting this is `ember new`
20-
cli = require('ember-cli/lib/cli');
20+
cli = require('../lib/cli');
2121
} else {
2222
// No error implies a projectLocalCli, which will load whatever
2323
// version of ember-cli you have installed in a local package.json
@@ -28,10 +28,6 @@ resolve('wrenchjs', {
2828
cliArgs: process.argv.slice(2),
2929
inputStream: process.stdin,
3030
outputStream: process.stdout,
31-
cli: {
32-
name: 'wrenchjs',
33-
projectRoot: path.join(__dirname, '..')
34-
}
3531
}).then(function(result) {
3632
var exitCode = typeof result === 'object' ? result.exitCode : result;
3733
exit(exitCode);

lib/cli/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var cli = require('ember-cli/lib/cli');
2+
var path = require('path');
3+
4+
module.exports = function (options) {
5+
options.cli = {
6+
name: 'wrenchjs',
7+
cliRoot: path.join(__dirname, '..', '..')
8+
};
9+
return cli(options);
10+
};

0 commit comments

Comments
 (0)