fix(templates): type-check event functions in a new project

Đang mở Phù hợp với người mới
#183 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bun, typescript
Lĩnh vực
build-system, testing

Hướng nghiên cứu

Đọc các tệp tsconfig của template và packages/create-relkit/src/create-capabilities.ts; so sánh chúng với scripts/railway-newcomer/project.ts và commit “re-pin the minimal template digest” để xác định mẫu dự kiến. Thêm event registry vào danh sách tệp template phù hợp và cập nhật digest đã ghim, hoặc xác nhận phương án thay thế của issue. Công việc hoàn tất khi một dự án được tạo từ template có event function chạy qua bun run typecheck.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug good first issue

The templates' tsconfig.json lists .relkit/generated/route-module-checks.ts and
.relkit/generated/context-registry.d.ts under files, but not
.relkit/generated/event-registry.d.ts. In a project that defines an event function,
tsc --noEmit fails until you add the file by hand (the Railway newcomer test does this in
scripts/railway-newcomer/project.ts).

What to do

  • Add the event registry to the files list of the templates that can define events, or document why
    relkit add events should add it instead.
  • Template files are pinned by digest: re-pin it in packages/create-relkit/src/create-capabilities.ts
    (see the commit "re-pin the minimal template digest" for the pattern).

Done when a project created from the template and given an event function passes bun run typecheck.

Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Merge trung bình
2 giờ 45 phút
Pull request đã merge (30 ngày)
64

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rel-kit/relkit

Tất cả issue của rel-kit/relkit

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.