Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 35 additions & 12 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,55 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": ["npm_package_version", "npm_package_name"],
"globalEnv": [
"npm_package_version",
"npm_package_name",
"NODE_ENV",
"CI"
],
"pipeline": {
"build": {
"dependsOn": ["prebuild", "ts-declarations", "^build"],
"outputs": ["dist/**"]
"outputs": ["dist/**", "lib/**"]
},
"clean": {
"cache": false,
"outputs": []
},
"clean": {},
"dev": {
"cache": false,
"persistent": true
},
"format": {},
"lint": {
"dependsOn": ["^lint"]
"format": {
"outputs": []
},
"pack": {
"dependsOn": ["lint", "build", "test"]
"lint": {
"dependsOn": ["^lint"],
"outputs": []
},
"prebuild": {},
"test": {
"dependsOn": ["build"]
"dependsOn": ["build"],
"outputs": ["coverage/**"]
},
"prebuild": {
"outputs": []
},
"ts-declarations": {
"dependsOn": ["prebuild", "^ts-declarations", "^build"]
# TS declarations only need preceding steps or dependencies' declarations,
# not necessarily the full 'build' of the dependency itself.
"dependsOn": ["prebuild", "^ts-declarations"],
# Assuming declarations output to 'dist' or a specific type folder
"outputs": ["dist/types/**", "*.d.ts"]
},
"pack": {
# Only depends on 'build' for the compiled artifacts.
# Removed 'lint' and 'test' for faster packing cycles.
"dependsOn": ["build"],
"outputs": ["*.tgz"]
},
# Specialized task (placed last for readability)
"@starkgate/web#lint": {
"env": ["NETLIFY"]
"env": ["NETLIFY"],
"outputs": []
}
}
}