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:
21
turbo.json
21
turbo.json
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user