From 97d51a7763b14c92ee71ff9a012311dd9498d803 Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Sun, 8 Aug 2021 00:01:37 +0000 Subject: refactor: path-references refactoring and using 'import' instead of 'require' (#1752) * refactor references to 'userData' and 'appData' directories to move hardcoding into single location * convert to es6 for lower memory usage as per https://codesource.io/the-difference-between-import-and-require-in-javascript/ --- src/scripts/link-readme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripts/link-readme.js') diff --git a/src/scripts/link-readme.js b/src/scripts/link-readme.js index 694b89700..1e47cddf8 100644 --- a/src/scripts/link-readme.js +++ b/src/scripts/link-readme.js @@ -11,7 +11,7 @@ const path = require('path'); console.log('Linking issues and PRs in README.md'); -const readmepath = path.join(__dirname, '../../', 'README.md'); +const readmepath = path.join(__dirname, '..', '..', 'README.md'); // Read README.md let readme = fs.readFileSync(readmepath, 'utf-8'); -- cgit v1.2.3-54-g00ecf