Skip to content

Commit

Permalink
fix(check-structure): do not require dev environment
Browse files Browse the repository at this point in the history
gregberge committed Feb 28, 2018
1 parent be010ad commit dfb1754
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/checkStructure.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit dfb1754

Please sign in to comment.