AbemaTV, Inc. All Rights Reserved
pnpm and turbo
18
$ cat pnpm-workspace.yaml
packages:
- 'packages/*'
$ cat turbo.json
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"fmt": {},
"fmt:ci": {},
"tsc": {},
"lint": {},
"lint:fix": {},
"test": {},
"all": {
"dependsOn": ["fmt", "tsc", "lint", "test"]
}
}
}
$ cat package.json
…
"scripts": {
"postinstall": "pnpx husky install",
"test:renovate": "renovate-config-validator",
"all": "turbo run --parallel all",
"all:ci": "turbo run --parallel all:ci",
"fmt": "turbo run --parallel fmt",
"fmt:ci": "turbo run --parallel fmt:ci",
"lint": "turbo run --parallel lint",
"lint:fix": "turbo run --parallel lint:fix",
"tsc": "turbo run --parallel tsc",
"test": "turbo run --parallel test"
},
"packageManager": "
[email protected]",
"engines": {
"pnpm": ">=8.0.0"
},
…