Skip to content

Commit

Permalink
fix: save yml config file in yaml format
Browse files Browse the repository at this point in the history
Fixes #55
  • Loading branch information
kbrandwijk authored Dec 29, 2017
1 parent ba7b0bf commit 90bdab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function readConfig(configPath: string): GraphQLConfigData {

export function writeConfig(configPath: string, config: GraphQLConfigData) {
let configContents
if (configPath.endsWith('.yaml')) {
if (configPath.endsWith('.yaml') || configPath.endsWith('.yml')) {
configContents = yaml.safeDump(config)
} else {
configContents = JSON.stringify(config)
Expand Down

0 comments on commit 90bdab4

Please sign in to comment.