fix: some bundle stuff

This commit is contained in:
Braks
2021-07-10 14:28:21 +02:00
parent e87d13afb5
commit f685c7a20a
6 changed files with 13 additions and 18 deletions
+4 -5
View File
@@ -92,17 +92,16 @@ function createConfig(format, output, plugins = []) {
if (isGlobalBuild) output.name = pascalcase(pkg.name);
const shouldEmitDeclarations = !hasTSChecked;
const tsPlugin = ts({
check: !hasTSChecked,
clean: !hasTSChecked,
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
cacheRoot: path.resolve(__dirname, 'node_modules/.rts2_cache'),
tsconfigOverride: {
compilerOptions: {
sourceMap: true,
declaration: shouldEmitDeclarations,
declarationMap: shouldEmitDeclarations
sourceMap: !hasTSChecked,
declaration: !hasTSChecked,
declarationMap: !hasTSChecked
},
exclude: ['__tests__', 'test-dts']
}