diff --git a/AGENTS.md b/AGENTS.md index cc4004980d9..707b7b605b9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -135,7 +135,7 @@ Each Rust crate has a `package.json` whose **identity and workspace-dependency w mise run sync:turborepo # sync package.json identity + deps from Cargo.toml metadata ``` -`sync:turborepo` only manages that generated wiring — the `scripts` section is hand-maintained and is used by CI and Turborepo (e.g. `test:unit`, `lint:clippy`, `doc:dependency-diagram`), so add or edit scripts by hand. The task wraps the `repo-chores` CLI; the equivalent direct invocation is `cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo`. A related task, `mise run fix:package-json`, sorts `package.json` keys consistently. +`sync:turborepo` only manages that generated wiring. A crate's tasks live in its `turbo.json`, each with the `command` Turborepo runs (e.g. `test:unit`, `lint:clippy`, `doc:dependency-diagram`); the `package.json` carries no `scripts`. Add or edit tasks there by hand. The task wraps the `repo-chores` CLI; the equivalent direct invocation is `cargo run --package hash-repo-chores --bin repo-chores-cli -- sync-turborepo`. A related task, `mise run fix:package-json`, sorts `package.json` keys consistently. ## Git commits diff --git a/apps/hash-graph/docs/task-dependencies.json b/apps/hash-graph/docs/task-dependencies.json index 40143851c0a..6f4af829768 100644 --- a/apps/hash-graph/docs/task-dependencies.json +++ b/apps/hash-graph/docs/task-dependencies.json @@ -24,6 +24,10 @@ "@rust/darwin-kperf-codegen" ] }, + "build:docker:dev": { + "dependsOn": [], + "cache": false + }, "compile": { "dependsOn": [], "cache": false diff --git a/apps/hash-graph/package.json b/apps/hash-graph/package.json index e9df825aaf3..0c8a04f9a96 100644 --- a/apps/hash-graph/package.json +++ b/apps/hash-graph/package.json @@ -4,22 +4,6 @@ "private": true, "description": "The entity-graph query-layer for the HASH datastore", "license": "AGPL-3", - "scripts": { - "build:docker": "docker buildx build --build-arg PROFILE=release --tag hash-graph --file docker/Dockerfile ../../ --load", - "build:docker:dev": "docker buildx build --build-arg PROFILE=dev --tag hash-graph --file docker/Dockerfile ../../ --load", - "compile": "cargo build --bin hash-graph --all-features", - "compile:release": "cargo build --bin hash-graph --all-features --release", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "start": "../../target/release/hash-graph server", - "start:healthcheck": "../../target/release/hash-graph server --healthcheck --wait --timeout 1200 --logging-console-level=warn", - "start:migrate": "../../target/release/hash-graph migrate --user postgres --password postgres", - "start:test": "../../target/debug/hash-graph server", - "start:test:healthcheck": "../../target/debug/hash-graph server --healthcheck --wait --timeout 300 --logging-console-level=warn", - "start:test:migrate": "../../target/debug/hash-graph migrate --user postgres --password postgres", - "test:unit": "mise run test:unit @apps/hash-graph" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/apps/hash-graph/turbo.json b/apps/hash-graph/turbo.json index 529ef33dee5..e87870354b1 100644 --- a/apps/hash-graph/turbo.json +++ b/apps/hash-graph/turbo.json @@ -2,24 +2,134 @@ "extends": ["//"], "tasks": { "start:migrate": { + "command": [ + "../../target/release/hash-graph", + "migrate", + "--user", + "postgres", + "--password", + "postgres" + ], "cache": false, "dependsOn": ["compile:release"] }, "start:healthcheck": { + "command": [ + "../../target/release/hash-graph", + "server", + "--healthcheck", + "--wait", + "--timeout", + "1200", + "--logging-console-level=warn" + ], "dependsOn": ["compile:release"] }, "start": { + "command": ["../../target/release/hash-graph", "server"], "dependsOn": ["start:migrate"] }, "start:test:migrate": { + "command": [ + "../../target/debug/hash-graph", + "migrate", + "--user", + "postgres", + "--password", + "postgres" + ], "cache": false, "dependsOn": ["compile"] }, "start:test:healthcheck": { + "command": [ + "../../target/debug/hash-graph", + "server", + "--healthcheck", + "--wait", + "--timeout", + "300", + "--logging-console-level=warn" + ], "dependsOn": ["compile"] }, "start:test": { + "command": ["../../target/debug/hash-graph", "server"], "dependsOn": ["start:test:migrate"] + }, + "build:docker": { + "command": [ + "docker", + "buildx", + "build", + "--build-arg", + "PROFILE=release", + "--tag", + "hash-graph", + "--file", + "docker/Dockerfile", + "../../", + "--load" + ] + }, + "build:docker:dev": { + "cache": false, + "command": [ + "docker", + "buildx", + "build", + "--build-arg", + "PROFILE=dev", + "--tag", + "hash-graph", + "--file", + "docker/Dockerfile", + "../../", + "--load" + ] + }, + "compile": { + "command": ["cargo", "build", "--bin", "hash-graph", "--all-features"] + }, + "compile:release": { + "command": [ + "cargo", + "build", + "--bin", + "hash-graph", + "--all-features", + "--release" + ] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@apps/hash-graph"] } } } diff --git a/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json b/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json index 466184a1df8..3f42614d3c1 100644 --- a/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json +++ b/libs/@blockprotocol/type-system/rust/docs/task-dependencies.json @@ -32,10 +32,15 @@ ] }, "test:unit": { - "dependsOn": [], + "dependsOn": [ + "test:unit:doc" + ], "env": [ "TEST_COVERAGE" ] + }, + "test:unit:doc": { + "dependsOn": [] } } } diff --git a/libs/@blockprotocol/type-system/rust/package.json b/libs/@blockprotocol/type-system/rust/package.json index 18856636a13..6751f42c673 100644 --- a/libs/@blockprotocol/type-system/rust/package.json +++ b/libs/@blockprotocol/type-system/rust/package.json @@ -4,14 +4,6 @@ "private": true, "description": "Definitions of types within the Block Protocol Type System", "license": "MIT OR Apache-2.0", - "scripts": { - "build:types": "INSTA_UPDATE=always mise exec --env dev cargo:cargo-insta -- cargo-insta test --features codegen --test codegen", - "build:wasm": "mise exec --env prod github:wasm-bindgen/wasm-pack -- wasm-pack build --target web --out-name type-system --scope blockprotocol --release . && rm pkg/package.json", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root type-system --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "cargo hack nextest run --feature-powerset --all-targets && cargo test --all-features --doc" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/hash-codec": "workspace:*", diff --git a/libs/@blockprotocol/type-system/rust/turbo.json b/libs/@blockprotocol/type-system/rust/turbo.json index 302c8aa5e02..a0dd7f52e63 100644 --- a/libs/@blockprotocol/type-system/rust/turbo.json +++ b/libs/@blockprotocol/type-system/rust/turbo.json @@ -2,12 +2,89 @@ "extends": ["//"], "tasks": { "build:wasm": { + "command": [ + "mise", + "exec", + "--env", + "prod", + "github:wasm-bindgen/wasm-pack", + "--", + "wasm-pack", + "build", + "--target", + "web", + "--out-name", + "type-system", + "--scope", + "blockprotocol", + "--release", + ".", + "--no-pack" + ], "dependsOn": ["^manifest"], "outputs": ["pkg/**"] }, "build:types": { + "command": [ + "env", + "INSTA_UPDATE=always", + "mise", + "exec", + "--env", + "dev", + "cargo:cargo-insta", + "--", + "cargo-insta", + "test", + "--features", + "codegen", + "--test", + "codegen" + ], "dependsOn": ["^manifest"], "outputs": ["types/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "type-system", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "cargo", + "hack", + "nextest", + "run", + "--feature-powerset", + "--all-targets" + ], + "dependsOn": ["^manifest", "test:unit:doc"] + }, + "test:unit:doc": { + "command": ["cargo", "test", "--all-features", "--doc"], + "dependsOn": ["^manifest"] } } } diff --git a/libs/@hashintel/ds-components/vercel-build.sh b/libs/@hashintel/ds-components/vercel-build.sh new file mode 100755 index 00000000000..dd9f209a857 --- /dev/null +++ b/libs/@hashintel/ds-components/vercel-build.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +set -euo pipefail + +eval "$(mise activate bash --shims)" + +echo "Changing dir to root" +cd ../../.. + +# TODO: Mise is picking up `.env` files. We need to overhaul our approach for +# environment variables. To avoid this in the meantime, we'll remove the +# `.env` file. +# See: https://linear.app/hash/issue/H-3213/use-consistent-naming-schema-for-environment-variables +# See: https://linear.app/hash/issue/H-4202/sort-out-which-environment-variables-are-defined-where +# See: https://linear.app/hash/issue/H-3212/clean-up-env-files +rm -f .env + +echo "Building the design system component gallery" +turbo run build:ladle --filter='@hashintel/ds-components' --env-mode=loose diff --git a/libs/@hashintel/ds-components/vercel-install.sh b/libs/@hashintel/ds-components/vercel-install.sh new file mode 100755 index 00000000000..89285f814c1 --- /dev/null +++ b/libs/@hashintel/ds-components/vercel-install.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +set -euo pipefail + +echo "Changing dir to root" +cd ../../.. + +echo "updating certificates" +yum update ca-certificates -y + +echo "installing mise" +./.config/mise/install.sh +eval "$(mise activate bash --shims)" + +# The ladle build is Node throughout — `ladle build` <- `codegen` <- the +# `ds-helpers` build — and `.yarnrc.yml` sets `enableScripts: false`, so nothing +# compiles during install. That leaves out the Rust toolchain, wasm-pack, +# binaryen, java, protoc and redocly the other Vercel apps here install; turbo +# loads the Cargo workspace only for a selection that contains a crate. +# +# turbo comes from the pin rather than the build image: the root `turbo.json` +# declares future flags that only the pinned version accepts. +echo "Installing prerequisites" +mise install --locked node npm:turbo + +echo "Installing yarn dependencies" +LEFTHOOK=0 yarn install --immutable diff --git a/libs/@hashintel/ds-components/vercel.json b/libs/@hashintel/ds-components/vercel.json index 86ce970113b..7aaa33fa32d 100644 --- a/libs/@hashintel/ds-components/vercel.json +++ b/libs/@hashintel/ds-components/vercel.json @@ -3,6 +3,7 @@ "silent": true, "autoJobCancelation": true }, - "buildCommand": "turbo run build:ladle", + "buildCommand": "./vercel-build.sh", + "installCommand": "./vercel-install.sh", "outputDirectory": ".build/ladle" } diff --git a/libs/@local/codec/rust/package.json b/libs/@local/codec/rust/package.json index b7738595577..b5fe74b668e 100644 --- a/libs/@local/codec/rust/package.json +++ b/libs/@local/codec/rust/package.json @@ -3,13 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:types": "INSTA_UPDATE=always mise exec --env dev cargo:cargo-insta -- cargo-insta test --features codegen,numeric --test codegen", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-codec --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-codec" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-wire-protocol": "workspace:*" diff --git a/libs/@local/codec/rust/turbo.json b/libs/@local/codec/rust/turbo.json index 5df3983a2ad..e68c45ddcdb 100644 --- a/libs/@local/codec/rust/turbo.json +++ b/libs/@local/codec/rust/turbo.json @@ -2,8 +2,54 @@ "extends": ["//"], "tasks": { "build:types": { + "command": [ + "env", + "INSTA_UPDATE=always", + "mise", + "exec", + "--env", + "dev", + "cargo:cargo-insta", + "--", + "cargo-insta", + "test", + "--features", + "codegen,numeric", + "--test", + "codegen" + ], "dependsOn": ["^manifest"], "outputs": ["types/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-codec", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-codec"] } } } diff --git a/libs/@local/codegen/docs/task-dependencies.json b/libs/@local/codegen/docs/task-dependencies.json index 12ae85fbc36..5e8efa4962b 100644 --- a/libs/@local/codegen/docs/task-dependencies.json +++ b/libs/@local/codegen/docs/task-dependencies.json @@ -21,10 +21,15 @@ ] }, "test:unit": { - "dependsOn": [], + "dependsOn": [ + "test:unit:doc" + ], "env": [ "TEST_COVERAGE" ] + }, + "test:unit:doc": { + "dependsOn": [] } } } diff --git a/libs/@local/codegen/package.json b/libs/@local/codegen/package.json index e62b9cb6a8e..b2f28bc73fa 100644 --- a/libs/@local/codegen/package.json +++ b/libs/@local/codegen/package.json @@ -2,11 +2,5 @@ "name": "@rust/hash-codegen", "version": "0.0.0-private", "private": true, - "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-codegen --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "cargo hack nextest run --feature-powerset --all-targets && cargo test --all-features --doc" - } + "license": "AGPL-3" } diff --git a/libs/@local/codegen/turbo.json b/libs/@local/codegen/turbo.json new file mode 100644 index 00000000000..9a59e2e2d67 --- /dev/null +++ b/libs/@local/codegen/turbo.json @@ -0,0 +1,47 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-codegen", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "cargo", + "hack", + "nextest", + "run", + "--feature-powerset", + "--all-targets" + ], + "dependsOn": ["^manifest", "test:unit:doc"] + }, + "test:unit:doc": { + "command": ["cargo", "test", "--all-features", "--doc"], + "dependsOn": ["^manifest"] + } + } +} diff --git a/libs/@local/config/package.json b/libs/@local/config/package.json index 81a0f523343..73907f875b5 100644 --- a/libs/@local/config/package.json +++ b/libs/@local/config/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-config --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-config" - }, "dependencies": { "@rust/error-stack": "workspace:*" } diff --git a/libs/@local/config/turbo.json b/libs/@local/config/turbo.json new file mode 100644 index 00000000000..2d6f5135e88 --- /dev/null +++ b/libs/@local/config/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-config", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-config"] + } + } +} diff --git a/libs/@local/effect-dns/hickory/rust/package.json b/libs/@local/effect-dns/hickory/rust/package.json index 1e6fc37b6d1..adf3d93f210 100644 --- a/libs/@local/effect-dns/hickory/rust/package.json +++ b/libs/@local/effect-dns/hickory/rust/package.json @@ -3,10 +3,5 @@ "version": "0.0.0-private", "private": true, "description": "Hickory DNS implementation of DNS effect library", - "license": "MIT OR Apache-2.0", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root effect-dns-hickory --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/@local/effect-dns/hickory/rust/turbo.json b/libs/@local/effect-dns/hickory/rust/turbo.json new file mode 100644 index 00000000000..12339933418 --- /dev/null +++ b/libs/@local/effect-dns/hickory/rust/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "effect-dns-hickory", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/graph/api/docs/task-dependencies.json b/libs/@local/graph/api/docs/task-dependencies.json index ad932e59880..cfcc8ffe0bd 100644 --- a/libs/@local/graph/api/docs/task-dependencies.json +++ b/libs/@local/graph/api/docs/task-dependencies.json @@ -58,8 +58,19 @@ "@rust/darwin-kperf-codegen" ] }, + "lint:openapi": { + "dependsOn": [ + "build:openapi" + ], + "cache": false, + "affectedBy": [ + "@rust/darwin-kperf-codegen" + ] + }, "test:unit": { - "dependsOn": [], + "dependsOn": [ + "lint:openapi" + ], "env": [ "TEST_COVERAGE" ], diff --git a/libs/@local/graph/api/package.json b/libs/@local/graph/api/package.json index 1246df416de..1f3a7934f66 100644 --- a/libs/@local/graph/api/package.json +++ b/libs/@local/graph/api/package.json @@ -4,13 +4,6 @@ "private": true, "description": "HASH Graph API", "license": "AGPL-3", - "scripts": { - "build:openapi": "cargo run --bin openapi-spec-generator", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-api --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-api && yarn build:openapi && git --no-pager diff --exit-code --color openapi" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/api/turbo.json b/libs/@local/graph/api/turbo.json index 5ecb575d90c..db2d63b944b 100644 --- a/libs/@local/graph/api/turbo.json +++ b/libs/@local/graph/api/turbo.json @@ -2,8 +2,52 @@ "extends": ["//"], "tasks": { "build:openapi": { + "command": ["cargo", "run", "--bin", "openapi-spec-generator"], "dependsOn": ["^manifest"], "outputs": ["openapi/openapi.json", "openapi/models/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-api", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "lint:openapi": { + "command": [ + "git", + "--no-pager", + "diff", + "--exit-code", + "--color", + "openapi" + ], + "dependsOn": ["build:openapi"], + "cache": false + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-graph-api"], + "dependsOn": ["^manifest", "lint:openapi"] } } } diff --git a/libs/@local/graph/atlas/package.json b/libs/@local/graph/atlas/package.json index 57e55851c4a..e0309a42240 100644 --- a/libs/@local/graph/atlas/package.json +++ b/libs/@local/graph/atlas/package.json @@ -3,15 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:docker": "docker buildx build --build-arg PROFILE=release --tag hash-graph-atlas --file docker/Dockerfile ../../../../ --load", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-atlas --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo nextest run --package hash-graph-atlas --all-features --filterset 'kind(test)'", - "test:miri": "cargo miri test --lib -- ::miri::", - "test:unit": "mise run test:unit @rust/hash-graph-atlas -- --filterset 'not kind(test)'" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/atlas/turbo.json b/libs/@local/graph/atlas/turbo.json new file mode 100644 index 00000000000..cccafd40adf --- /dev/null +++ b/libs/@local/graph/atlas/turbo.json @@ -0,0 +1,73 @@ +{ + "extends": ["//"], + "tasks": { + "build:docker": { + "command": [ + "docker", + "buildx", + "build", + "--build-arg", + "PROFILE=release", + "--tag", + "hash-graph-atlas", + "--file", + "docker/Dockerfile", + "../../../../", + "--load" + ] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-atlas", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:integration": { + "command": [ + "cargo", + "nextest", + "run", + "--package", + "hash-graph-atlas", + "--all-features", + "--filterset", + "kind(test)" + ] + }, + "test:miri": { + "command": ["cargo", "miri", "test", "--lib", "--", "::miri::"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-atlas", + "--", + "--filterset", + "not kind(test)" + ] + } + } +} diff --git a/libs/@local/graph/authentication/package.json b/libs/@local/graph/authentication/package.json index b0f588625d8..e07468eeb5d 100644 --- a/libs/@local/graph/authentication/package.json +++ b/libs/@local/graph/authentication/package.json @@ -3,13 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-authentication --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo nextest run --all-features --filterset 'kind(test)'", - "test:unit": "mise run test:unit @rust/hash-graph-authentication -- --filterset 'not kind(test)'" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/authentication/turbo.json b/libs/@local/graph/authentication/turbo.json new file mode 100644 index 00000000000..ae43ce16443 --- /dev/null +++ b/libs/@local/graph/authentication/turbo.json @@ -0,0 +1,53 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-authentication", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:integration": { + "command": [ + "cargo", + "nextest", + "run", + "--all-features", + "--filterset", + "kind(test)" + ] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-authentication", + "--", + "--filterset", + "not kind(test)" + ] + } + } +} diff --git a/libs/@local/graph/authorization/rust/package.json b/libs/@local/graph/authorization/rust/package.json index 00cd286721e..503047f92e8 100644 --- a/libs/@local/graph/authorization/rust/package.json +++ b/libs/@local/graph/authorization/rust/package.json @@ -3,14 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:types": "INSTA_UPDATE=always mise exec --env dev cargo:cargo-insta -- cargo-insta test --features codegen --test codegen", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-authorization --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo hack nextest run --feature-powerset --all-targets --filterset \"kind(test) | kind(bench)\"", - "test:unit": "mise run test:unit @rust/hash-graph-authorization --test-strategy=powerset -- --all-targets --filterset 'not kind(test) & not kind(bench)'" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/authorization/rust/turbo.json b/libs/@local/graph/authorization/rust/turbo.json index 5df3983a2ad..5c48f8ca700 100644 --- a/libs/@local/graph/authorization/rust/turbo.json +++ b/libs/@local/graph/authorization/rust/turbo.json @@ -2,8 +2,76 @@ "extends": ["//"], "tasks": { "build:types": { + "command": [ + "env", + "INSTA_UPDATE=always", + "mise", + "exec", + "--env", + "dev", + "cargo:cargo-insta", + "--", + "cargo-insta", + "test", + "--features", + "codegen", + "--test", + "codegen" + ], "dependsOn": ["^manifest"], "outputs": ["types/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-authorization", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:integration": { + "command": [ + "cargo", + "hack", + "nextest", + "run", + "--feature-powerset", + "--all-targets", + "--filterset", + "kind(test) | kind(bench)" + ] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-authorization", + "--test-strategy=powerset", + "--", + "--all-targets", + "--filterset", + "not kind(test) & not kind(bench)" + ] } } } diff --git a/libs/@local/graph/embeddings/package.json b/libs/@local/graph/embeddings/package.json index 61d00ad4ee1..2daff7314fd 100644 --- a/libs/@local/graph/embeddings/package.json +++ b/libs/@local/graph/embeddings/package.json @@ -3,15 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:codspeed": "cargo codspeed build -p hash-graph-embeddings", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-embeddings --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:codspeed": "cargo codspeed run -p hash-graph-embeddings", - "test:miri": "cargo miri nextest run -- kernel clustering::tests::nearest_centroid_argmax_independent_of_inv_norm", - "test:unit": "mise run test:unit @rust/hash-graph-embeddings" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/hash-graph-types": "workspace:*" diff --git a/libs/@local/graph/embeddings/turbo.json b/libs/@local/graph/embeddings/turbo.json new file mode 100644 index 00000000000..92e38f89d35 --- /dev/null +++ b/libs/@local/graph/embeddings/turbo.json @@ -0,0 +1,52 @@ +{ + "extends": ["//"], + "tasks": { + "build:codspeed": { + "command": ["cargo", "codspeed", "build", "-p", "hash-graph-embeddings"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-embeddings", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:codspeed": { + "command": ["cargo", "codspeed", "run", "-p", "hash-graph-embeddings"] + }, + "test:miri": { + "command": [ + "cargo", + "miri", + "nextest", + "run", + "--", + "kernel", + "clustering::tests::nearest_centroid_argmax_independent_of_inv_norm" + ] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-graph-embeddings"] + } + } +} diff --git a/libs/@local/graph/migrations-macros/package.json b/libs/@local/graph/migrations-macros/package.json index 21ce159b012..85a9b34e6c9 100644 --- a/libs/@local/graph/migrations-macros/package.json +++ b/libs/@local/graph/migrations-macros/package.json @@ -2,10 +2,5 @@ "name": "@rust/hash-graph-migrations-macros", "version": "0.0.0-private", "private": true, - "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-migrations-macros --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - } + "license": "AGPL-3" } diff --git a/libs/@local/graph/migrations-macros/turbo.json b/libs/@local/graph/migrations-macros/turbo.json new file mode 100644 index 00000000000..3a5600643ea --- /dev/null +++ b/libs/@local/graph/migrations-macros/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-migrations-macros", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/graph/migrations/package.json b/libs/@local/graph/migrations/package.json index 38a58dc920d..34bc8a0a3e9 100644 --- a/libs/@local/graph/migrations/package.json +++ b/libs/@local/graph/migrations/package.json @@ -3,13 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-migrations --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "start:migrate:down": "cargo run --package hash-graph-migrations --bin cli --features cli -- run --user postgres --password postgres --target 0", - "start:migrate:up": "cargo run --package hash-graph-migrations --bin cli --features cli -- run --user postgres --password postgres" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/hash-graph-migrations-macros": "workspace:*", diff --git a/libs/@local/graph/migrations/turbo.json b/libs/@local/graph/migrations/turbo.json index 81205748a0a..d86a06193e6 100644 --- a/libs/@local/graph/migrations/turbo.json +++ b/libs/@local/graph/migrations/turbo.json @@ -2,10 +2,71 @@ "extends": ["//"], "tasks": { "start:migrate:up": { + "command": [ + "cargo", + "run", + "--package", + "hash-graph-migrations", + "--bin", + "cli", + "--features", + "cli", + "--", + "run", + "--user", + "postgres", + "--password", + "postgres" + ], "cache": false }, "start:migrate:down": { + "command": [ + "cargo", + "run", + "--package", + "hash-graph-migrations", + "--bin", + "cli", + "--features", + "cli", + "--", + "run", + "--user", + "postgres", + "--password", + "postgres", + "--target", + "0" + ], "cache": false + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-migrations", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] } } } diff --git a/libs/@local/graph/postgres-store/package.json b/libs/@local/graph/postgres-store/package.json index ed705c68ae7..9e423d1aa96 100644 --- a/libs/@local/graph/postgres-store/package.json +++ b/libs/@local/graph/postgres-store/package.json @@ -4,13 +4,6 @@ "private": true, "description": "HASH Graph API", "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-postgres-store --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo hack nextest run --feature-powerset --tests", - "test:unit": "mise run test:unit @rust/hash-graph-postgres-store --test-strategy=powerset -- --lib" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/postgres-store/turbo.json b/libs/@local/graph/postgres-store/turbo.json index 4ebf397bba7..ef471e3402e 100644 --- a/libs/@local/graph/postgres-store/turbo.json +++ b/libs/@local/graph/postgres-store/turbo.json @@ -2,7 +2,53 @@ "extends": ["//"], "tasks": { "test:integration": { + "command": [ + "cargo", + "hack", + "nextest", + "run", + "--feature-powerset", + "--tests" + ], "dependsOn": ["^manifest", "@rust/hash-graph-migrations#start:migrate:up"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-postgres-store", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-postgres-store", + "--test-strategy=powerset", + "--", + "--lib" + ] } } } diff --git a/libs/@local/graph/store/rust/package.json b/libs/@local/graph/store/rust/package.json index 2a1de4de360..3baec136113 100644 --- a/libs/@local/graph/store/rust/package.json +++ b/libs/@local/graph/store/rust/package.json @@ -3,13 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:types": "INSTA_UPDATE=always mise exec --env dev cargo:cargo-insta -- cargo-insta test --features codegen --test codegen", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-store --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-store" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/store/rust/turbo.json b/libs/@local/graph/store/rust/turbo.json index 5df3983a2ad..cfb8554c830 100644 --- a/libs/@local/graph/store/rust/turbo.json +++ b/libs/@local/graph/store/rust/turbo.json @@ -2,8 +2,54 @@ "extends": ["//"], "tasks": { "build:types": { + "command": [ + "env", + "INSTA_UPDATE=always", + "mise", + "exec", + "--env", + "dev", + "cargo:cargo-insta", + "--", + "cargo-insta", + "test", + "--features", + "codegen", + "--test", + "codegen" + ], "dependsOn": ["^manifest"], "outputs": ["types/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-store", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-graph-store"] } } } diff --git a/libs/@local/graph/temporal-versioning/package.json b/libs/@local/graph/temporal-versioning/package.json index ff6cec0c066..c1b69fb5e95 100644 --- a/libs/@local/graph/temporal-versioning/package.json +++ b/libs/@local/graph/temporal-versioning/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-temporal-versioning --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-temporal-versioning" - }, "dependencies": { "@rust/hash-codec": "workspace:*" } diff --git a/libs/@local/graph/temporal-versioning/turbo.json b/libs/@local/graph/temporal-versioning/turbo.json new file mode 100644 index 00000000000..70031a2fc48 --- /dev/null +++ b/libs/@local/graph/temporal-versioning/turbo.json @@ -0,0 +1,40 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-temporal-versioning", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-temporal-versioning" + ] + } + } +} diff --git a/libs/@local/graph/type-fetcher/package.json b/libs/@local/graph/type-fetcher/package.json index e782d88729e..8e03260662f 100644 --- a/libs/@local/graph/type-fetcher/package.json +++ b/libs/@local/graph/type-fetcher/package.json @@ -4,11 +4,6 @@ "private": true, "description": "HTTP service to fetch external BP types", "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-type-fetcher --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/type-fetcher/turbo.json b/libs/@local/graph/type-fetcher/turbo.json new file mode 100644 index 00000000000..398a991a138 --- /dev/null +++ b/libs/@local/graph/type-fetcher/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-type-fetcher", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/graph/types/package.json b/libs/@local/graph/types/package.json index 778bec091c0..dc64794bccf 100644 --- a/libs/@local/graph/types/package.json +++ b/libs/@local/graph/types/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-types --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-types -- --no-tests warn" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/types/turbo.json b/libs/@local/graph/types/turbo.json new file mode 100644 index 00000000000..b660269d0eb --- /dev/null +++ b/libs/@local/graph/types/turbo.json @@ -0,0 +1,43 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-types", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-types", + "--", + "--no-tests", + "warn" + ] + } + } +} diff --git a/libs/@local/graph/validation/package.json b/libs/@local/graph/validation/package.json index 82e170f2628..a2fb5af3bd1 100644 --- a/libs/@local/graph/validation/package.json +++ b/libs/@local/graph/validation/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-validation --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-validation" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/graph/validation/turbo.json b/libs/@local/graph/validation/turbo.json new file mode 100644 index 00000000000..4b1bf7e64af --- /dev/null +++ b/libs/@local/graph/validation/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-validation", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-graph-validation"] + } + } +} diff --git a/libs/@local/harpc/client/rust/package.json b/libs/@local/harpc/client/rust/package.json index e194e33d6b4..a3853d1403c 100644 --- a/libs/@local/harpc/client/rust/package.json +++ b/libs/@local/harpc/client/rust/package.json @@ -3,11 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-client --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-codec": "workspace:*", diff --git a/libs/@local/harpc/client/rust/turbo.json b/libs/@local/harpc/client/rust/turbo.json new file mode 100644 index 00000000000..c7601e283ce --- /dev/null +++ b/libs/@local/harpc/client/rust/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-client", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/harpc/codec/package.json b/libs/@local/harpc/codec/package.json index b4c497b5a56..dec67ab74dc 100644 --- a/libs/@local/harpc/codec/package.json +++ b/libs/@local/harpc/codec/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-codec --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/harpc-codec" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-types": "workspace:*" diff --git a/libs/@local/harpc/codec/turbo.json b/libs/@local/harpc/codec/turbo.json new file mode 100644 index 00000000000..2bd671ad557 --- /dev/null +++ b/libs/@local/harpc/codec/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-codec", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/harpc-codec"] + } + } +} diff --git a/libs/@local/harpc/net/package.json b/libs/@local/harpc/net/package.json index b3109df24c2..47b08808c91 100644 --- a/libs/@local/harpc/net/package.json +++ b/libs/@local/harpc/net/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-net --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/harpc-net" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-codec": "workspace:*", diff --git a/libs/@local/harpc/net/turbo.json b/libs/@local/harpc/net/turbo.json new file mode 100644 index 00000000000..e95f1701fbc --- /dev/null +++ b/libs/@local/harpc/net/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-net", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/harpc-net"] + } + } +} diff --git a/libs/@local/harpc/server/package.json b/libs/@local/harpc/server/package.json index 3f0ea305344..4d404d79f5d 100644 --- a/libs/@local/harpc/server/package.json +++ b/libs/@local/harpc/server/package.json @@ -3,11 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-server --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-codec": "workspace:*", diff --git a/libs/@local/harpc/server/turbo.json b/libs/@local/harpc/server/turbo.json new file mode 100644 index 00000000000..eaa29831425 --- /dev/null +++ b/libs/@local/harpc/server/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-server", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/harpc/system/package.json b/libs/@local/harpc/system/package.json index b7991b817b8..f117aa39ea6 100644 --- a/libs/@local/harpc/system/package.json +++ b/libs/@local/harpc/system/package.json @@ -3,11 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-system --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@rust/harpc-tower": "workspace:*", "@rust/harpc-types": "workspace:*" diff --git a/libs/@local/harpc/system/turbo.json b/libs/@local/harpc/system/turbo.json new file mode 100644 index 00000000000..6a422caf508 --- /dev/null +++ b/libs/@local/harpc/system/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-system", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/harpc/tower/package.json b/libs/@local/harpc/tower/package.json index c5833f91886..ba4c9135a00 100644 --- a/libs/@local/harpc/tower/package.json +++ b/libs/@local/harpc/tower/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-tower --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/harpc-tower" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-codec": "workspace:*", diff --git a/libs/@local/harpc/tower/turbo.json b/libs/@local/harpc/tower/turbo.json new file mode 100644 index 00000000000..de134ab5262 --- /dev/null +++ b/libs/@local/harpc/tower/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-tower", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/harpc-tower"] + } + } +} diff --git a/libs/@local/harpc/types/package.json b/libs/@local/harpc/types/package.json index a9dba82aa25..3ad1282d1b7 100644 --- a/libs/@local/harpc/types/package.json +++ b/libs/@local/harpc/types/package.json @@ -2,11 +2,5 @@ "name": "@rust/harpc-types", "version": "0.0.0-private", "private": true, - "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-types --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/harpc-types -- --no-tests warn" - } + "license": "AGPL-3" } diff --git a/libs/@local/harpc/types/turbo.json b/libs/@local/harpc/types/turbo.json new file mode 100644 index 00000000000..83cbab0889b --- /dev/null +++ b/libs/@local/harpc/types/turbo.json @@ -0,0 +1,43 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-types", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/harpc-types", + "--", + "--no-tests", + "warn" + ] + } + } +} diff --git a/libs/@local/harpc/wire-protocol/package.json b/libs/@local/harpc/wire-protocol/package.json index d7e9ca3e660..cfacbc2b9de 100644 --- a/libs/@local/harpc/wire-protocol/package.json +++ b/libs/@local/harpc/wire-protocol/package.json @@ -3,14 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:cli": "cargo build --bin codec --features cli --release --target-dir dist", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root harpc-wire-protocol --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:miri": "just miri", - "test:unit": "mise run test:unit @rust/harpc-wire-protocol" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/harpc-types": "workspace:*" diff --git a/libs/@local/harpc/wire-protocol/turbo.json b/libs/@local/harpc/wire-protocol/turbo.json index b3b45941b10..5312383dbd9 100644 --- a/libs/@local/harpc/wire-protocol/turbo.json +++ b/libs/@local/harpc/wire-protocol/turbo.json @@ -3,7 +3,51 @@ "extends": ["//"], "tasks": { "build:cli": { + "command": [ + "cargo", + "build", + "--bin", + "codec", + "--features", + "cli", + "--release", + "--target-dir", + "dist" + ], "outputs": ["./dist/**"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "harpc-wire-protocol", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:miri": { + "command": ["just", "miri"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/harpc-wire-protocol"] } } } diff --git a/libs/@local/hashql/ast/package.json b/libs/@local/hashql/ast/package.json index 941e8029e4e..bf40657e3da 100644 --- a/libs/@local/hashql/ast/package.json +++ b/libs/@local/hashql/ast/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-ast --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hashql-ast" - }, "dependencies": { "@rust/hashql-core": "workspace:*", "@rust/hashql-diagnostics": "workspace:*" diff --git a/libs/@local/hashql/ast/turbo.json b/libs/@local/hashql/ast/turbo.json new file mode 100644 index 00000000000..84540219bef --- /dev/null +++ b/libs/@local/hashql/ast/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-ast", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-ast"] + } + } +} diff --git a/libs/@local/hashql/compiletest/package.json b/libs/@local/hashql/compiletest/package.json index 77e8a80ec34..691e3661b31 100644 --- a/libs/@local/hashql/compiletest/package.json +++ b/libs/@local/hashql/compiletest/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-compiletest --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hashql-compiletest" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/hashql-ast": "workspace:*", diff --git a/libs/@local/hashql/compiletest/turbo.json b/libs/@local/hashql/compiletest/turbo.json new file mode 100644 index 00000000000..2dd0ef0d37c --- /dev/null +++ b/libs/@local/hashql/compiletest/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-compiletest", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-compiletest"] + } + } +} diff --git a/libs/@local/hashql/core/package.json b/libs/@local/hashql/core/package.json index e8b0af5a925..464a078a6d8 100644 --- a/libs/@local/hashql/core/package.json +++ b/libs/@local/hashql/core/package.json @@ -3,15 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:codspeed": "cargo codspeed build -p hashql-core", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-core --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:codspeed": "cargo codspeed run -p hashql-core", - "test:miri": "cargo miri nextest run -- co_sort try_scan heap::transfer stable_empty_slice id::slice tarjan::tests::members tarjan::tests::bump_members symbol", - "test:unit": "mise run test:unit @rust/hashql-core" - }, "dependencies": { "@rust/hash-codec": "workspace:*", "@rust/hashql-diagnostics": "workspace:*", diff --git a/libs/@local/hashql/core/turbo.json b/libs/@local/hashql/core/turbo.json new file mode 100644 index 00000000000..251b94eda5e --- /dev/null +++ b/libs/@local/hashql/core/turbo.json @@ -0,0 +1,58 @@ +{ + "extends": ["//"], + "tasks": { + "build:codspeed": { + "command": ["cargo", "codspeed", "build", "-p", "hashql-core"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-core", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:codspeed": { + "command": ["cargo", "codspeed", "run", "-p", "hashql-core"] + }, + "test:miri": { + "command": [ + "cargo", + "miri", + "nextest", + "run", + "--", + "co_sort", + "try_scan", + "heap::transfer", + "stable_empty_slice", + "id::slice", + "tarjan::tests::members", + "tarjan::tests::bump_members", + "symbol" + ] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-core"] + } + } +} diff --git a/libs/@local/hashql/diagnostics/package.json b/libs/@local/hashql/diagnostics/package.json index a9d071722c1..584875a9ced 100644 --- a/libs/@local/hashql/diagnostics/package.json +++ b/libs/@local/hashql/diagnostics/package.json @@ -2,11 +2,5 @@ "name": "@rust/hashql-diagnostics", "version": "0.0.0-private", "private": true, - "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-diagnostics --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hashql-diagnostics --test-strategy=powerset" - } + "license": "AGPL-3" } diff --git a/libs/@local/hashql/diagnostics/turbo.json b/libs/@local/hashql/diagnostics/turbo.json new file mode 100644 index 00000000000..bf748e2f7e7 --- /dev/null +++ b/libs/@local/hashql/diagnostics/turbo.json @@ -0,0 +1,41 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-diagnostics", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hashql-diagnostics", + "--test-strategy=powerset" + ] + } + } +} diff --git a/libs/@local/hashql/eval/package.json b/libs/@local/hashql/eval/package.json index 256650c08f0..d0e4d4d262f 100644 --- a/libs/@local/hashql/eval/package.json +++ b/libs/@local/hashql/eval/package.json @@ -3,13 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-eval --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:miri": "cargo miri nextest run --lib --features serde_json/preserve_order -- ::miri::", - "test:unit": "mise run test:unit @rust/hashql-eval" - }, "dependencies": { "@rust/hash-graph-postgres-store": "workspace:*", "@rust/hashql-core": "workspace:*", diff --git a/libs/@local/hashql/eval/turbo.json b/libs/@local/hashql/eval/turbo.json new file mode 100644 index 00000000000..1f7d4a2dda0 --- /dev/null +++ b/libs/@local/hashql/eval/turbo.json @@ -0,0 +1,48 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-eval", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:miri": { + "command": [ + "cargo", + "miri", + "nextest", + "run", + "--lib", + "--features", + "serde_json/preserve_order", + "--", + "::miri::" + ] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-eval"] + } + } +} diff --git a/libs/@local/hashql/hir/package.json b/libs/@local/hashql/hir/package.json index 116f7819061..08b2b9e9d72 100644 --- a/libs/@local/hashql/hir/package.json +++ b/libs/@local/hashql/hir/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-hir --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hashql-hir" - }, "dependencies": { "@rust/hashql-ast": "workspace:*", "@rust/hashql-core": "workspace:*", diff --git a/libs/@local/hashql/hir/turbo.json b/libs/@local/hashql/hir/turbo.json new file mode 100644 index 00000000000..ec1f3facce9 --- /dev/null +++ b/libs/@local/hashql/hir/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-hir", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-hir"] + } + } +} diff --git a/libs/@local/hashql/macros/package.json b/libs/@local/hashql/macros/package.json index fc812410670..79e14f0dd1f 100644 --- a/libs/@local/hashql/macros/package.json +++ b/libs/@local/hashql/macros/package.json @@ -2,9 +2,5 @@ "name": "@rust/hashql-macros", "version": "0.0.0-private", "private": true, - "license": "AGPL-3", - "scripts": { - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - } + "license": "AGPL-3" } diff --git a/libs/@local/hashql/macros/turbo.json b/libs/@local/hashql/macros/turbo.json new file mode 100644 index 00000000000..a2fd668b389 --- /dev/null +++ b/libs/@local/hashql/macros/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/hashql/mir/package.json b/libs/@local/hashql/mir/package.json index d701248bc8d..f8e5455a45e 100644 --- a/libs/@local/hashql/mir/package.json +++ b/libs/@local/hashql/mir/package.json @@ -3,15 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "build:codspeed": "cargo codspeed build -p hashql-mir", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-mir --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:codspeed": "cargo codspeed run -p hashql-mir", - "test:miri": "cargo miri nextest run -- changed_bitor interpret::locals::tests interpret::value::r#struct::tests pass::execution::block_partitioned_vec::tests pass::execution::cost::tests", - "test:unit": "mise run test:unit @rust/hashql-mir" - }, "dependencies": { "@rust/hashql-core": "workspace:*", "@rust/hashql-diagnostics": "workspace:*", diff --git a/libs/@local/hashql/mir/turbo.json b/libs/@local/hashql/mir/turbo.json new file mode 100644 index 00000000000..422e9d662ca --- /dev/null +++ b/libs/@local/hashql/mir/turbo.json @@ -0,0 +1,55 @@ +{ + "extends": ["//"], + "tasks": { + "build:codspeed": { + "command": ["cargo", "codspeed", "build", "-p", "hashql-mir"] + }, + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-mir", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:codspeed": { + "command": ["cargo", "codspeed", "run", "-p", "hashql-mir"] + }, + "test:miri": { + "command": [ + "cargo", + "miri", + "nextest", + "run", + "--", + "changed_bitor", + "interpret::locals::tests", + "interpret::value::r#struct::tests", + "pass::execution::block_partitioned_vec::tests", + "pass::execution::cost::tests" + ] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-mir"] + } + } +} diff --git a/libs/@local/hashql/syntax-jexpr/package.json b/libs/@local/hashql/syntax-jexpr/package.json index ae1c407aa5e..3acf4c07dcf 100644 --- a/libs/@local/hashql/syntax-jexpr/package.json +++ b/libs/@local/hashql/syntax-jexpr/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hashql-syntax-jexpr --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hashql-syntax-jexpr" - }, "dependencies": { "@rust/hashql-ast": "workspace:*", "@rust/hashql-core": "workspace:*", diff --git a/libs/@local/hashql/syntax-jexpr/turbo.json b/libs/@local/hashql/syntax-jexpr/turbo.json new file mode 100644 index 00000000000..3c3eeacf982 --- /dev/null +++ b/libs/@local/hashql/syntax-jexpr/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hashql-syntax-jexpr", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hashql-syntax-jexpr"] + } + } +} diff --git a/libs/@local/middleware/package.json b/libs/@local/middleware/package.json index 576ab31de98..5081a5d5002 100644 --- a/libs/@local/middleware/package.json +++ b/libs/@local/middleware/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-middleware --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-middleware" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/libs/@local/middleware/turbo.json b/libs/@local/middleware/turbo.json new file mode 100644 index 00000000000..e978a40679a --- /dev/null +++ b/libs/@local/middleware/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-middleware", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": ["mise", "run", "test:unit", "@rust/hash-middleware"] + } + } +} diff --git a/libs/@local/repo-chores/rust/package.json b/libs/@local/repo-chores/rust/package.json index 014d7a6804b..0f2e75e933a 100644 --- a/libs/@local/repo-chores/rust/package.json +++ b/libs/@local/repo-chores/rust/package.json @@ -3,14 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "analyze-benchmarks": "cargo run -- benches analyze", - "build": "cargo build", - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-repo-chores --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "upload-benchmarks": "cargo run -- benches upload" - }, "dependencies": { "@rust/error-stack": "workspace:*", "@rust/hash-telemetry": "workspace:*" diff --git a/libs/@local/repo-chores/rust/turbo.json b/libs/@local/repo-chores/rust/turbo.json index 61fd8361f69..182c780c7d3 100644 --- a/libs/@local/repo-chores/rust/turbo.json +++ b/libs/@local/repo-chores/rust/turbo.json @@ -2,19 +2,47 @@ "extends": ["//"], "tasks": { "build": { + "command": ["cargo", "build"], "cache": false }, "analyze-benchmarks": { + "command": ["cargo", "run", "--", "benches", "analyze"], "dependsOn": ["build"], "cache": false }, "upload-benchmarks": { + "command": ["cargo", "run", "--", "benches", "upload"], "dependsOn": ["build"], "cache": false }, "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-repo-chores", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ], "dependsOn": ["build"], "cache": false + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] } } } diff --git a/libs/@local/status/rust/package.json b/libs/@local/status/rust/package.json index b0f063ae7a2..b54d093342e 100644 --- a/libs/@local/status/rust/package.json +++ b/libs/@local/status/rust/package.json @@ -4,11 +4,6 @@ "private": true, "description": "The HASH Status and Error Model.", "license": "MIT OR Apache-2.0", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-status --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@local/status": "workspace:*" } diff --git a/libs/@local/status/rust/turbo.json b/libs/@local/status/rust/turbo.json new file mode 100644 index 00000000000..74aa3f0051d --- /dev/null +++ b/libs/@local/status/rust/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-status", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/telemetry/package.json b/libs/@local/telemetry/package.json index 28b589aad39..1719f111ef6 100644 --- a/libs/@local/telemetry/package.json +++ b/libs/@local/telemetry/package.json @@ -3,11 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-telemetry --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - }, "dependencies": { "@rust/error-stack": "workspace:*" } diff --git a/libs/@local/telemetry/turbo.json b/libs/@local/telemetry/turbo.json new file mode 100644 index 00000000000..301c7d08d86 --- /dev/null +++ b/libs/@local/telemetry/turbo.json @@ -0,0 +1,32 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-telemetry", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/@local/temporal-client/package.json b/libs/@local/temporal-client/package.json index 95d437e4b92..da521a2142f 100644 --- a/libs/@local/temporal-client/package.json +++ b/libs/@local/temporal-client/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-temporal-client --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo nextest run --tests" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*" diff --git a/libs/@local/temporal-client/turbo.json b/libs/@local/temporal-client/turbo.json new file mode 100644 index 00000000000..b1440e53283 --- /dev/null +++ b/libs/@local/temporal-client/turbo.json @@ -0,0 +1,35 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-temporal-client", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:integration": { + "command": ["cargo", "nextest", "run", "--tests"] + } + } +} diff --git a/libs/antsi/package.json b/libs/antsi/package.json index d5047df102e..4bda71f3b04 100644 --- a/libs/antsi/package.json +++ b/libs/antsi/package.json @@ -3,10 +3,5 @@ "version": "0.0.0-private", "private": true, "description": "A no-std mini-crate that provides support ANSI escape sequences", - "license": "MIT OR Apache-2.0", - "scripts": { - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/antsi -- --no-tests warn" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/antsi/turbo.json b/libs/antsi/turbo.json new file mode 100644 index 00000000000..ee62466b987 --- /dev/null +++ b/libs/antsi/turbo.json @@ -0,0 +1,22 @@ +{ + "extends": ["//"], + "tasks": { + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/antsi", + "--", + "--no-tests", + "warn" + ] + } + } +} diff --git a/libs/darwin-kperf/codegen/package.json b/libs/darwin-kperf/codegen/package.json index 9059118e3f0..0cb8825cefc 100644 --- a/libs/darwin-kperf/codegen/package.json +++ b/libs/darwin-kperf/codegen/package.json @@ -2,8 +2,5 @@ "name": "@rust/darwin-kperf-codegen", "version": "0.1.1-private", "private": true, - "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy --target aarch64-apple-darwin" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/darwin-kperf/codegen/turbo.json b/libs/darwin-kperf/codegen/turbo.json new file mode 100644 index 00000000000..40512394b59 --- /dev/null +++ b/libs/darwin-kperf/codegen/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy", "--target", "aarch64-apple-darwin"] + } + } +} diff --git a/libs/darwin-kperf/criterion/package.json b/libs/darwin-kperf/criterion/package.json index d7560697605..ed4c4e1f668 100644 --- a/libs/darwin-kperf/criterion/package.json +++ b/libs/darwin-kperf/criterion/package.json @@ -4,9 +4,6 @@ "private": true, "description": "Criterion measurement plugin using Apple's hardware performance counters", "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy" - }, "dependencies": { "@rust/darwin-kperf": "workspace:*", "@rust/darwin-kperf-events": "workspace:*" diff --git a/libs/darwin-kperf/criterion/turbo.json b/libs/darwin-kperf/criterion/turbo.json new file mode 100644 index 00000000000..2fb1e114a1a --- /dev/null +++ b/libs/darwin-kperf/criterion/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/darwin-kperf/events/package.json b/libs/darwin-kperf/events/package.json index 90b4588c3cc..fb8ae81d6c7 100644 --- a/libs/darwin-kperf/events/package.json +++ b/libs/darwin-kperf/events/package.json @@ -3,8 +3,5 @@ "version": "0.1.1", "private": true, "description": "Apple Silicon PMU event definitions for darwin-kperf", - "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy --target aarch64-apple-darwin" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/darwin-kperf/events/turbo.json b/libs/darwin-kperf/events/turbo.json new file mode 100644 index 00000000000..40512394b59 --- /dev/null +++ b/libs/darwin-kperf/events/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy", "--target", "aarch64-apple-darwin"] + } + } +} diff --git a/libs/darwin-kperf/package.json b/libs/darwin-kperf/package.json index bf50c2005ac..38f74c2949a 100644 --- a/libs/darwin-kperf/package.json +++ b/libs/darwin-kperf/package.json @@ -4,9 +4,6 @@ "private": true, "description": "Safe Rust bindings for Apple's kperf/kpc hardware performance counters", "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy --target aarch64-apple-darwin" - }, "dependencies": { "@rust/darwin-kperf-events": "workspace:*", "@rust/darwin-kperf-sys": "workspace:*" diff --git a/libs/darwin-kperf/sys/package.json b/libs/darwin-kperf/sys/package.json index eb768c9dfc2..b77079c563c 100644 --- a/libs/darwin-kperf/sys/package.json +++ b/libs/darwin-kperf/sys/package.json @@ -3,8 +3,5 @@ "version": "0.1.1", "private": true, "description": "Raw FFI bindings to Apple's kperf and kperfdata frameworks", - "license": "MIT OR Apache-2.0", - "scripts": { - "lint:clippy": "just clippy --target aarch64-apple-darwin" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/darwin-kperf/sys/turbo.json b/libs/darwin-kperf/sys/turbo.json new file mode 100644 index 00000000000..40512394b59 --- /dev/null +++ b/libs/darwin-kperf/sys/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy", "--target", "aarch64-apple-darwin"] + } + } +} diff --git a/libs/darwin-kperf/turbo.json b/libs/darwin-kperf/turbo.json new file mode 100644 index 00000000000..40512394b59 --- /dev/null +++ b/libs/darwin-kperf/turbo.json @@ -0,0 +1,8 @@ +{ + "extends": ["//"], + "tasks": { + "lint:clippy": { + "command": ["just", "clippy", "--target", "aarch64-apple-darwin"] + } + } +} diff --git a/libs/error-stack/docs/task-dependencies.json b/libs/error-stack/docs/task-dependencies.json index bb30def9509..e904f3f3ad3 100644 --- a/libs/error-stack/docs/task-dependencies.json +++ b/libs/error-stack/docs/task-dependencies.json @@ -21,6 +21,10 @@ "env": [ "TEST_COVERAGE" ] + }, + "test:unit:bless": { + "dependsOn": [], + "cache": false } } } diff --git a/libs/error-stack/macros/package.json b/libs/error-stack/macros/package.json index f6bd11c4f06..bf585019f4e 100644 --- a/libs/error-stack/macros/package.json +++ b/libs/error-stack/macros/package.json @@ -3,9 +3,5 @@ "version": "0.0.0-private", "private": true, "description": "Macros for the `error-stack` crate", - "license": "MIT OR Apache-2.0", - "scripts": { - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy" - } + "license": "MIT OR Apache-2.0" } diff --git a/libs/error-stack/macros/turbo.json b/libs/error-stack/macros/turbo.json new file mode 100644 index 00000000000..a2fd668b389 --- /dev/null +++ b/libs/error-stack/macros/turbo.json @@ -0,0 +1,11 @@ +{ + "extends": ["//"], + "tasks": { + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + } + } +} diff --git a/libs/error-stack/package.json b/libs/error-stack/package.json index 94614080371..d2cde53015a 100644 --- a/libs/error-stack/package.json +++ b/libs/error-stack/package.json @@ -4,13 +4,6 @@ "private": true, "description": "A context-aware error-handling library that supports arbitrary attached user data", "license": "MIT OR Apache-2.0", - "scripts": { - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:miri": "just miri", - "test:unit": "RUST_BACKTRACE=1 mise run test:unit @rust/error-stack --test-strategy=extremes", - "test:unit:bless": "TRYBUILD=overwrite INSTA_FORCE_PASS=1 INSTA_UPDATE=new UPDATE_EXPECT=1 yarn test:unit" - }, "dependencies": { "@rust/error-stack-macros": "workspace:*" } diff --git a/libs/error-stack/turbo.json b/libs/error-stack/turbo.json new file mode 100644 index 00000000000..382ffa55aaf --- /dev/null +++ b/libs/error-stack/turbo.json @@ -0,0 +1,41 @@ +{ + "extends": ["//"], + "tasks": { + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:miri": { + "command": ["just", "miri"] + }, + "test:unit": { + "command": [ + "env", + "RUST_BACKTRACE=1", + "mise", + "run", + "test:unit", + "@rust/error-stack", + "--test-strategy=extremes" + ] + }, + "test:unit:bless": { + "cache": false, + "command": [ + "env", + "TRYBUILD=overwrite", + "INSTA_FORCE_PASS=1", + "INSTA_UPDATE=new", + "UPDATE_EXPECT=1", + "RUST_BACKTRACE=1", + "mise", + "run", + "test:unit", + "@rust/error-stack", + "--test-strategy=extremes" + ] + } + } +} diff --git a/tests/graph/benches/docs/task-dependencies.json b/tests/graph/benches/docs/task-dependencies.json index 2998dad12e6..59d75076787 100644 --- a/tests/graph/benches/docs/task-dependencies.json +++ b/tests/graph/benches/docs/task-dependencies.json @@ -24,6 +24,10 @@ "@rust/darwin-kperf-codegen" ] }, + "bench:integration:manual": { + "dependsOn": [], + "cache": false + }, "fix:clippy": { "dependsOn": [] }, @@ -46,6 +50,10 @@ "affectedBy": [ "@rust/darwin-kperf-codegen" ] + }, + "test:integration:manual": { + "dependsOn": [], + "cache": false } } } diff --git a/tests/graph/benches/package.json b/tests/graph/benches/package.json index ba78b73bf98..e3895131639 100644 --- a/tests/graph/benches/package.json +++ b/tests/graph/benches/package.json @@ -3,14 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "bench:integration": "cargo bench --bench graph --bench read-scaling --bench representative-read --bench policy", - "bench:integration:manual": "cargo bench --bench manual-queries", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo test --benches", - "test:integration:manual": "cargo test --bench manual-queries" - }, "devDependencies": { "@apps/hash-graph": "workspace:*", "@blockprotocol/type-system-rs": "workspace:*", diff --git a/tests/graph/benches/turbo.json b/tests/graph/benches/turbo.json index c36ed455a0e..f399cd895e3 100644 --- a/tests/graph/benches/turbo.json +++ b/tests/graph/benches/turbo.json @@ -2,10 +2,37 @@ "extends": ["//"], "tasks": { "bench:integration": { + "command": [ + "cargo", + "bench", + "--bench", + "graph", + "--bench", + "read-scaling", + "--bench", + "representative-read", + "--bench", + "policy" + ], "dependsOn": ["^manifest", "@apps/hash-graph#start:healthcheck"] }, "test:integration": { + "command": ["cargo", "test", "--benches"], "dependsOn": ["^manifest", "@apps/hash-graph#start:test:healthcheck"] + }, + "bench:integration:manual": { + "cache": false, + "command": ["cargo", "bench", "--bench", "manual-queries"] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:integration:manual": { + "cache": false, + "command": ["cargo", "test", "--bench", "manual-queries"] } } } diff --git a/tests/graph/integration/package.json b/tests/graph/integration/package.json index 0fdebc36434..27d66028c94 100644 --- a/tests/graph/integration/package.json +++ b/tests/graph/integration/package.json @@ -3,11 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:integration": "cargo nextest run --all-features --all-targets" - }, "devDependencies": { "@apps/hash-graph": "workspace:*", "@blockprotocol/type-system-rs": "workspace:*", diff --git a/tests/graph/integration/turbo.json b/tests/graph/integration/turbo.json index 0d95c7a9d88..8608a1a4065 100644 --- a/tests/graph/integration/turbo.json +++ b/tests/graph/integration/turbo.json @@ -2,7 +2,14 @@ "extends": ["//"], "tasks": { "test:integration": { + "command": ["cargo", "nextest", "run", "--all-features", "--all-targets"], "dependsOn": ["^manifest"] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] } } } diff --git a/tests/graph/test-data/rust/package.json b/tests/graph/test-data/rust/package.json index 64c3698b518..d1e710754fe 100644 --- a/tests/graph/test-data/rust/package.json +++ b/tests/graph/test-data/rust/package.json @@ -3,12 +3,6 @@ "version": "0.0.0-private", "private": true, "license": "AGPL-3", - "scripts": { - "doc:dependency-diagram": "cargo run -p hash-repo-chores -- dependency-diagram --output docs/dependency-diagram.mmd --root hash-graph-test-data --root-deps-and-dependents --link-mode non-roots --include-dev-deps --include-build-deps --logging-console-level info", - "fix:clippy": "just clippy --fix", - "lint:clippy": "just clippy", - "test:unit": "mise run test:unit @rust/hash-graph-test-data --test-strategy=powerset" - }, "dependencies": { "@blockprotocol/type-system-rs": "workspace:*", "@rust/error-stack": "workspace:*", diff --git a/tests/graph/test-data/rust/turbo.json b/tests/graph/test-data/rust/turbo.json new file mode 100644 index 00000000000..33e178e5331 --- /dev/null +++ b/tests/graph/test-data/rust/turbo.json @@ -0,0 +1,41 @@ +{ + "extends": ["//"], + "tasks": { + "doc:dependency-diagram": { + "command": [ + "cargo", + "run", + "-p", + "hash-repo-chores", + "--", + "dependency-diagram", + "--output", + "docs/dependency-diagram.mmd", + "--root", + "hash-graph-test-data", + "--root-deps-and-dependents", + "--link-mode", + "non-roots", + "--include-dev-deps", + "--include-build-deps", + "--logging-console-level", + "info" + ] + }, + "fix:clippy": { + "command": ["just", "clippy", "--fix"] + }, + "lint:clippy": { + "command": ["just", "clippy"] + }, + "test:unit": { + "command": [ + "mise", + "run", + "test:unit", + "@rust/hash-graph-test-data", + "--test-strategy=powerset" + ] + } + } +} diff --git a/turbo.json b/turbo.json index c83cb1fd863..b1496749961 100644 --- a/turbo.json +++ b/turbo.json @@ -167,6 +167,7 @@ "CARGO_INCREMENTAL" ], "futureFlags": { - "affectedUsingTaskInputs": true + "affectedUsingTaskInputs": true, + "experimentalTaskCommand": true } }