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 accaa45 commit 1c3c248Copy full SHA for 1c3c248
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