1 parent accaa45 commit 1c3c248Copy full SHA for 1c3c248
1 file changed
first-run.js
@@ -42,6 +42,11 @@ function isFirstRun() {
42
return false;
43
}
44
45
+ const firstRunFolder = path.dirname(configPath);
46
+ if (!fs.existsSync(firstRunFolder)) {
47
+ fs.mkdirSync(firstRunFolder);
48
+ }
49
+
50
fs.writeFileSync(configPath, '');
51
} catch (error) {
52
console.warn(`First run: Unable to write firstRun file`, error);
0 commit comments