mirror of
https://github.com/strapi/strapi.git
synced 2025-07-29 20:10:21 +00:00
37 lines
697 B
JavaScript
37 lines
697 B
JavaScript
'use strict';
|
|
|
|
module.exports = () => ({
|
|
extends: '@strapi/typescript-utils/tsconfigs/server',
|
|
|
|
compilerOptions: {
|
|
outDir: 'dist',
|
|
rootDir: '.',
|
|
},
|
|
|
|
include: [
|
|
// Include root files
|
|
'./',
|
|
// Include all ts files
|
|
'./**/*.ts',
|
|
// Include all js files
|
|
'./**/*.js',
|
|
// 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.*',
|
|
// Do not include plugins in the server compilation
|
|
'src/plugins/**',
|
|
],
|
|
});
|