From dfb1754d7501ed78218ef95e34dc8395cd0c4662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Wed, 28 Feb 2018 10:02:02 +0000 Subject: [PATCH] fix(check-structure): do not require dev environment --- src/checkStructure.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/checkStructure.js b/src/checkStructure.js index 68ecbb2..3f7db28 100644 --- a/src/checkStructure.js +++ b/src/checkStructure.js @@ -1,13 +1,6 @@ -import { - requireEnv, - getInsertsFromMigrations, - getInsertsFromStructure, -} from './utils' - -async function checkStructure(options) { - const { structurePath, migrationsPath } = options - requireEnv('development', options.env) +import { getInsertsFromMigrations, getInsertsFromStructure } from './utils' +async function checkStructure({ structurePath, migrationsPath }) { const migrationsInFolder = await getInsertsFromMigrations(migrationsPath) const migrationsInStructure = await getInsertsFromStructure(structurePath)