I have an express Typescript app that is the backend for my webapp. The general root structure of the app is
- client - tsconfig.json - React code - server - application.ts - tsconfig.json I need to compile the server files so that I can run ts-node app.ts. The problem is running tsc compiles all of the files in the root directory and not just the server directory. I know I could use exclude in the tsconfig, but in app.ts I have type definitions that are imported from front-end. Is there anyway to only compile the files in the server directory while being able to keep the imports?