- 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`
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://turborepo.org/schema.json",
|
|
// These root workspace files are reused in workspaces and may affect their build output
|
|
"globalDependencies": [
|
|
".eslintrc.js",
|
|
".prettierrc",
|
|
"vite.config.defaults.ts",
|
|
"tsconfig.json"
|
|
],
|
|
"tasks": {
|
|
"prepublish": {
|
|
"dependsOn": ["^prepublish", "//#references:update"],
|
|
"outputs": [
|
|
"lib/**",
|
|
"es/**",
|
|
"dist/**",
|
|
"typings/**",
|
|
".svelte-kit/**",
|
|
"types/**"
|
|
]
|
|
},
|
|
"test": {
|
|
"dependsOn": ["^prepublish"],
|
|
"passThroughEnv": ["PUPPETEER_HEADLESS"]
|
|
},
|
|
"test:watch": {
|
|
"persistent": true,
|
|
"passThroughEnv": ["PUPPETEER_HEADLESS"],
|
|
"cache": false
|
|
},
|
|
"test:update": {
|
|
"dependsOn": ["^prepublish"],
|
|
"passThroughEnv": ["PUPPETEER_HEADLESS"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["prepublish", "^prepublish"],
|
|
"persistent": true,
|
|
"cache": false
|
|
},
|
|
"lint": {},
|
|
"check-types": {
|
|
"dependsOn": ["//#references:update"]
|
|
},
|
|
"//#references:update": {
|
|
"inputs": ["packages/*/package.json", "packages/plugins/*/package.json"],
|
|
"outputs": [
|
|
"packages/*/tsconfig.json",
|
|
"packages/plugins/*/tsconfig.json"
|
|
]
|
|
}
|
|
}
|
|
}
|