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