arethetypeswrong / arethetypeswrong/arethetypeswrong.github.io
Suppress ignored failures
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 65
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách attw định dạng đầu ra cho các resolution bị bỏ qua khi sử dụng --profile esm-only. Thay đổi được hoàn tất khi các thông báo về các resolution bị bỏ qua bị ẩn đi, trong khi các kết quả phân tích liên quan và phần tóm tắt của các resolution không bị bỏ qua vẫn hiển thị.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 68/100