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
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 45640672fe
commit 5bb69155c5
54 changed files with 416 additions and 243 deletions

View File

@@ -9,7 +9,7 @@
],
"tasks": {
"prepublish": {
"dependsOn": ["^prepublish"],
"dependsOn": ["^prepublish", "//#references:update"],
"outputs": [
"lib/**",
"es/**",
@@ -25,19 +25,28 @@
},
"test:watch": {
"persistent": true,
"passThroughEnv": ["PUPPETEER_HEADLESS"]
"passThroughEnv": ["PUPPETEER_HEADLESS"],
"cache": false
},
"test:update": {
"dependsOn": ["^prepublish"],
"passThroughEnv": ["PUPPETEER_HEADLESS"]
},
"dev": {
// "dependsOn": ["^prepublish"],
"dependsOn": ["prepublish", "^prepublish"],
"persistent": true,
"cache": false,
"passThroughEnv": ["CLEAR_DIST_DIR"]
"cache": false
},
"lint": {},
"check-types": {}
"check-types": {
"dependsOn": ["//#references:update"]
},
"//#references:update": {
"inputs": ["packages/*/package.json", "packages/plugins/*/package.json"],
"outputs": [
"packages/*/tsconfig.json",
"packages/plugins/*/tsconfig.json"
]
}
}
}