arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Suppress ignored failures
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.6k
- Forks
- 65
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I'm running `attw` with `--profile esm-only`. I get a lot of noisy output like
```
@cerbos/core v0.31.0
(ignoring resolutions: 'node10', 'node16-cjs')
(ignored per resolution) 💀 Import failed to resolve to type declarations or JavaScript files. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md
(ignored per resolution) ⚠️ A require call resolved to an ESM JavaScript file, which is an error in Node and some bundlers. CommonJS consumers will need to use a dynamic import. https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/CJSResolvesToESM.md
┌───────────────────┬────────────────────────────────────────┬────────────────────────────────────────┐
│ │ "@cerbos/core" │ "@cerbos/core/~internal" │
├───────────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ node16 (from ESM) │ 🟢 (ESM) │ 🟢 (ESM) │
├───────────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ bundler │ 🟢 │ 🟢 │
├───────────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ node10 │ (ignored) 💀 Resolution failed │ (ignored) 💀 Resolution failed │
├───────────────────┼────────────────────────────────────────┼────────────────────────────────────────┤
│ node16 (from CJS) │ (ignored) ⚠️ ESM (dynamic import only) │ (ignored) ⚠️ ESM (dynamic import only) │
└───────────────────┴────────────────────────────────────────┴────────────────────────────────────────┘
```
It'd be nice to suppress the output about the ignored resolutions - I've explicitly indicated that the package is ESM-only by specifying `--profile` and so I don't need to know about them.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza rastreando cómo attw formatea la salida para las resoluciones ignoradas al usar --profile esm-only. El cambio estará completo cuando se supriman los mensajes sobre las resoluciones ignoradas, mientras los resultados de análisis relevantes y el resumen de las resoluciones no ignoradas sigan siendo visibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 68/100