Skip to content

Commit 2590188

Browse files
author
Luca Forstner
authored
fix: Add typing exports to packages (#208)
1 parent a5d322d commit 2590188

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ plugin({
2828
- feat(esbuild): Add debug ID injection for esbuild (#202)
2929
- feat: Promote debug ID uploading to stable via `sourcemaps` option (#204)
3030
- fix(core): Also do debug ID injection for `.cjs` files (#203)
31+
- fix: Add typing exports to packages (#208)
3132

3233
## 0.6.0
3334

packages/bundler-plugin-core/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,21 @@
1414
"sentry-release-injection-file.js",
1515
"sentry-esbuild-debugid-injection-file.js"
1616
],
17+
"exports": {
18+
".": {
19+
"import": "./dist/esm/index.mjs",
20+
"require": "./dist/cjs/index.js",
21+
"types": "./dist/types/index.d.ts"
22+
},
23+
"./sentry-release-injection-file": {
24+
"import": "./sentry-release-injection-file.js",
25+
"require": "./sentry-release-injection-file.js"
26+
},
27+
"./sentry-esbuild-debugid-injection-file": {
28+
"import": "./sentry-esbuild-debugid-injection-file.js",
29+
"require": "./sentry-esbuild-debugid-injection-file.js"
30+
}
31+
},
1732
"main": "dist/cjs/index.js",
1833
"module": "dist/esm/index.mjs",
1934
"types": "dist/types/index.d.ts",

packages/esbuild-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"exports": {
2222
".": {
2323
"import": "./dist/esm/index.mjs",
24-
"require": "./dist/cjs/index.js"
24+
"require": "./dist/cjs/index.js",
25+
"types": "./dist/types/index.d.ts"
2526
}
2627
},
2728
"main": "dist/cjs/index.js",

packages/rollup-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"exports": {
2323
".": {
2424
"import": "./dist/esm/index.mjs",
25-
"require": "./dist/cjs/index.js"
25+
"require": "./dist/cjs/index.js",
26+
"types": "./dist/types/index.d.ts"
2627
}
2728
},
2829
"main": "dist/cjs/index.js",

packages/vite-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"exports": {
2222
".": {
2323
"import": "./dist/esm/index.mjs",
24-
"require": "./dist/cjs/index.js"
24+
"require": "./dist/cjs/index.js",
25+
"types": "./dist/types/index.d.ts"
2526
}
2627
},
2728
"main": "dist/cjs/index.js",

packages/webpack-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"exports": {
2323
".": {
2424
"import": "./dist/esm/index.mjs",
25-
"require": "./dist/cjs/index.js"
25+
"require": "./dist/cjs/index.js",
26+
"types": "./dist/types/index.d.ts"
2627
}
2728
},
2829
"main": "dist/cjs/index.js",

0 commit comments

Comments
 (0)