strapi/packages/generators/app/lib/resources/json/ts/tsconfig-server.json.js
2022-04-12 16:57:00 +02:00

33 lines
618 B
JavaScript

'use strict';
module.exports = () => ({
extends: '@strapi/typescript-utils/lib/configs/server',
compilerOptions: {
outDir: 'dist',
rootDir: '.',
},
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/**',
],
});