project-repl
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -247,3 +247,3 @@ let fs = require('fs'); | ||
// Alias this to the name of the module for clarity and convenience | ||
main = this._varNameForModule(this._pkg.name); | ||
main = this._varNameForModule(this._getProjectName()); | ||
g[main] = g[name]; | ||
@@ -291,2 +291,6 @@ | ||
_getProjectName() { | ||
return this._pkg.name || path.basename(path.resolve(this._dir)); | ||
} | ||
/** | ||
@@ -300,3 +304,3 @@ * Requires all files and logs the results in a sensible way | ||
let projectVersion = this._pkg.version || ''; | ||
let projectName = this._pkg.name || path.basename(path.resolve(this._dir)); | ||
let projectName = this._getProjectName(); | ||
let nodeVersion = process.version; | ||
@@ -303,0 +307,0 @@ console.log('// ' + projectName + ' v' + projectVersion + ' // node ' + nodeVersion); |
{ | ||
"name": "project-repl", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/expo/project-repl.git", |
14784
341