Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

dd the types condition to the package.json#exports for TS 4.7+

オープン
#4,333 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, typescript

調査の方向性

package.json から始めて、バンドルされたコンポーネントの既存の exports エントリを調べます。node16、nodenext、bundler の moduleResolution において TypeScript 4.7+ がそれらのエントリをどのように解決するかを確認します。関連するエクスポート済みコンポーネントが patch-package なしで型を公開し、既存のパッケージコンシューマーも引き続き正しく解決されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Today I used patch-package to patch framework7@7.1.5 for the project I'm working on.

This is required for TypeScript to work with packages that have exports when using the new moduleResolution: node16/nodenext/bundler settings. When those are not used then TypeScript just ignores package.json#exports - but when you make it aware of exports by using those options then it requires the types to be included in exports and not as the top-level key of package.json

I'm not sure if there is a more elegant way to specify the exports - especially since there are so many listed in the package.json file. I just augmented the ones for the bundled components.

主要言語
JavaScript
スター
18.8k
フォーク
3.2k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

framework7io/framework7 のほかの issue

framework7io/framework7 の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。