Skip to content

Commit 9266eae

Browse files
authored
fix: Typings (#1746)
* fix: Typings * meta: Changelog
1 parent 18ecadc commit 9266eae

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
## Unreleased
4+
## 4.3.2
5+
6+
- [browser] fix: Typings for npm package
47

58
## 4.3.1
69

packages/browser/rollup.config.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,18 @@ const bundleConfig = {
1919
plugins: [
2020
typescript({
2121
tsconfig: 'tsconfig.build.json',
22-
tsconfigOverride: { compilerOptions: { declaration: false } },
22+
tsconfigOverride: {
23+
compilerOptions: {
24+
declaration: false,
25+
paths: {
26+
'@sentry/utils/*': ['../utils/src/*'],
27+
'@sentry/core': ['../core/src'],
28+
'@sentry/hub': ['../hub/src'],
29+
'@sentry/types': ['../types/src'],
30+
'@sentry/minimal': ['../minimal/src'],
31+
},
32+
},
33+
},
2334
include: ['*.ts+(|x)', '**/*.ts+(|x)', '../**/*.ts+(|x)'],
2435
}),
2536
resolve({
@@ -45,11 +56,15 @@ export default [
4556
interop: false,
4657
sourcemap: true,
4758
},
48-
external: ['@sentry/core', '@sentry/hub', '@sentry/minimal', 'tslib'],
59+
external: ['@sentry/core', '@sentry/hub', '@sentry/minimal'],
4960
plugins: [
5061
typescript({
5162
tsconfig: 'tsconfig.build.json',
52-
include: ['*.ts+(|x)', '**/*.ts+(|x)', '../**/*.ts+(|x)'],
63+
tsconfigOverride: {
64+
compilerOptions: {
65+
rootDir: 'src',
66+
},
67+
},
5368
}),
5469
resolve({
5570
jsnext: true,

packages/browser/tsconfig.build.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"outDir": "dist",
6-
"paths": {
7-
"@sentry/utils/*": ["../utils/src/*"],
8-
"@sentry/core": ["../core/src"],
9-
"@sentry/hub": ["../hub/src"],
10-
"@sentry/types": ["../types/src"],
11-
"@sentry/minimal": ["../minimal/src"]
12-
}
5+
"outDir": "dist"
136
},
147
"include": ["src/**/*"]
158
}

0 commit comments

Comments
 (0)