Skip to content

Commit

Permalink
Add case for json
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushRedHat committed Sep 12, 2023
1 parent 98f7e91 commit 1cf9a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/new/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1cf9a68

Please sign in to comment.