Skills in a workspace fall back to each package when one member's package.json has a BOM or does not parse
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- node.js, typescript
Research direction
Start with packages/cli/src/lib/skills/workspace-members.ts and trace how @manypkg/tools handles workspace member manifests; check the skills sync and init paths that consume the member list. Reproduce with a workspace member whose package.json has a BOM or invalid JSON. Done when one bad manifest does not hide other members and the affected skills commands report a diagnostic instead of silently using the member directory.
Written by the indexing model from the issue text.
Description
What happens
In a pnpm or npm workspace, a single member whose package.json starts with a byte order mark (BOM), or does not parse as JSON, makes the CLI treat the whole workspace as having no members.
packages/cli/src/lib/skills/workspace-members.ts lists members with @manypkg/tools, which throws on that file. The CLI then anchors agent skills at the current directory in every package, as it did before 8.0.0-rc.38:
prisma skills syncrun in any member writes skill copies into that member, not the workspace root;- the out-of-date notice reads the member's own copies;
prisma initin a member writes thepostinstallhook there, unless a parentprisma.config.tsgoverns it.
Nothing tells the user why.
Reproduction
- A pnpm workspace with
pnpm-workspace.yamllistingpackages/*, two memberspackages/aandpackages/b, and a.gitdirectory at the root. - Save
packages/b/package.jsonwith a UTF-8 BOM (or break its JSON). - In
packages/a, runprisma skills sync. Expected: copies under the workspace root. Actual: copies underpackages/a.
Expected
Listing members tolerates a BOM, and one unreadable member manifest does not drop every member. If a member cannot be read, the skills commands report it with a diagnostic, not silently fall back.
Found while reviewing the fix for init --postinstall in a workspace member.
- Dominant language
- TypeScript
- Stars
- 26
- Forks
- 4
- Avg merge
- 12h 11m
- Merged PRs (30d)
- 38
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from prisma/prisma-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
prisma/prisma-cli#416 ·
Maintainers usually reply within 1 day
-
service logs --tail accepts negative and fractional numbersMay be free again @somcpp claimed this 68 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#309 · 1 comment ·
Maintainers usually reply within 1 day
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma installOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#306 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
prisma/prisma-cli#305 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
prisma/prisma-cli#302 ·
Maintainers usually reply within 1 day
All issues in prisma/prisma-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vercel-labs/ui#1921 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 65/100
microsoft/monaco-editor#5626 ·
Maintainers usually reply within 1 day