project-repl
Advanced tools
Comparing version 1.4.0 to 1.4.1
17
index.js
@@ -62,5 +62,9 @@ let fs = require('fs'); | ||
await this._getPackageJsonAsync(); | ||
this._opts = Object.assign({ | ||
populateGlobalWithMain: true, | ||
}, this._pkg, this._constructorOpts); | ||
this._opts = Object.assign( | ||
{ | ||
populateGlobalWithMain: true, | ||
}, | ||
this._pkg.repl, | ||
this._constructorOpts | ||
); | ||
this._ignore = this._getIgnores(); | ||
@@ -117,3 +121,5 @@ } | ||
_getIgnores() { | ||
let ignoreFiles = {}; | ||
let ignoreFiles = { | ||
__tests__: true, | ||
}; | ||
let ignoreModules = { | ||
@@ -184,2 +190,5 @@ 'project-repl': true, | ||
if (basename.endsWith('.js')) { | ||
if (basename.endsWith('.test.js')) { | ||
return true; | ||
} | ||
if (this._ignore.files[basename] || this._ignore.files[file]) { | ||
@@ -186,0 +195,0 @@ return true; |
{ | ||
"name": "project-repl", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/expo/project-repl.git", |
121806
308