2022-03-09 16:27:49 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = () => ({
|
2022-04-05 16:32:18 +02:00
|
|
|
extends: '@strapi/typescript-utils/lib/configs/server',
|
2022-03-09 16:27:49 +01:00
|
|
|
|
2022-04-12 15:58:21 +02:00
|
|
|
compilerOptions: {
|
|
|
|
outDir: 'dist',
|
|
|
|
rootDir: '.'
|
|
|
|
},
|
|
|
|
|
2022-04-05 16:32:18 +02:00
|
|
|
include: [
|
|
|
|
// Include the root directory
|
|
|
|
'./',
|
|
|
|
// Force the JSON files in the src folder to be included
|
|
|
|
'src/**/*.json',
|
|
|
|
],
|
|
|
|
|
|
|
|
exclude: [
|
|
|
|
'node_modules/',
|
|
|
|
'build/',
|
|
|
|
'dist/',
|
|
|
|
'.cache/',
|
|
|
|
'.tmp/',
|
|
|
|
|
|
|
|
// Do not include admin files in the server compilation
|
|
|
|
'src/admin/',
|
|
|
|
// Do not include test files
|
|
|
|
'**/*.test.ts',
|
|
|
|
// Do not include plugins in the server compilation
|
|
|
|
'src/plugins/**',
|
|
|
|
],
|
2022-03-09 16:27:49 +01:00
|
|
|
});
|