Check for pnpm v10 `pnpm.onlyBuiltDependencies` for certain packages
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- next.js, typescript
- Área
- build-system, tooling
Línea de trabajo
Start by tracing the existing Preflight checks and how they read package.json. Identify packages such as sharp and bcrypt that require lifecycle builds, then validate the pnpm.onlyBuiltDependencies configuration against those packages. Done means pnpm v10 projects receive a useful failure or warning when required entries are missing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Alternative to https://github.com/upleveled/eslint-config-upleveled/issues/488
Currently, some lifecycle scripts (build scripts) of packages like sharp and bcrypt are not allowed in pnpm v10, and result in errors like the following Ignored build scripts error:
$ pnpm install
Lockfile is up to date, resolution step is skipped
Progress: resolved 1, reused 0, downloaded 0, added 0
Packages: +814
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 814, reused 0, downloaded 69, added 66
...
Ignored build scripts: sharp. Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
Done in 13.8s
A student not including sharp in their Next.js project will mostly appear to work properly, but pages will most likely be slow to load, due to Next.js falling back to slower non-native image optimization.
To avoid this, add a Preflight check to:
- Check
package.jsonfor packages which should be built, likesharpandbcrypt - Make sure that students have configured the
pnpm.onlyBuiltDependenciescorrectly (like the example below) for such packages
{
"pnpm": {
"overrides": {
"@emotion/react": "11.14.0",
"@emotion/styled": "11.14.0",
"@tailwindcss/node": "4.0.1",
"@tailwindcss/oxide": "4.0.1",
"@types/react": "19.0.8",
"@types/react-dom": "19.0.3"
},
"patchedDependencies": {
"next": "patches/next.patch"
},
"onlyBuiltDependencies": [
"sharp"
]
}
}
- Lenguaje dominante
- TypeScript
- Estrellas
- 14
- Forks
- 3
- Merge medio
- 3 d 13 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin 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 upleveled/preflight
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
-
Misaligned formatting of output from Docker containerQuizá libre de nuevo @karlhorky la tomó hace 603 días y no hay ningún pull request abierto. Abierto
-
Revert complex `corepack` GitHub Actions changesQuizá libre de nuevo @karlhorky la tomó hace 607 días y no hay ningún pull request abierto. Abierto
-
Switch to `pnpm pack --json`Quizá libre de nuevo @karlhorky la tomó hace 712 días y no hay ningún pull request abierto. Abierto
-
Switch from `semver` to `@std/semver`?Quizá libre de nuevo @karlhorky la tomó hace 799 días y no hay ningún pull request abierto. Abierto
Todos los issues de upleveled/preflight
Issues similares
-
area: triage theme: undefined
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
jhipster/generator-jhipster#35895 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
paperclipai/paperclip#18396 ·
Los mantenedores suelen responder en 1 día
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
lingdojo/kana-dojo#33380 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
-
chore other
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
alastair-smith/card-games#342 ·
Los mantenedores suelen responder en 1 día