const std = @import("std"); // Root build.zig for a two-package monorepo. // Open the workspace root in Nova → discovers "test-all" and "gen-docs" steps. // Open packages/beta/ separately → discovers that package's own "test" step. pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ .name = "monorepo-root", .root_module = b.createModule(.{ .root_source_file = b.path("src/main.zig"), .target = target, .optimize = optimize, }), }); b.installArtifact(exe); const run_cmd = b.addRunArtifact(exe); const run_step = b.step("run", "Run the root executable"); run_step.dependOn(&run_cmd.step); // Placeholder step that would orchestrate sub-package tests in a real monorepo. const test_all_step = b.step("test-all", "Run tests for all packages"); _ = test_all_step; const docs_step = b.step("gen-docs", "Generate docs for all packages"); _ = docs_step; }