microsoft / microsoft/TypeScript
How tsconfig exclude pattern should actually work
オープン
まだ誰も着手していません。
Help Wanted
Suggestion
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.4k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 117
説明
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
Say we have a following structure to specially to test exclude pattern:
/node_modules
/module/some.ts
nested/
/node_modules
/module/some.ts
/deep-nested/
/node_modules
/module/some.ts
Will check this using tsc --listFiles
How exclude patterns work:
- "node_modules" - will exclude only
/node_modules/module/some.ts - "*/node_modules" (the same effect as /node_modules/") - will exclude only
/nested/node_modules/module/some.ts - "**/node_modules" - will exclude nothing
- "**/node_modules/*" - will exclude everything (also nested, deep-nested)
Some behaviour seem strange to me
- why in case 3 it excludes nothing (considering case 2 works)?
- by default (if
excludenot specified) case 1 will be effective, shouldn't it be 4) which excludesnode_modulesin nested folders as well?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
報告された tsc --listFiles コマンドから始め、4 つの exclude パターンを使って、一覧表示されたディレクトリ構造を再現します。コンパイラーによる除外パターンの処理を追跡して、パターンによって異なるディレクトリが選択される理由を特定し、確認したケースのカバレッジを追加または更新して、意図した動作を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- compilers
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100