Issue: Improve `bootstrap.js` to support both Yarn and NPM with clearer errors
評価
この issue はまだ評価されていません。
説明
Feature request for Cloudinary React Native SDK
Improve scripts/bootstrap.js to support both Yarn and NPM with clearer error handling.
Explain your use case
When contributing to this repository, new developers typically start with npm install.
However, the current scripts/bootstrap.js assumes Yarn is installed.
If Yarn is missing, the script fails without guidance, making onboarding harder for contributors who default to npm.
Describe the problem you’re trying to solve
Right now:
- The script hardcodes Yarn and fails if it’s not installed.
- There is no fallback to
npm run bootstrap. - If
bootstrapis not defined inpackage.json, the script exits with no explanation.
This creates friction for new contributors and may result in unnecessary issues being opened.
Do you have a proposed solution?
Yes.
- Detect if Yarn is available; if not, fall back to
npm run bootstrap. - Allow contributors to explicitly prefer npm (e.g. with a flag like
--use-npm). - Validate that a
bootstrapscript exists inpackage.jsonbefore trying to run it. - Print clear, contributor-friendly error messages when something fails.
This change would not alter the default behavior for Yarn users, but it would improve reliability, reduce confusion, and make onboarding easier for developers using npm.
- 主要言語
- TypeScript
- スター
- 28
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudinary/cloudinary-react-native のほかの issue
-
hacktoberfest-accepted
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
cloudinary/cloudinary-react-native#55 · コメント 3 件 ·
-
Add CODE_OF_CONDUCT.md再び着手できるかも @adimiz1 が 405 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
cloudinary/cloudinary-react-native#53 · コメント 2 件 · 担当者 1 名 ·
-
Support for expo 54オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
cloudinary/cloudinary-react-native#52 · コメント 8 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
Improved Sample appオープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
cloudinary/cloudinary-react-native#31 · コメント 3 件 ·
cloudinary/cloudinary-react-native の issue をすべて見る
似ている issue
-
area:docs documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 12 日以内に返信
-
area:docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
thainanluiz/TSSuper#30 ·
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
amplitude/Amplitude-TypeScript#2179 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
ci good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
TMHSDigital/GH-Arcade#111 ·