UNPKG

east

Version:

node.js database migration tool for mongodb, sqlite, postgres, mysql, couchbase

10 lines (8 loc) 258 B
const pathExists = require('path-exists'); module.exports = function isDirExists(migrationType = 'executable') { return Promise.resolve() .then(() => { const {dir} = this._getMigrationFileTypeParams(migrationType); return pathExists(dir); }); };