Skip to content

Commit 51b8d7b

Browse files
Lms24billyvg
authored andcommitted
publish(repo): Publish forked rrweb packages to NPM (#20)
This patch adds the necessary configuration around our rrweb fork to publish our own `@sentry-internal/rr*` packages. This includes: - prefixing packages with `@sentry-internal` - adjusting licences and the readme - adding a craft config and a version bump script - adding artifact upload to our build&test GHA - adding the Sentry create release GHA
1 parent d2929a6 commit 51b8d7b

File tree

7 files changed

+13
-23
lines changed

7 files changed

+13
-23
lines changed

packages/rrdom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@rollup/plugin-commonjs": "^20.0.0",
36-
"@rrweb/types": "^2.0.0-alpha.10",
36+
"@sentry-internal/rrweb-types": "^2.0.0-alpha.10",
3737
"@types/jest": "^27.4.1",
3838
"@types/puppeteer": "^5.4.4",
3939
"@typescript-eslint/eslint-plugin": "^5.23.0",

packages/rrweb-player/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"url": "git+https://github.com/rrweb-io/rrweb.git"
5353
},
5454
"keywords": [
55-
"@sentry-internal/rrweb"
55+
"rrweb"
5656
],
5757
"author": "[email protected]",
5858
"license": "MIT",

packages/rrweb-snapshot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"url": "git+https://github.com/rrweb-io/rrweb.git"
2222
},
2323
"keywords": [
24-
"@sentry-internal/rrweb",
24+
"rrweb",
2525
"snapshot",
2626
"DOM"
2727
],

packages/rrweb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"url": "git+ssh://[email protected]/rrweb-io/rrweb.git"
3131
},
3232
"keywords": [
33-
"@sentry-internal/rrweb"
33+
"rrweb"
3434
],
3535
"main": "lib/rrweb-all.cjs",
3636
"module": "es/rrweb/packages/rrweb/src/entries/all.js",

packages/rrweb/src/utils.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ import type {
1212
import {
1313
createMatchPredicate,
1414
distanceToMatch,
15-
IMirror,
16-
Mirror,
17-
} from '@sentry-internal/rrweb-snapshot';
18-
import {
1915
isShadowRoot,
2016
IGNORED_NODE,
21-
classMatchesRegex,
17+
IMirror,
18+
Mirror,
2219
} from '@sentry-internal/rrweb-snapshot';
2320
import type { RRNode, RRIFrameElement } from '@sentry-internal/rrdom';
2421

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"keywords": [
88
"rrweb",
9-
"@sentry-internal/rrweb-types"
9+
"rrweb-types"
1010
],
1111
"scripts": {
1212
"dev": "vite",

yarn.lock

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,13 +3044,6 @@
30443044
estree-walker "^2.0.1"
30453045
picomatch "^2.2.2"
30463046

3047-
"@rrweb/types@^2.0.0-alpha.10":
3048-
version "2.0.0-alpha.10"
3049-
resolved "https://registry.yarnpkg.com/@rrweb/types/-/types-2.0.0-alpha.10.tgz#59227a6afb6c0ace223b90d31efee05a75a92b47"
3050-
integrity sha512-SjpFUq7XJVmMZXuntngmsNH6KCIsFH39tq+vTB96J/tfPkeUsEHszhc4HbeKbcs2TBa+FxAWLb3VQ4fX00Bddg==
3051-
dependencies:
3052-
rrweb-snapshot "^2.0.0-alpha.10"
3053-
30543047
"@rushstack/[email protected]", "@rushstack/node-core-library@^3.53.2":
30553048
version "3.53.2"
30563049
resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.53.2.tgz#f442e121f9e6c8bef9a23b7337e6399ab5c0c579"
@@ -5510,10 +5503,15 @@ csso@^4.0.2:
55105503
dependencies:
55115504
css-tree "^1.1.2"
55125505

5513-
cssom@^0.4.4, cssom@^0.5.0, "cssom@https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz":
5506+
cssom@^0.4.4, "cssom@https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz":
55145507
version "0.6.0"
55155508
resolved "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz#ed298055b97cbddcdeb278f904857629dec5e0e1"
55165509

5510+
cssom@^0.5.0:
5511+
version "0.5.0"
5512+
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36"
5513+
integrity sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==
5514+
55175515
cssom@~0.3.6:
55185516
version "0.3.8"
55195517
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
@@ -13022,11 +13020,6 @@ rollup@~2.78.0:
1302213020
optionalDependencies:
1302313021
fsevents "~2.3.2"
1302413022

13025-
rrweb-snapshot@^2.0.0-alpha.10:
13026-
version "2.0.0-alpha.10"
13027-
resolved "https://registry.yarnpkg.com/rrweb-snapshot/-/rrweb-snapshot-2.0.0-alpha.10.tgz#7f3e0e7c718af8692fbb8192cb7cc0b526bd7c42"
13028-
integrity sha512-RRkQcgYfpsv1zCmd4EeIr5m2brHwqL2HGQF5S4PgZa3+7iJ0VJOnpmFs+hu4h+et+ArjW8bl0b7aAhKkFAVEfg==
13029-
1303013023
run-async@^2.4.0:
1303113024
version "2.4.1"
1303213025
resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz"

0 commit comments

Comments
 (0)