microsoft / microsoft/TypeScript

Feature request: exclude outDir by default in tsconfig.json

オープン
#20,108 コメント 8 件 リアクション 9 件 担当者 0 名 GitHub で見る

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

Awaiting More Feedback Suggestion
主要言語
Go
スター
111k
フォーク
14.3k
平均マージ
2日 4時間
マージ済み PR(30日)
132

説明

Scenario: As a user, I want typescript compiler to default-exclude output transpiled files to compilerOptions.outDir with compilerOptions.declaration property set to true. I would expect that outDir is excluded by default, because:

  • it would prevent me from importing definitions from outDir by error, which is easy to do with intellisense
  • it would prevent me from having TS5055 errors such as spotted in #16749 and #6046
  • tsc CLI has already implemented this behaviour, see PR #8703

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

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

はじめの一歩

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

調査の方向性

まず PR #8703 と、issues #16749 および #6046 の関連ケースを読み、次に tsconfig.json が compilerOptions.outDir と declaration をどのように扱うかを追跡します。outDir が declarations の有効時にデフォルトで除外されるかどうかを判断し、その動作を関連する compiler tests でカバーできれば完了です。

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

評価

技術スタック
typescript
領域
compilers
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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