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

feat: Node バージョンを 22 LTS へ移行 #194

Merged
merged 4 commits into from
Mar 3, 2025
Merged

Conversation

akabekobeko
Copy link
Member

@akabekobeko akabekobeko commented Mar 2, 2025

VFM 開発再開の準備として環境を段階更新する作業の一環です。

  • 関連 spec: Keep up with the latest version of the unified toolchain #192
    • 2025/3/1 (土) の Vivliostyle 開発者会議でも合意済み
  • Node 12 から 22 へ移行 (最新 LTS)
  • パッケージ管理を yarn から Node 標準の npm へ移行
    • 2025/3 時点では npm に対する yarn の優位性が少なくなってきた
    • 標準パッケージ管理のほうが環境構築などで手順や説明を省ける
  • ローカル開発環境の Node + npm 明示用に Volta 設定を追加
    • Volta を利用するとプロジェクト配下の Node バージョンを固定できます
    • 例えばグローバルが Node 24 でも package.json の Volta 設定が 22. ならこちらで固定されるため、環境を想定内に収められます
    • Volta を利用していなくても開発は可能です

@akabekobeko akabekobeko self-assigned this Mar 2, 2025
@@ -1,11 +1,14 @@
{
"name": "@vivliostyle/vfm",
"description": "Custom Markdown syntax specialized in book authoring.",
"version": "2.2.1",
"version": "2.3.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

次回リリースは Minor 更新とします。

Comment on lines +10 to +11
"volta": {
"node": "22.14.0"
Copy link
Member Author

Choose a reason for hiding this comment

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

Volta 設定を追加。Volta を利用している場合、このプロジェクト配下で Node はこのバージョンに固定されます。

Volta 利用していない場合は従来どおり、システムのグローバル Node が参照されます。

@MurakamiShinyu
Copy link
Member

  • パッケージ管理を yarn から Node 標準の npm へ移行

CONTRIBUTING.md の内容が yarn のままなのを直す必要があると思います。次のところなど:

vfm/CONTRIBUTING.md

Lines 7 to 9 in d520ddc

yarn install
yarn build
yarn link

@akabekobeko
Copy link
Member Author

@MurakamiShinyu
e49e2d5 にて CONTRIBUTING.md の yarn 関連を npm へ置き換えました!

Copy link
Member

@MurakamiShinyu MurakamiShinyu left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@akabekobeko akabekobeko merged commit 1a782b0 into main Mar 3, 2025
3 checks passed
@akabekobeko akabekobeko deleted the feat/node-22 branch March 3, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants