1
0
Fork 0

Excluse .js.map when scanning models/ directory

This commit is contained in:
Chocobozzz 2017-06-24 10:30:23 +02:00
parent 62be8e11e2
commit 0c2388548a

View file

@ -109,8 +109,9 @@ function getModelFiles (modelDirectory: string, callback: (err: Error, filePaths
if (err) throw err if (err) throw err
const directories = files.filter(function (directory) { const directories = files.filter(function (directory) {
// For all models but not utils.js // Find directories
if ( if (
directory.endsWith('.js.map') ||
directory === 'index.js' || directory === 'index.ts' || directory === 'index.js' || directory === 'index.ts' ||
directory === 'utils.js' || directory === 'utils.ts' directory === 'utils.js' || directory === 'utils.ts'
) return false ) return false