Skip to content

Commit 243f440

Browse files
committed
add build:types script
1 parent 621d03a commit 243f440

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/replay/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"build:watch": "NODE_ENV=production yarn build:all:watch",
1919
"build:dev:watch": "NODE_ENV=development yarn build:all:watch",
2020
"build:all:watch": "yarn clean && run-p \"build:worker --watch\" \"build:core --watch\"",
21+
"build:types": "tsc -p tsconfig.types.json",
2122
"build:npm": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
2223
"circularDepCheck": "#TODO comment in after migration: madge --circular src/index.ts",
2324
"clean": "rimraf build sentry-replay-*.tgz",

packages/replay/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"allowJs": true,
1717
"declaration": true,
1818
"declarationMap": true,
19-
"declarationDir": "./types",
2019
"strictNullChecks": true,
2120
"outDir": "./build/npm/dist"
2221
},

packages/replay/tsconfig.types.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
4+
"compilerOptions": {
5+
"declaration": true,
6+
"declarationMap": true,
7+
"emitDeclarationOnly": true,
8+
"outDir": "build/npm/types"
9+
}
10+
}

0 commit comments

Comments
 (0)