diff --git a/scripts/mutate-cultmesh-authority.mjs b/scripts/mutate-cultmesh.mjs similarity index 98% rename from scripts/mutate-cultmesh-authority.mjs rename to scripts/mutate-cultmesh.mjs index f7df540b..1752c657 100644 --- a/scripts/mutate-cultmesh-authority.mjs +++ b/scripts/mutate-cultmesh.mjs @@ -1,6 +1,7 @@ -// Mutation check for the CultMesh route verification rules. +// Mutation check for the CultMesh rules TypeScript owns: route verification and +// the realtime frame codec. // -// Two files own those rules and each is one target here. `shared` is +// Two files own the route rules and each is one target here. `shared` is // `packages/cultnet-ts/src/cultmesh-authority.ts`, the one verifier, killed by // `npm run test --workspace packages/cultnet-ts`. `browser` is // `packages/cultmesh-browser/src/index.ts`, which must *call* the shared rules @@ -20,7 +21,10 @@ // that sidecar by the next run, not by git. After the final restore each // package is rebuilt so `dist/` never carries the last mutant. // -// node scripts/mutate-cultmesh-authority.mjs +// `realtime` is `packages/cultmesh-ts/src/realtime-wire.ts`, the frame codec, +// killed by `npm run test --workspace packages/cultmesh-ts`. +// +// node scripts/mutate-cultmesh.mjs import { createHash } from "node:crypto"; import { execFileSync } from "node:child_process"; diff --git a/scripts/run-typescript-workspaces.mjs b/scripts/run-typescript-workspaces.mjs index 933079da..da881464 100644 --- a/scripts/run-typescript-workspaces.mjs +++ b/scripts/run-typescript-workspaces.mjs @@ -6,7 +6,11 @@ if (!command) throw new Error("Usage: node scripts/run-typescript-workspaces.mjs const npmCli = process.env.npm_execpath ?? join(dirname(process.execPath), "node_modules", "npm", "bin", "npm-cli.js"); -const workspaces = ["cultcache-ts", "cultnet-ts", "cultmesh-ts", "cultmesh-browser"]; +// npm resolves a workspace by its manifest name, not its directory, so this list +// moves when a package is scoped: `8cb3b72` renamed `cultcache-ts` to +// `@gamecult/cultcache-ts` and left this entry behind, which broke `build:ts` and +// `test:ts` for every workspace from that commit on. +const workspaces = ["@gamecult/cultcache-ts", "cultnet-ts", "cultmesh-ts", "cultmesh-browser"]; const childEnv = process.platform === "win32" ? { ...process.env,