Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
fix(load-cfg): merge default config on load
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Feb 27, 2019
1 parent e12c37d commit d3b4bc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions other-packages/load-cfg/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs-extra'
import * as path from 'path'
import * as findup from 'find-up'
import { merge } from 'lodash/fp'
import { merge } from 'lodash'

export const loadFile = (filepath: string, noCache?: boolean) => {
require('@babel/register')({
Expand Down Expand Up @@ -51,7 +51,7 @@ export function load<C = any>(
const file = filepath ? loadFile(filepath, noCache) : {}
const next = defaultConfig
? deep
? merge(file, defaultConfig)
? merge(defaultConfig, file)
: { ...defaultConfig, ...file }
: file

Expand Down

0 comments on commit d3b4bc6

Please sign in to comment.