We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 889fb70 commit c5384d7Copy full SHA for c5384d7
3 files changed
.gitignore
@@ -57,3 +57,6 @@ typings/
57
# dotenv environment variables file
58
.env
59
60
+# Test folders
61
+/config/
62
+/dist/
default.json config.jsondefault.json renamed to config.json
@@ -19,4 +19,4 @@
19
"no-parent"
20
]
21
}
22
-}
+}
lib/config.js
@@ -23,12 +23,17 @@ module.exports = function() {
23
24
// Check for environment config file
25
if (!fs.existsSync(file)) {
26
+ let defaultConfig = require("../config.json");
27
28
try {
29
// Create file
- fs.writeFileSync(file, JSON.stringify(
30
- require("../config.json")
31
- ));
+ fs.writeFileSync(file,
+ JSON.stringify(
32
+ defaultConfig,
33
+ null,
34
+ '\t'
35
+ )
36
+ );
37
38
catch (ex) {
39
throw "Could not create configuration file.";
0 commit comments