Improve development tooling (#1516)

- Running `yarn build` in a `packages/*/` directory will trigger build of all dependencies too, and cache them if possible.
- Fix for `yarn dev` breaking for `rrweb` package whenever changing files in `rrweb` package
- Update typescript, turbo, vite and vite-plugin-dts
- Require `workspaces-to-typescript-project-references` from `prepublish`
This commit is contained in:
Justin Halsall
2024-06-21 19:13:53 +02:00
committed by GitHub
parent a2c8a1a37b
commit a756a45aaf
54 changed files with 416 additions and 243 deletions

View File

@@ -30,11 +30,11 @@
},
"scripts": {
"dev": "vite build --watch",
"build": "tsc -noEmit && vite build",
"build": "yarn turbo run prepublish",
"check-types": "tsc -noEmit",
"test": "vitest run",
"test:watch": "vitest",
"prepublish": "npm run build",
"prepublish": "tsc -noEmit && vite build",
"lint": "yarn eslint src/**/*.ts"
},
"bugs": {
@@ -47,9 +47,9 @@
"@typescript-eslint/parser": "^5.23.0",
"eslint": "^8.15.0",
"puppeteer": "^17.1.3",
"typescript": "^4.9.0",
"vite": "^5.2.8",
"vite-plugin-dts": "^3.8.1"
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vite-plugin-dts": "^3.9.1"
},
"dependencies": {
"rrweb-snapshot": "^2.0.0-alpha.15"

View File

@@ -1,7 +1,7 @@
import {
NodeType as RRNodeType,
Mirror as NodeMirror,
elementNode,
type elementNode,
} from 'rrweb-snapshot';
import type {
canvasMutationData,