Skip to content

Commit

Permalink
[HIG-2649] use yarn v3 workspace dependencies (#91)
Browse files Browse the repository at this point in the history
allows us to only publish `@highlight-run/rrweb` while using the rest of the workspace packages as internal dependencies.
makes it easier to manage versions because it allows versioning `@highlight-run/rrweb` alone.
  • Loading branch information
Vadman97 committed Oct 17, 2022
1 parent d3dff5e commit 6738bdb
Show file tree
Hide file tree
Showing 10 changed files with 813 additions and 13 deletions.
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,14 @@ dist

# `.yarn/install-state.gz` is an optimization file that you shouldn't ever have to commit.
# It simply stores the exact state of your project so that the next commands can boot without having to resolve your workspaces all over again.
.yarn/install-state.gz
.yarn/install-state.gz

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions


783 changes: 783 additions & 0 deletions .yarn/releases/yarn-berry.cjs

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
yarnPath: '.yarn/releases/yarn-1.23.0-20220130.1630.cjs'
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-berry.cjs
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"workspaces": [
"packages/*"
],
"packageManager": "yarn@3.2.3",
"devDependencies": {
"@monorepo-utils/workspaces-to-typescript-project-references": "^2.8.2",
"@typescript-eslint/eslint-plugin": "^5.25.0",
Expand Down Expand Up @@ -44,9 +45,6 @@
"lint": "yarn run concurrently --success=all -r -m=1 'yarn run markdownlint docs' 'yarn eslint packages/*/src --ext .ts,.tsx,.js,.jsx,.svelte'",
"lint:report": "yarn eslint --output-file eslint_report.json --format json packages/*/src --ext .ts,.tsx,.js,.jsx"
},
"resolutions": {
"**/jsdom/cssom": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz"
},
"browserslist": [
"defaults",
"not op_mini all"
Expand Down
5 changes: 3 additions & 2 deletions packages/rrdom-nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@highlight-run/rrdom-nodejs",
"version": "0.1.8",
"private": true,
"scripts": {
"dev": "rollup -c -w",
"bundle": "rollup --config",
Expand Down Expand Up @@ -46,8 +47,8 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@highlight-run/rrdom": "0.1.17",
"@highlight-run/rrweb-snapshot": "1.1.31",
"@highlight-run/rrdom": "workspace:*",
"@highlight-run/rrweb-snapshot": "workspace:*",
"cssom": "^0.5.0",
"cssstyle": "^2.3.0",
"nwsapi": "^2.2.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/rrdom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@highlight-run/rrdom",
"version": "0.1.18",
"private": true,
"homepage": "https://github.com/rrweb-io/rrweb/tree/main/packages/rrdom#readme",
"license": "MIT",
"main": "lib/rrdom.js",
Expand Down Expand Up @@ -46,6 +47,6 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@highlight-run/rrweb-snapshot": "1.1.31"
"@highlight-run/rrweb-snapshot": "workspace:*"
}
}
4 changes: 3 additions & 1 deletion packages/rrweb-player/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"name": "@highlight-run/rrweb-player",
"version": "1.0.1",
"private": true,
"devDependencies": {
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.2.1",
"@types/offscreencanvas": "^2019.6.4",
"eslint": "^8.23.1",
"eslint-config-google": "^0.14.0",
"eslint-plugin-svelte3": "^4.0.0",
"postcss-easy-import": "^3.0.0",
Expand All @@ -23,7 +25,7 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@highlight-run/rrweb": "2.1.10",
"@highlight-run/rrweb": "workspace:*",
"@tsconfig/svelte": "^1.0.1"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/rrweb-snapshot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@highlight-run/rrweb-snapshot",
"version": "2.0.1",
"private": true,
"description": "rrweb's component to take a snapshot of DOM, aka DOM serializer",
"scripts": {
"prepare": "npm run prepack",
Expand Down Expand Up @@ -46,6 +47,7 @@
"@types/node": "^10.11.3",
"@types/puppeteer": "^1.12.4",
"cross-env": "^5.2.0",
"eslint": "^8.23.1",
"jest": "^27.2.4",
"jest-snapshot": "^23.6.0",
"jsdom": "^16.4.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/rrweb/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@highlight-run/rrweb",
"version": "2.1.10",
"version": "2.2.0",
"description": "record and replay the web",
"scripts": {
"prepare": "npm run prepack",
Expand Down Expand Up @@ -58,6 +58,7 @@
"construct-style-sheets-polyfill": "^3.1.0",
"cross-env": "^5.2.0",
"esbuild": "^0.14.38",
"eslint": "^8.23.1",
"fast-mhtml": "^1.1.9",
"identity-obj-proxy": "^3.0.0",
"ignore-styles": "^5.0.1",
Expand All @@ -80,8 +81,8 @@
"typescript": "^4.7.3"
},
"dependencies": {
"@highlight-run/rrdom": "0.1.17",
"@highlight-run/rrweb-snapshot": "1.1.31",
"@highlight-run/rrdom": "workspace:*",
"@highlight-run/rrweb-snapshot": "workspace:*",
"@types/css-font-loading-module": "0.0.7",
"@xstate/fsm": "^1.4.0",
"base64-arraybuffer": "^1.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function serializeArg(
};
}

return value as CanvasArg;
return value as never as CanvasArg;
}

export const serializeArgs = (
Expand Down

0 comments on commit 6738bdb

Please sign in to comment.