test(generators): strip core-trpc dep from feature packages in e2e
Some checks are pending
CI / typecheck + lint + boundaries + test + build (push) Waiting to run
CI / Playwright e2e (push) Blocked by required conditions
CI / Storybook smoke tests + visual regression (push) Blocked by required conditions
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
Coverage snapshot / snapshot (push) Waiting to run
Release Please / release-please (push) Waiting to run
Sentry PII guard (R31) / pii-guard (push) Waiting to run

The core-package trpc removal e2e was only stripping @repo/core-trpc
from the two app package.json files. blog, marketing-pages, and
navigation also depend on core-trpc for their ./ui hooks, so pnpm
install in the simulated post-removal state failed to resolve the
workspace dep. Strip the dep from every package that references it.
This commit is contained in:
2026-06-03 13:27:53 +02:00
parent 0a34b45bb7
commit d8a3250c12

View File

@@ -61,10 +61,19 @@ describe("e2e: core-package trpc", () => {
!src.includes("packages/core-trpc"),
});
// Strip @repo/core-trpc from app package.json files so pnpm install
// succeeds without the package being present (simulating the post-removal state).
stripCoreTrpcDep(join(tmp, "apps", "web-next", "package.json"));
stripCoreTrpcDep(join(tmp, "apps", "web-tanstack", "package.json"));
// Strip @repo/core-trpc from every package that references it so pnpm
// install succeeds without the package being present (simulating the
// post-removal state). Apps list it directly; the blog, marketing-pages,
// and navigation features depend on it for their ./ui tRPC hooks.
for (const pkgDir of [
["apps", "web-next"],
["apps", "web-tanstack"],
["packages", "blog"],
["packages", "marketing-pages"],
["packages", "navigation"],
]) {
stripCoreTrpcDep(join(tmp, ...pkgDir, "package.json"));
}
execSync(`cd ${tmp} && pnpm install --frozen-lockfile=false`, {
stdio: "ignore",