feat: Improve tsconfig.json import handling in runtime.Start function

This commit is contained in:
Max 2024-07-31 11:20:04 +08:00
parent 42b42e1134
commit a0729bbde0

View file

@ -27,7 +27,7 @@ func Start(cfg config.Config) error {
}
// Read the tsconfig.json
if cfg.Runtime.Import {
if cfg.Runtime.Import && application.App != nil {
if exist, _ := application.App.Exists("tsconfig.json"); exist {
var tsconfig v8.TSConfig
raw, err := application.App.Read("tsconfig.json")