Excluse .js.map when scanning models/ directory
This commit is contained in:
parent
62be8e11e2
commit
0c2388548a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue