fastify/fastify-cli

watch mode not working with git worktree

開放

#548 建立於 2022年9月7日

 (4 則留言) (0 個反應) (0 位負責人)JavaScript (174 個分叉)github user discovery
bughelp wanted

倉庫指標

星標
 (726 顆星)
PR 合併指標
 (平均合併 54分鐘) (30 天內合併 3 個 PR)

描述

Prerequisites

  • I have written a descriptive issue title
  • 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

貢獻者指南