Repository navigation
docs(skills): in a workspace, the skills postinstall goes in the root package.json, not a workspace package's - #484
Conversation
… package.json, not a member's Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
… and shorten the README's note Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
|
Caution Gizmo failed to process the last GitHub event for this pull request: This suspended workflow run was already resumed by another caller. Workflow "guardrail-lifecycle" run "38f05bb7-8949-4cd3-9021-0494811ad25d" moved from "suspended" to "running" before this resume could claim it. Only one resume() call may continue a given suspension; re-read the run state before resuming again. Open findings: 🟡 1 minor Change walkthroughThis is a docs-only change that tells users of Composer to put the Getting-started guide and skill README (docs/guides/getting-started.md:80, skills/README.md:40). The pre-existing monorepo paragraph is reworded as one sentence chain: it now says "monorepo (a pnpm, npm or Yarn workspace)" to rule out the Prisma Cloud meaning of "workspace", states the concurrency hazard immediately after the instruction instead of at the end, and expands the Root README (README.md:38). The "In a workspace" phrasing becomes "In a monorepo, the hook goes in the workspace root's Deferred record (.drive/deferred.md:379). A new deferred entry notes that the auth module README's Composer 0.34.0 upgrade note still says to run No behavior changes; the CLI, scripts, and examples are untouched. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
…ftover the warning names Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
Signed-off-by: willbot <w.a.madden+machine@gmail.com> Signed-off-by: Will Madden <madden@prisma.io>
In a monorepo, Composer's docs lead every user to a
prismawarning on every install. This pull request tells them to put theprisma skills syncpostinstall hook in the workspace root'spackage.jsoninstead of a workspace package's.What goes wrong today
The README, the getting-started guide and the skill's README all say to add
"postinstall": "prisma skills sync || exit 0"to "yourpackage.json". In a monorepo, a reader puts it in the workspace package that uses Composer. prisma/asks did exactly that, indeploy/package.json.Since
prisma8.0.0-rc.38 (prisma/prisma-cli#425), the skill copies live at the workspace root, and a sync from any workspace package writes them there. Since rc.39,prismaprintsSKILLS.MEMBER_LEFTOVERon every install that runs the hook in a workspace package. Several such hooks run at the same time, all writing the root's copies, and one can leave another's copy missing a file until the next version change.The change
The getting-started guide and the skill's README gain this paragraph after the
postinstallexample:The README gains one sentence pointing to the getting-started guide. A single-package app is unaffected: its own
package.jsonis the root.The dev dependency matters with pnpm, which puts only the root's own dependencies on the root hook's path. Without it,
|| exit 0turns "command not found" into a silent no-op.The
prismaCLI does not change; the session that maintains it agreed that Composer's docs are what is out of step. No other Composer page puts askillssection in a workspace package'sprisma.config.ts, which the CLI also ignores now, so nothing else changes.A drive code review (system design and code) found three wording problems, fixed here: "workspace" alone could mean a Prisma Cloud workspace, the reason came last, and the advice for the warning covered only the hook.
Docs only; no release needed.
Agent: herodotus-23
🤖 Generated with Claude Code