 'use strict'
 
+fs_utils = require './fs_utils'
 {exec} = require 'child_process'
 os = require 'os'
 sysPath = require 'path'

      throw new Error "couldn\'t load config #{fullPath}. #{error}"

  setConfigDefaults config, configPath
  warnAboutConfigDeprecations config
  applyOverrides config, options
  deepExtend config, options
  replaceConfigSlashes config
  normalizeConfig config
  config._normalized.packageInfo = {}

  loadNpm config, (npmRes) ->
    config._normalized.packageInfo.npm = npmRes

    loadComponents config, 'bower', (bowerRes)->
      config._normalized.packageInfo.bower = bowerRes

      loadComponents config, 'component', (componentRes) ->
        config._normalized.packageInfo.component = componentRes
        deepFreeze config
        callback null, config

      files: [file]
      version: json.dependencies[dep]
  cb components: items

addPackageManagers = (config, callback) ->
  loadNpm config, (npmRes) ->
    config._normalized.packageInfo.npm = npmRes

    loadComponents config, 'bower', (bowerRes)->
      config._normalized.packageInfo.bower = bowerRes

      loadComponents config, 'component', (componentRes) ->
        config._normalized.packageInfo.component = componentRes

        callback()

exports.loadConfig = (configPath = 'brunch-config', options = {}, callback) ->
  try
