fastify-cli
fastify-cli copied to clipboard
dist folder doesn't seem to sync with src folder properly ?
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
^3.0.0
Plugin version
^3.1.0
Node.js version
16.14.0
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
macos big sur 11.4
Description
when deleting / renaming files / folders, the old folders / files are kept in the dist directory which is problematic espcially in case when you autoload routes.
for example if you have an invalid route file ( say you rediclared an endpoint with the same path ) or forgot to export from the file. then renamed / moved / removed the file there is no way to get rid of the error unless you removed it from the dist folder.
Steps to Reproduce
- create a new project with the cli.
- copy past the routes/root.ts ( vs code should name it root copy.ts/js or something )
- before editing the file rename it to
users.ts/js - edit your route handle to
GET /userfor exmple
Expected Behavior
for the dist folder to keep in sync with src folder.