microsoft / microsoft/TypeScript

Allow --build with Intermediate Errors - shouldn't happen on tsconfig errors

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

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

Awaiting More Feedback Domain: tsc -b Suggestion
主要言語
Go
スター
111k
フォーク
14.4k
平均マージ
1日 19時間
マージ済み PR(30日)
117

説明

🔎 Search Terms

intermediate error

🕗 Version & Regression Information

This is about new feature in 5.6

⏯ Playground Link
💻 Code

tsconfig.json

{
    "extends": "../wrong/path/to/some/tsconfig.json",
    "compilerOptions": {
        // nothing, expects to inherit things
    }
}
🙁 Actual behavior

When compiling such project, tsc does complain that it cannot find the base config, however it continues building. This is a big problem when the base config contains important things like "outDir": "${configDir}/lib" - TS will happily build using the defaults, writing a ton of .js and .d.ts files next to the source files.

🙂 Expected behavior

For tsconfig.json file errors, do not continue building the project.

Additional information about the issue

No response

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

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

はじめの一歩

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

調査の方向性

存在しないパスを拡張する、提供された tsconfig.json を使って動作を再現し、tsc を --build 付きで呼び出します。プロジェクトのビルド中にコンパイラーが不足しているベース設定をどのように処理するかを追跡します。tsconfig のエラーによって、デフォルト値でファイルを出力するのではなくビルドが停止すれば完了です。

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

評価

技術スタック
typescript
領域
build-system, cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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