In tsconfig.json, files is a list of files specifying ts, which supports regular expressions, such as:
"files": [
src/**/*.ts
]
There is no problem in compiling like this, but when using VSCode, it will show that the third-party symbol cannot be found.
The solution is also very simple. Specify the relative path of each ts file in files, so that every time a file is added or deleted, it must be modified.