arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Suppress ignored failures
- Lingua principale
- TypeScript
- Stelle
- 1.6k
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia tracciando il modo in cui attw formatta lβoutput per le risoluzioni ignorate quando si usa --profile esm-only. La modifica Γ¨ completata quando i messaggi sulle risoluzioni ignorate vengono soppressi, mentre i risultati dellβanalisi pertinenti e il riepilogo delle risoluzioni non ignorate rimangono visibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- cli
- Tipo di issue
- FunzionalitΓ
- DifficoltΓ
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attivitΓ
- Tranquilla
- Chiarezza
- Abbastanza chiara
- IdoneitΓ per principianti
- 68/100