Recommended way of distributing SDK ?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- graphql, typescript
- Lĩnh vực
- build-system, developer-experience
Hướng nghiên cứu
Start with package.json and the graphclient build command, reproducing the reported failures with type: module, CommonJS output, and a separate consumer package. Trace the generated SDK's introspection and runtime dependency behavior; done would be a confirmed distribution approach or a clearly scoped implementation and documentation plan.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi,
I'm trying to build the generated SDK as a separate package (in the future also adding resolvers, etc).
What is the recommended way of building and distributing the generated SDK ?
I've tried a few things so far but I'm hitting a couple of roadblocks.
E.g. when having "type": "module" in my package.json file and running graphclient build I get introspection errors when generating the schema Failed to generate the schema Error: Failed to fetch introspection from xxxxx: TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"
If I remove "type": "module" I can build the graphclient and compile the typescript, but when I then try to use the package in a separete codebase I get Module not found: Can't resolve '@graphql-mesh/utils' at runtime.
If I build as CJS using graphclient build --fileType js and import that in my other repo, I also get Can't resolve '@graphql-mesh/utils'
Any advice is much appreciated !
- Ngôn ngữ chính
- TypeScript
- Star
- 186
- Fork
- 49
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graphprotocol/graph-client
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
graphprotocol/graph-client#1029 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphprotocol/graph-client#1031 · 4 bình luận ·
-
[Bug] The order data source under sources tab in .graphclientrc.yml affects the query resultĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
graphprotocol/graph-client#1001 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 50/100
graphprotocol/graph-client#991 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 28/100
graphprotocol/graph-client#957 ·
Tất cả issue của graphprotocol/graph-client
Issue tương tự
-
Add: Digi World (Romania) SDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Fission-AI/OpenSpec#1986 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nestjs/docs.nestjs.com#3554 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
publicodes/publicodes#868 ·
-
namespace operations
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
EclipseFdn/open-vsx.org#13488 ·
Maintainer thường phản hồi trong vòng 2 ngày