diff --git a/packages/tools/update-readme-contributors.ts b/packages/tools/update-readme-contributors.ts index 1fe1390bb..806b7d276 100644 --- a/packages/tools/update-readme-contributors.ts +++ b/packages/tools/update-readme-contributors.ts @@ -1,3 +1,5 @@ +import { rootDir } from './tool-utils'; + const request = require('request'); interface Contributor { @@ -6,7 +8,9 @@ interface Contributor { html_url: string; } -const readmePath = `${__dirname}/../../README.md`; +rootDir; + +const readmePath = `${rootDir}/README.md`; const { insertContentIntoFile } = require('./tool-utils.js'); async function gitHubContributors(page: number): Promise { diff --git a/packages/tools/update-readme-download.test.ts b/packages/tools/update-readme-download.test.ts index 30954853b..7a7bed4dd 100644 --- a/packages/tools/update-readme-download.test.ts +++ b/packages/tools/update-readme-download.test.ts @@ -17,6 +17,7 @@ describe('update-readme-download', () => { html_url: '', prerelease: false, draft: false, + body: '', }; return r; };