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

Yarn の PnP モードを試す #240

Closed
wants to merge 40 commits into from
Closed

Yarn の PnP モードを試す #240

wants to merge 40 commits into from

Conversation

fsubal
Copy link
Member

@fsubal fsubal commented Feb 23, 2023

やったこと

  • yarn の pnp モードで charcoal の開発が可能かを検証する
  • 本来追加すべき dependencies のチェックが厳密になる、インストールが高速になるなどの効果を期待している

動作確認環境

CI が通ること、手元でエディタが普通に動くこと、Storybook が起動すること

懸念

pnp はエディタの特殊対応が必要で、たとえば VSCode で動かすには yarn の vscode sdk が必要になる。

https://yarnpkg.com/getting-started/editor-sdks

これは事実上、charcoal にコントリビューションする際の環境は事実上 VSCode しかサポートしなくなることを意味するかも
(他のエディタ向け SDK を追加してもよいが、ちゃんと動くかを我々が保証できないと思われる)

チェックリスト

不要なチェック項目は消して構いません

  • 破壊的変更がある場合には、対象のパッケージのメジャーバージョンが上がっていることを確認した
  • 追加したコンポーネントが index.ts から再 export されている
  • README やドキュメントに影響があることを確認した

@fsubal
Copy link
Member Author

fsubal commented Feb 25, 2023

もしかして pnp のブランチと非 pnp のブランチで bundle size 比較を走らすのって厳しいかな(できるのか…?)

@fsubal
Copy link
Member Author

fsubal commented Feb 25, 2023

ref: storybookjs/builder-vite#141

@fsubal fsubal marked this pull request as ready for review February 26, 2023 09:36
clean-script: 'clean'

# compressed-size-action は PnP だとうまく動かない
clean-script: 'disable-pnp-before-build'
Copy link
Member Author

Choose a reason for hiding this comment

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

やっても動かなかった…

@fsubal
Copy link
Member Author

fsubal commented Mar 22, 2023

pnpm 優勢のためいったん close

@fsubal fsubal closed this Mar 22, 2023
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

1 participant