Skip to content

refactor: convert to npm workspaces monorepo#232

Merged
akabekobeko merged 5 commits intomainfrom
refactor/monorepo
Mar 17, 2026
Merged

refactor: convert to npm workspaces monorepo#232
akabekobeko merged 5 commits intomainfrom
refactor/monorepo

Conversation

@akabekobeko
Copy link
Copy Markdown
Member

@akabekobeko akabekobeko commented Mar 15, 2026

Vivliostyle 開発者会議で提案のあったモノレポ対応を実施しました。pnpm にするか迷いましたが、とりあえず npm workspace 形式としています。

すでに開発されている remark プラグインと親和性があるか?などの観点からレビューいただけると助かります!

Summary

  • リポジトリを npm workspaces によるモノレポ構造に変換
  • @vivliostyle/vfm パッケージを packages/vfm/ に移動
  • ルート package.json に workspaces 設定と、型パッケージのバージョン固定用 devDependencies を追加
  • .claude/settings.local.json.gitignore に追加

Test plan

  • npm run build でビルド成功を確認
  • npm test で全 117 テストがパスすることを確認

🤖 Generated with Claude Code

akabekobeko and others added 2 commits March 15, 2026 16:30
Move @vivliostyle/vfm package into packages/vfm/ and configure
npm workspaces at the root. Pin @types/unist and @types/mdast
versions in root devDependencies to prevent type incompatibilities
from hoisting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@akabekobeko akabekobeko requested a review from u1f992 March 15, 2026 07:38
@akabekobeko akabekobeko self-assigned this Mar 15, 2026
Copy link
Copy Markdown
Member

@u1f992 u1f992 left a comment

Choose a reason for hiding this comment

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

ほぼファイル移動のみなので、この時点では基本的には問題なさそうです!ビルドとテストも確認できました。

@akabekobeko akabekobeko requested a review from u1f992 March 16, 2026 12:30
Copy link
Copy Markdown
Member

@u1f992 u1f992 left a comment

Choose a reason for hiding this comment

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

たびたびすみません 🙏

@akabekobeko akabekobeko requested a review from u1f992 March 16, 2026 14:53
Copy link
Copy Markdown
Member

@u1f992 u1f992 left a comment

Choose a reason for hiding this comment

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

OKです、ありがとうございました!

  • マージ後 #231 を新しいディレクトリ構造に合わせておきます
  • リリース後 #227 で用意している次期バージョン用のプラグインをモノレポに追加するPRを投稿します

@akabekobeko akabekobeko merged commit 3685b3c into main Mar 17, 2026
3 checks passed
@akabekobeko akabekobeko deleted the refactor/monorepo branch March 17, 2026 12:25
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.

2 participants