We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc6c06 commit f952637Copy full SHA for f952637
bin/commands/init.js
@@ -38,6 +38,9 @@ module.exports = function init(args) {
38
let path_to_json = get_path(args);
39
if (path_to_json === undefined) return;
40
41
+ // append .json if filename passed is not of json type
42
+ if (path.extname(path_to_json) !== ".json") path_to_json += '.json';
43
+
44
let config = {
45
file: require('../templates/configTemplate')(),
46
path: path_to_json
0 commit comments