Skip to content

chore(Chart): chartsのsmarthr-uiの依存先をworkspaceに変更#6262

Open
schktjm wants to merge 1 commit into
masterfrom
feat-chart-depend-workspace-smarthr-ui
Open

chore(Chart): chartsのsmarthr-uiの依存先をworkspaceに変更#6262
schktjm wants to merge 1 commit into
masterfrom
feat-chart-depend-workspace-smarthr-ui

Conversation

@schktjm
Copy link
Copy Markdown
Contributor

@schktjm schktjm commented Apr 9, 2026

関連URL

なし

概要

packages/charts が依存する smarthr-ui を、npm registry からではなく pnpm workspace 内の packages/smarthr-ui を参照するように変更します。

これにより、charts の開発時に常に最新の smarthr-ui を使用でき、バージョンの乖離(従来は npm registry の v74.2.0 を参照していた)を解消します。

変更内容

packages/charts/package.json を以下のように変更しました:

  • peerDependenciessmarthr-ui"^74.0.0""workspace:^" に変更
    • publish 時に自動的にその時点の smarthr-ui バージョン(現在は ^91.0.0)に変換されます
  • devDependencies"smarthr-ui": "workspace:*" を追加
    • workspace リンクで確実にローカルの smarthr-ui が使用されるようになります

sandbox/next パッケージで既に workspace:* による参照が使われており、同じ方式に統一しています。

プロダクト側で対応が必要な事項

publish 時に peerDependenciessmarthr-ui^91.0.0 に変換されるため、charts の次回リリース以降は smarthr-ui v91 以上が必要になります。

確認方法

  • pnpm installpnpm ui buildpnpm charts build でビルドが成功することを確認
  • pnpm charts lint で lint が通ることを確認
  • pnpm charts test -- --run でテストが通ることを確認
  • cd packages/charts && pnpm pack で publish 時の package.json を確認し、peerDependencies.smarthr-ui^91.0.0 に変換されていることを確認済み

@schktjm schktjm requested a review from a team as a code owner April 9, 2026 03:11
@schktjm schktjm requested review from Qs-F and uknmr and removed request for a team April 9, 2026 03:11
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 9, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@smarthr/smarthr-ui-charts@6262
npm i https://pkg.pr.new/smarthr-ui@6262

commit: 413ef19

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.

1 participant