Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bug fix] Use `process.cwd()` instead of `__dirname` for current dir

  • Loading branch information...
commit 3d6bb7a5d2aed28394ba31fc7df1d5beaebdcc1e 1 parent a621689
@ben-lin ben-lin authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/thunder
View
5 bin/thunder
@@ -6,8 +6,9 @@ var cli = require( '../lib/cli' );
var args = process.argv.slice( 2 );
var command = args.shift();
-var input_dir = __dirname + '/templates/';
-var output_dir = __dirname + '/views/';
+var cwd = process.cwd();
+var input_dir = cwd + '/templates/';
+var output_dir = cwd + '/views/';
var use_requirejs = true;
args.forEach( function ( arg ){
Please sign in to comment.
Something went wrong with that request. Please try again.