You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('\n\tCreated .env file in project\'s root directory.\n\tRemember to open that file and put your GitHub API secret in there!\n\t(Only for development environments.)\n');
4
+
5
+
// Try to create .env file but don't overwrite if it already exists
6
+
fs.open('.env',"wx",(err,fd)=>{
7
+
if(err){
8
+
// For any error other than "file already exists", throw it!
9
+
if(err.code!=="EEXIST"){
10
+
throwerr;
11
+
}
12
+
// Stop the function here if there were ANY errors
13
+
return;
14
+
}
15
+
16
+
// If creating/opening the .env file worked, write to it from .sample-env
console.log('\n\tCreated .env file in project\'s root directory.\n\tRemember to open that file and put your GitHub API secret in there!\n\t(Only for development environments.)\n');
0 commit comments