Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
refactor!: rename parseConfig method to parse (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Jul 28, 2022
1 parent 3836ac6 commit 23e31ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-cheetahs-pull.md
@@ -0,0 +1,5 @@
---
"@darkflare/wjson": major
---

refactor!: rename `parseConfig` method to `parse`
2 changes: 1 addition & 1 deletion src/index.ts
@@ -1,3 +1,3 @@
export { define } from './modules/define'
export { generate } from './modules/generate'
export { parseConfig } from './modules/parseConfig'
export { parse } from './modules/parse'
4 changes: 2 additions & 2 deletions src/modules/parseConfig.ts → src/modules/parse.ts
Expand Up @@ -40,7 +40,7 @@ const loadExtendedConfig = async (config: WranglerConfiguration): Promise<Wrangl

config.extends = undefined

const config2 = await parseConfig('wjson_internal:' + join(__dirname, '../.cache/config.json'))
const config2 = await parse('wjson_internal:' + join(__dirname, '../.cache/config.json'))

if (!config2) return config

Expand All @@ -57,7 +57,7 @@ const loadExtendedConfig = async (config: WranglerConfiguration): Promise<Wrangl
return config
}

export const parseConfig = async (path?: string) => {
export const parse = async (path?: string) => {
if (!path) path = process.cwd()

const internalParsing = path.startsWith('wjson_internal:')
Expand Down

0 comments on commit 23e31ce

Please sign in to comment.