microsoft / microsoft/TypeScript

npx tsc -w is triggering itself after each build

Ouverte
#64,037 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Needs More Info
Langage dominant
Go
Étoiles
111k
Forks
14.3k
Merge moyen
2 j 4 h
PR mergées (30 j)
132

Description

### 🔎 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
typescript
Domaine
build-system, compilers
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
À clarifier
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.