Skip to main content

TypeScript project configuration

TypeScript-enabled Strapi applications have a specific project structure with the following dedicated folders and configuration files:

TypeScript-specific directories and filesLocationPurpose
./dist directoryapplication rootAdds the location for compiling the project JavaScript source code.
build directory./distContains the compiled administration panel JavaScript source code. The directory is created on the first yarn build or npm run build command
tsconfig.json fileapplication rootManages TypeScript compilation for the server.
tsconfig.json file./src/admin/Manages TypeScript compilation for the admin panel.