File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments