소스 검색

build: fix type cast

Renée Kooi 5 년 전
부모
커밋
d67ff8d884
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      website/inject.js

+ 1 - 1
website/inject.js

@@ -155,7 +155,7 @@ async function injectGhStars () {
   console.log(`${headers['x-ratelimit-remaining']} requests remaining until we hit GitHub ratelimiter`)
 
   const dstpath = path.join(webRoot, 'themes', 'uppy', 'layout', 'partials', 'generated_stargazers.ejs')
-  fs.writeFileSync(dstpath, data.stargazers_count, 'utf-8')
+  fs.writeFileSync(dstpath, String(data.stargazers_count), 'utf-8')
 
   console.log(`${data.stargazers_count} stargazers written to '${dstpath}'`)
 }