Issue: Improve `bootstrap.js` to support both Yarn and NPM with clearer errors
@adimiz1 đang làm issue này rồi.
Từ ngày 25/9/2025.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 28
- Fork
- 21
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
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 cloudinary/cloudinary-react-native
-
hacktoberfest-accepted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cloudinary/cloudinary-react-native#55 · 3 bình luận ·
-
Add CODE_OF_CONDUCT.mdCó thể làm lại được @adimiz1 đã nhận 405 ngày trước và không có pull request nào đang mở. Đang mở
cloudinary/cloudinary-react-native#53 · 2 bình luận · 1 người được giao ·
-
Support for expo 54Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
cloudinary/cloudinary-react-native#52 · 8 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
-
Improved Sample appĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
cloudinary/cloudinary-react-native#31 · 3 bình luận ·
Tất cả issue của cloudinary/cloudinary-react-native
Issue tương tự
-
area:docs documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/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 72/100
Maintainer thường phản hồi trong vòng 12 ngày
-
area:docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
thainanluiz/TSSuper#30 ·
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
amplitude/Amplitude-TypeScript#2179 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ci good first issue severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
TMHSDigital/GH-Arcade#111 ·