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

refactor!: rename parseConfig method to parse #39

Merged
merged 1 commit into from Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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