diff --git a/src/commands/new/file.ts b/src/commands/new/file.ts index d3e086da3ad..9e1759c5aea 100644 --- a/src/commands/new/file.ts +++ b/src/commands/new/file.ts @@ -151,7 +151,7 @@ export default class NewFile extends Command { const extension=fileName.split(".")[1]; - if(extension==="yml"||extension==="yaml"){ + if(extension==="yml"||extension==="yaml"||extension=="json"){ fileNameToWriteToDisk=fileName }