import { config } from '@erect/core'; import { defaultValues } from '@erect/core/config/defaultValues'; import { getConfigPath } from '@erect/core/paths'; import { isErectProject } from './utils/isErectProject'; try { if (!isErectProject()) { throw new Error(); } const id = require.resolve(getConfigPath()); require(id); } catch (error) { config.load(defaultValues); }