Skills in a workspace fall back to each package when one member's package.json has a BOM or does not parse
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 26
- Forks
- 4
- Merge medio
- 12 h 11 min
- PR fusionados (30 d)
- 38
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de prisma/prisma-cli
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
prisma/prisma-cli#416 ·
Los mantenedores suelen responder en 1 día
-
service logs --tail accepts negative and fractional numbersQuizá libre de nuevo @somcpp la tomó hace 68 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
prisma/prisma-cli#309 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
The update notice tells users to install @prisma/cli and does not recognise a global prisma installAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
prisma/prisma-cli#306 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
prisma/prisma-cli#305 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
prisma/prisma-cli#302 ·
Los mantenedores suelen responder en 1 día
Todos los issues de prisma/prisma-cli
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tashfeenahmed/freellmapi#2305 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
prime-radiant-inc/evener#8335 ·
Los mantenedores suelen responder en 1 día
-
Calendar: a range's preview stays on the last day pointed at after the pointer leaves the daysAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vercel-labs/ui#1921 ·
Los mantenedores suelen responder en 1 día
-
docs: a new board's default grant names development, Vercel's API seeds preview and productionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Bug] Upgrade dompurify to 3.5.xAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 65/100
microsoft/monaco-editor#5626 ·
Los mantenedores suelen responder en 1 día