MusicHubTS / backend

Back-end of the powerful online & offline music player, written in TypeScript and Ts.Ed.
MIT License
4 stars 1 forks source link

barrelsby modifies and deletes `index.ts` #1

Closed LittleYe233 closed 2 years ago

LittleYe233 commented 2 years ago

It has been proved that the package barrelsby can modify and delete index.ts in src/controllers/rest/get_config. It may be unable to recognize dynamic routes in the RESTful API, so it messes it up.

The package should be disabled temporarily (not directly removed) until the bug can be solved.

LittleYe233 commented 2 years ago

In official README of barrelsby, there is a delete field in the configuration file to enable/disable auto deletion of index.ts, but it can also modify the content (like what I said in the first post), so I can only disable it.