Skip to content

Commit

Permalink
Merge pull request #56 from kbrandwijk/patch-2
Browse files Browse the repository at this point in the history
fix: save yml config file in yaml format
  • Loading branch information
schickling authored Dec 29, 2017
2 parents f8c4e95 + 90bdab4 commit e3d9e31
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 e3d9e31

Please sign in to comment.