Skip to content

Commit a81325f

Browse files
authored
Adding notes
1 parent 006fe76 commit a81325f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/create.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont
4343
(async () => {
4444
// Folder paths
4545
const userData =
46-
process.env.APPDATA || (
46+
process.env.APPDATA || (
47+
// Check if this script runs on Windows
4748
process.platform === 'win32'
4849
? `${process.env.USERPROFILE}\\AppData\\Roaming\\Ferdium\\recipes\\dev`
50+
// If not, check for Darwin
4951
: process.platform === 'darwin'
5052
? `${process.env.HOME}/Library/Application Support`
53+
// If fails both checks, simply use this
5154
: `${process.env.HOME}/.config`
5255
);
5356
const recipesFolder = path.join(userData, folderName, 'recipes');

0 commit comments

Comments
 (0)