Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateLicenses.jsを書き直す #2000

Merged

Conversation

sevenc-nanashi
Copy link
Member

@sevenc-nanashi sevenc-nanashi commented Apr 17, 2024

内容

  • license-checkerをlicense-checker-rseidelsohnにします。
  • license-checkerのAPIを使う用にします。

関連 Issue

スクリーンショット・動画など

(なし)

その他

キリ番踏んだので報告します!()

build下のスクリプト、そのうちTypeScriptに書き換えて安心したい

@sevenc-nanashi sevenc-nanashi requested a review from a team as a code owner April 17, 2024 14:51
@sevenc-nanashi sevenc-nanashi requested review from y-chan and removed request for a team April 17, 2024 14:51
Comment on lines -5 to +6
const fs = require("fs");
const fs = require("fs/promises");
Copy link
Member

@Hiroshiba Hiroshiba Apr 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

別に良いけど実は不要な変更かも。
nodejsはpromiseの方が推奨されてるとかあったりするなら変更したほうが良さそう。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メインがasyncになったのでせっかくなので、って感じです。どちらでも良さそう。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

なるほどです、まあ良さそう。

仮に戻すってなった時のこと考えると、どちらでも良いならたぶん変えない方が良さそう。
けどまあpromiseは取り回しやすいし(await忘れが怖いけど)、関数内だからどちらにせよ差分は発生するし、まあ良いかな。

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ほぼLGTMです!!
細かい点をいくつかコメントしました!

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

ちなみにlicense-checker-rseidelsohnに変えた理由はdeprecated警告をなくすためですよね。
ざっとリポジトリ眺めた感じ、良さそう。

@Hiroshiba Hiroshiba merged commit c0fa953 into VOICEVOX:main Apr 18, 2024
9 checks passed
sevenc-nanashi added a commit to sevenc-nanashi/voicevox that referenced this pull request Apr 28, 2024
* Change: generateLicenses.jsを書き直し

* Fix: execFileSync周りの型を修正

* Code: argvを離す

* Fix: 細かいところを修正
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants