Skip to content

Commit

Permalink
publish(repo): Publish forked rrweb packages to NPM (#20)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lms24 authored and billyvg committed Aug 7, 2023
1 parent d2929a6 commit ec5d56b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/rrdom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rrweb/types": "^2.0.0-alpha.10",
"@sentry-internal/rrweb-types": "^2.0.0-alpha.10",
"@types/jest": "^27.4.1",
"@types/puppeteer": "^5.4.4",
"@typescript-eslint/eslint-plugin": "^5.23.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/rrweb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ import { Replayer } from './replay';
import { _mirror } from './utils';
import * as utils from './utils';

export {
export type {
EventType,
IncrementalSource,
MouseInteractions,
ReplayerEvents,
} from '@sentry-internal/rrweb-types';

export type {
fullSnapshotEvent,
incrementalSnapshotEvent,
inputData,
Expand Down
7 changes: 2 additions & 5 deletions packages/rrweb/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ import type {
import {
createMatchPredicate,
distanceToMatch,
IMirror,
Mirror,
} from '@sentry-internal/rrweb-snapshot';
import {
isShadowRoot,
IGNORED_NODE,
classMatchesRegex,
IMirror,
Mirror,
} from '@sentry-internal/rrweb-snapshot';
import type { RRNode, RRIFrameElement } from '@sentry-internal/rrdom';

Expand Down
19 changes: 6 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3044,13 +3044,6 @@
estree-walker "^2.0.1"
picomatch "^2.2.2"

"@rrweb/types@^2.0.0-alpha.10":
version "2.0.0-alpha.10"
resolved "https://registry.yarnpkg.com/@rrweb/types/-/types-2.0.0-alpha.10.tgz#59227a6afb6c0ace223b90d31efee05a75a92b47"
integrity sha512-SjpFUq7XJVmMZXuntngmsNH6KCIsFH39tq+vTB96J/tfPkeUsEHszhc4HbeKbcs2TBa+FxAWLb3VQ4fX00Bddg==
dependencies:
rrweb-snapshot "^2.0.0-alpha.10"

"@rushstack/node-core-library@3.53.2", "@rushstack/node-core-library@^3.53.2":
version "3.53.2"
resolved "https://registry.yarnpkg.com/@rushstack/node-core-library/-/node-core-library-3.53.2.tgz#f442e121f9e6c8bef9a23b7337e6399ab5c0c579"
Expand Down Expand Up @@ -5510,10 +5503,15 @@ csso@^4.0.2:
dependencies:
css-tree "^1.1.2"

cssom@^0.4.4, cssom@^0.5.0, "cssom@https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz":
cssom@^0.4.4, "cssom@https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz":
version "0.6.0"
resolved "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz#ed298055b97cbddcdeb278f904857629dec5e0e1"

cssom@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.5.0.tgz#d254fa92cd8b6fbd83811b9fbaed34663cc17c36"
integrity sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==

cssom@~0.3.6:
version "0.3.8"
resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a"
Expand Down Expand Up @@ -13022,11 +13020,6 @@ rollup@~2.78.0:
optionalDependencies:
fsevents "~2.3.2"

rrweb-snapshot@^2.0.0-alpha.10:
version "2.0.0-alpha.10"
resolved "https://registry.yarnpkg.com/rrweb-snapshot/-/rrweb-snapshot-2.0.0-alpha.10.tgz#7f3e0e7c718af8692fbb8192cb7cc0b526bd7c42"
integrity sha512-RRkQcgYfpsv1zCmd4EeIr5m2brHwqL2HGQF5S4PgZa3+7iJ0VJOnpmFs+hu4h+et+ArjW8bl0b7aAhKkFAVEfg==

run-async@^2.4.0:
version "2.4.1"
resolved "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz"
Expand Down

0 comments on commit ec5d56b

Please sign in to comment.