forked from cdn77/debugr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.dtsconfig.js
41 lines (38 loc) · 815 Bytes
/
.dtsconfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const path = require('path');
const pkg = require(path.resolve('package.json'));
const importedLibraries = [
'@debugr/apollo',
'@debugr/console',
'@debugr/core',
'@debugr/elastic',
'@debugr/express',
'@debugr/graphql-common',
'@debugr/html',
'@debugr/http-common',
'@debugr/insaner',
'@debugr/mikroorm',
'@debugr/sentry',
'@debugr/slack',
'@debugr/sql-common',
];
if (pkg.build.externals) {
importedLibraries.push(...pkg.build.externals);
}
module.exports = {
compilationOptions: {
followSymlinks: false
},
entries: [
{
filePath: path.resolve(pkg.build.src),
outFile: path.resolve(pkg.types),
libraries: {
importedLibraries,
},
output: {
inlineDeclareGlobals: true,
inlineDeclareExternals: true
}
}
]
};