Recommended way of distributing SDK ?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 20/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- graphql, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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 !
- 主要言語
- TypeScript
- スター
- 186
- フォーク
- 49
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphprotocol/graph-client のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
graphprotocol/graph-client#1029 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
graphprotocol/graph-client#1031 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
graphprotocol/graph-client#1001 · コメント 1 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
graphprotocol/graph-client#991 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
graphprotocol/graph-client#957 ·
graphprotocol/graph-client の issue をすべて見る
似ている issue
-
area/core status/need-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
google-gemini/gemini-cli#29602 ·
メンテナーはふだん 1 日以内に返信
-
area: backend enhancement priority: low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
snapotter-hq/SnapOtter#1879 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
Tencent/BrowserSkill#390 ·
メンテナーはふだん 1 日以内に返信
-
good first issue status: needs triaging type: bug version: 2.0
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
medusajs/medusa#17094 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信