# TypeScript project configuration
TypeScript-enabled Strapi applications have a specific project structure with the following dedicated folders and configuration files:
TypeScript-specific directories and files | Location | Purpose |
---|---|---|
./dist directory | application root | Adds the location for compiling the project JavaScript source code. |
build directory | ./dist | Contains the compiled administration panel JavaScript source code. The directory is created on the first yarn build or npm run build command |
tsconfig.json file | application root | Manages TypeScript compilation for the server. |
tsconfig.json file | ./src/admin/ | Manages TypeScript compilation for the admin panel. |
Starting the development environment for a TypeScript-enabled project requires building the admin panel prior to starting the server. In development mode, the application source code is compiled to the ./dist/build
directory and recompiled with each change in the Content-type Builder. To start the application, run the following commands in the root directory: