arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Suppress ignored failures
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、--profile esm-only を使用したときに attw が無視された解決結果の出力をどのようにフォーマットするかを追跡します。無視された解決結果に関するメッセージが抑制され、関連する無視されていない分析結果とサマリーが引き続き表示されれば、変更は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100