ee-project
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,5 +0,5 @@ | ||
var fs = require( "fs" ) | ||
, childProcess = require( "child_process" ) | ||
, file = process.argv[ 1 ].indexOf( ".js" ) >= 0 ? process.argv[ 1 ] : process.argv[ 1 ] + ".js" | ||
, file = fs.existsSync( process.argv[ 1 ].indexOf( ".js" ) >= 0 ? process.argv[ 1 ] : process.argv[ 1 ] + ".js" ) ? process.argv[ 1 ] + ".js" : process.argv[ 1 ] | ||
, isDir = fs.existsSync( file ) && fs.statSync( file ).isDirectory() | ||
@@ -9,2 +9,3 @@ , path = ( isDir ? file : file.substr( 0, process.argv[ 1 ].lastIndexOf( "/" ) ) ) + "/"; | ||
var Class = require( "ee-class" ); | ||
@@ -11,0 +12,0 @@ |
{ | ||
"name": "ee-project" | ||
, "description": "determines the projects root path, loads a config.js if present, exports them" | ||
, "version": "0.1.4" | ||
, "version": "0.1.5" | ||
, "homepage": "https://github.com/eventEmitter/ee-project" | ||
@@ -6,0 +6,0 @@ , "licence": "MIT" |
2686