Skip to content

Commit

Permalink
build(replay): Remove src sub-directory in build/types (#6353)
Browse files Browse the repository at this point in the history
Previously, types were built into `build/npm/types/src/index.d.ts`. The `src` sub-directory shouldn't be in there, so this patch fixes that by removing some leftover properties in the main `tsconfig.json` which caused this sub-directory to appear. 

Also removed a few additional unnecessary properties, such as `types` which we only need in `tsconfig.test.json`.
  • Loading branch information
Lms24 authored Dec 1, 2022
1 parent d9c82b8 commit 7c5aab3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion packages/replay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "User replays for Sentry",
"main": "build/npm/cjs/index.js",
"module": "build/npm/esm/index.js",
"types": "build/npm/types/src/index.d.ts",
"types": "build/npm/types/index.d.ts",
"sideEffects": false,
"scripts": {
"build:rollup": "run-s build:worker build:core",
Expand Down
7 changes: 0 additions & 7 deletions packages/replay/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"paths": {
"@test": ["./test"],
"@test/*": ["./test/*"]
},
"baseUrl": ".",
"rootDir": ".",
"types": ["node", "jest"],
"module": "esnext",
"noImplicitAny": true,
"noEmitOnError": false,
Expand Down

0 comments on commit 7c5aab3

Please sign in to comment.