microsoft / microsoft/TypeScript
npx tsc -w is triggering itself after each build
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
### 🔎 Search Terms
No amount of exclude or watchOptions seems to have any impact.
I am outputting my JavaScript files along side my TS files, which is what I want, I don't know why it keeps retriggering itself
Output looks like this
```
> npx tsc --watch --extendedDiagnostics
[08:05:29 PM] Starting compilation in watch mode...
[08:05:29 PM] Found 0 errors. Watching for file changes.
[08:05:29 PM] File change detected. Starting incremental compilation...
[08:05:30 PM] Found 0 errors. Watching for file changes.
[08:05:30 PM] File change detected. Starting incremental compilation...
[08:05:31 PM] Found 0 errors. Watching for file changes.
[08:05:31 PM] File change detected. Starting incremental compilation...
[08:05:31 PM] Found 0 errors. Watching for file changes.
[08:05:32 PM] File change detected. Starting incremental compilation...
[08:05:32 PM] Found 0 errors. Watching for file changes.
```
npx tsc --showConfig doesn't show any watchOptions not sure if they are getting picked up
### 🕗 Version & Regression Information
"name": "@typescript/typescript-win32-x64",
"version": "7.0.2",
### ⏯ Playground Link
_No response_
### 💻 Code
_No response_
### 🙁 Actual behavior
tsc -w triggers itself in a loop
### 🙂 Expected behavior
tsc -w doesn't triggers itself in a loop
### Additional information about the issue
_No response_
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Start by reproducing the loop with the reported npx tsc --watch --extendedDiagnostics command and the project configuration that emits JavaScript beside TypeScript files. Inspect how watchOptions and emitted files interact with watch mode; done means compilation completes without detecting its own output as repeated file changes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- build-system, compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100