Skip to content

Commit 6b3d4f8

Browse files
committed
fix @rollup/plugin-typescript and yarn script problems
1 parent 11dc69e commit 6b3d4f8

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"@rollup/plugin-node-resolve": "^13.1.3",
6565
"@rollup/plugin-replace": "^3.0.1",
6666
"@rollup/plugin-sucrase": "^4.0.3",
67+
"@rollup/plugin-typescript": "^8.3.1",
6768
"@size-limit/preset-small-lib": "^4.5.5",
6869
"@strictsoftware/typedoc-plugin-monorepo": "^0.3.1",
6970
"@types/chai": "^4.1.3",

packages/replay/config/rollup.config.core.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ const config = defineConfig({
2222
external: [...Object.keys(pkg.dependencies || {})],
2323
plugins: [
2424
typescript({
25-
tsconfig: IS_PRODUCTION
26-
? './config/tsconfig.core.json'
27-
: './tsconfig.json',
25+
tsconfig: IS_PRODUCTION ? './config/tsconfig.core.json' : './tsconfig.json',
2826
}),
2927
replace({
3028
// __SENTRY_DEBUG__ should be save to replace in any case, so no checks for assignments necessary

packages/replay/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
"sideEffects": false,
99
"scripts": {
1010
"bootstrap": "yarn && cd demo && yarn #TODO: change after migration",
11-
"build": "NODE_ENV=production yarn build:all",
11+
"build": "yarn build:rollup",
12+
"build:rollup": "NODE_ENV=production yarn build:all",
1213
"build:dev": "NODE_ENV=development yarn build:all",
1314
"build:all": "run-s clean build:worker build:core",
14-
"build:core": "yarn build:rollup --config config/rollup.config.core.ts",
15-
"build:worker": "yarn build:rollup --config config/rollup.config.worker.ts",
16-
"build:rollup": "rollup --configPlugin @rollup/plugin-typescript",
15+
"build:core": "yarn build:actualRollup --config config/rollup.config.core.ts",
16+
"build:worker": "yarn build:actualRollup --config config/rollup.config.worker.ts",
17+
"build:actualRollup": "rollup --configPlugin @rollup/plugin-typescript",
1718
"build:watch": "NODE_ENV=production yarn build:all:watch",
1819
"build:dev:watch": "NODE_ENV=development yarn build:all:watch",
1920
"build:all:watch": "yarn clean && run-p \"build:worker --watch\" \"build:core --watch\"",
@@ -44,7 +45,6 @@
4445
"homepage": "https://github.com/getsentry/sentry-replay#readme",
4546
"devDependencies": {
4647
"@babel/core": "^7.17.5",
47-
"@rollup/plugin-typescript": "^8.3.1",
4848
"@sentry/browser": "7.21.0",
4949
"@types/lodash.debounce": "^4.0.7",
5050
"@types/lodash.throttle": "^4.1.7",

0 commit comments

Comments
 (0)