diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2023-02-13 06:44:28 +0530 |
---|---|---|
committer | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2023-02-13 06:49:51 +0530 |
commit | d8399ea0f1940d6483bfef59e3eb94ba41137b12 (patch) | |
tree | e9b58bcbb46c21784ed46b20d5c8481828deb39a /scripts/create.js | |
parent | fix #936: Rectify serviceUrls for known problematic services (diff) | |
download | ferdium-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.js | 2 |
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); |