aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/create.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-02-13 06:44:28 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-02-13 06:49:51 +0530
commitd8399ea0f1940d6483bfef59e3eb94ba41137b12 (patch)
treee9b58bcbb46c21784ed46b20d5c8481828deb39a /scripts/create.js
parentfix #936: Rectify serviceUrls for known problematic services (diff)
downloadferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.tar.gz
ferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.tar.zst
ferdium-recipes-d8399ea0f1940d6483bfef59e3eb94ba41137b12.zip
Upgrade 'pnpm' to '7.27.0'; Upgrade other npm modules and fix errors
Diffstat (limited to 'scripts/create.js')
-rw-r--r--scripts/create.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create.js b/scripts/create.js
index 1d20668..199a23b 100644
--- a/scripts/create.js
+++ b/scripts/create.js
@@ -76,7 +76,7 @@ const pascalCasedName = toPascalCase(recipe); // PascalCased recipe ID only cont
76 // Replace placeholders with the recipe-specific values 76 // Replace placeholders with the recipe-specific values
77 for (const file of filesThatNeedTextReplace) { 77 for (const file of filesThatNeedTextReplace) {
78 const filePath = path.join(newRecipeFolder, file); 78 const filePath = path.join(newRecipeFolder, file);
79 let contents = await fs.readFile(filePath, 'utf-8'); 79 let contents = await fs.readFile(filePath, 'utf8');
80 contents = contents.replace(/SERVICE/g, recipe); 80 contents = contents.replace(/SERVICE/g, recipe);
81 contents = contents.replace(/SNAME/g, recipeName); 81 contents = contents.replace(/SNAME/g, recipeName);
82 contents = contents.replace(/SPASCAL/g, pascalCasedName); 82 contents = contents.replace(/SPASCAL/g, pascalCasedName);