We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 006fe76 commit a81325fCopy full SHA for a81325f
scripts/create.mjs
@@ -43,11 +43,14 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont
43
(async () => {
44
// Folder paths
45
const userData =
46
- process.env.APPDATA || (
+ process.env.APPDATA || (
47
+ // Check if this script runs on Windows
48
process.platform === 'win32'
49
? `${process.env.USERPROFILE}\\AppData\\Roaming\\Ferdium\\recipes\\dev`
50
+ // If not, check for Darwin
51
: process.platform === 'darwin'
52
? `${process.env.HOME}/Library/Application Support`
53
+ // If fails both checks, simply use this
54
: `${process.env.HOME}/.config`
55
);
56
const recipesFolder = path.join(userData, folderName, 'recipes');
0 commit comments