fastify / fastify/fastify-cli

watch mode not working with git worktree

Aperta
#548 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug help wanted
Lingua principale
JavaScript
Stelle
733
Fork
177
Merge medio
1g 20h
PR unite (30g)
3

Descrizione

### Prerequisites

- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the bug has not already been reported

### Fastify version

4.0.0

### Plugin version

_No response_

### Node.js version

16.17.0

### Operating system

Linux

### Operating system version (i.e. 20.04, 11.3, 10)

20.04

### Description

At #547, I mistakenly assumed that watch mode was not working because of esm, in fact, watch mode is not working if the project is in the **git worktree**.
If you use typescript, then typescript rebuilds the project, but the server still does not restart.

### Steps to Reproduce

```
git clone https://github.com/railwayapp-templates/fastify --bare
cd fastify.git
git worktree add main
cd main
npm i
npm run dev
```
change any file -> typescript rebuild -> server does not restart

### Expected Behavior

_No response_

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il report usando i comandi git worktree elencati su Node.js 16.17.0 e conferma che TypeScript venga ricompilato mentre il server continua a funzionare. Traccia il percorso di riavvio della CLI in modalità watch per i progetti worktree e aggiungi la coverage per la riproduzione; il lavoro è completato quando un file modificato viene ricompilato e riavvia il server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
git, javascript, node.js, typescript
Ambito
cli
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
28/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.