-
Notifications
You must be signed in to change notification settings - Fork 311
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
依存関係周りを整理 #1989
依存関係周りを整理 #1989
Conversation
"@voicevox/eslint-plugin": "file:./eslint-plugin", | ||
"@vue/eslint-config-prettier": "7.0.0", | ||
"@vue/eslint-config-typescript": "11.0.2", | ||
"@vue/test-utils": "2.3.0", | ||
"cross-env": "7.0.3", | ||
"cross-var": "1.1.0", | ||
"cross-replace": "0.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cross-replace、まだダウンロード数が少ないんですが、
- (ちゃんと動くこと:確認中)
- 警告を放置してると警告が増えたことに気がつけない
ので置き換えています。もっと良い解決策があるかも。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正ありがとうございます!!!
これくらいのコード量ならsubmodule的な感じで自分たちのコードで管理しても良いかもと思いました。
まあ意外とOS差を吸収する必要があって大変なのですが・・・。
そもそも使わないという選択もあるかもです。(個人的には依存減らせるのでこれを支持したい。)
npm runを増設して環境変数で渡すのではなく、--prepackage パス
をelectron:build_pnever
にわたす以前のコードに戻すのはどうでしょう?
44a81fa#diff-5c3fa597431eda03ac3339ae6bf7f05e1a50d6fc7333679ec38e21b337cb6721L685-R669
@@ -5,7 +5,7 @@ | |||
"private": true, | |||
"main": "./dist/main.js", | |||
"engines": { | |||
"node": ">=18.13.0 <19", | |||
"node": ">=18.20.2 <19", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typescript-eslintが要求してたのであげました。そのうち20にしてもよさそう?
使われてなかったbabel.config.jsと一緒にDockerfileとdocker-compose.ymlも爆破しようと思うんですが、これって使われてます? |
@@ -3,7 +3,7 @@ | |||
* ランタイム情報には起動しているエンジンのURLなどが含まれる。 | |||
*/ | |||
|
|||
import fs from "fs"; | |||
import fs from "fs/promises"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
何故かfsだとエラーを吐かれたのでpromisesに置き換え。
maxBuffer: 1024 * 1024 * 10, // FIXME: stdoutではなくファイル出力にする | ||
} | ||
); | ||
const licenseJson = await new Promise((resolve, reject) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmdで呼ぼうとしたら色々面倒なことになったので、APIを使う用に書き換えました。
This reverts commit de87b54.
prettier、色々と変更が入ったらしくレビューが大変そうなのでとりあえずmtsをサポートする最小のバージョン(2.5)まで上げました。別で3.x代に上げるPRを作るかも |
わかんないですね。issue作って頂けると!!
配慮助かります!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
プルリクエストありがとうございます!!
ちょっと一気にいろいろ変更されているので、申し訳ないのですが小分けにするのをお願いします 🙇
というのもたぶんどれか問題があった場合にrevertをかけたくなるわけですが、変更が多いとかけるにかけられなくなってしまうためです。
コードの変更が生じているものは可能な限り分けたいです。
特にフォーマッターが変わっている?ものはrevert時にでかい確率でコンフリクトが生じるので分けとくと将来の僕たちを助けられるかなと。
あとfs周りが変わっているの(Node更新?)もstore辺りのコードが変わってるので独立させられるなら分離しちゃいたいです。
vite周り・cross-var周り・ライセンス周りもそれぞれ分けたほうが良いと思います。
が、まあこれらは変更頻度が少ないかもなので後回しでも。(あとでまたお願いするかも)
依存関係がもつれてて難しそうだったらなんとかできないか僕も考えます!
なるほど、とりあえずPrettier更新だけで分けようと思います。 |
すみません、助かります🙇 |
内容
vite.config.ts
->vite.config.mts
)ts-node
、babel.config.js
、core-js
が使われてなかったので削除します。cross-var
でbabel周りの警告が大量(具体的には36 critical)に出てたのでdrop-in replacementらしいcross-replace
に置き換えます。license-checker
を、アクティブにメンテされてそうなlicense-checker-rseidelsohn
に置き換えます。これによりDeprecated警告が消えます。関連 Issue
(なし)
スクリーンショット・動画など
その他
(なし)