Issue: Improve `bootstrap.js` to support both Yarn and NPM with clearer errors
@adimiz1 arbeitet bereits daran.
Seit 25.9.2025.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 28
- Forks
- 21
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cloudinary/cloudinary-react-native
-
hacktoberfest-accepted
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
cloudinary/cloudinary-react-native#55 · 3 Kommentare ·
-
Add CODE_OF_CONDUCT.mdEvtl. wieder frei @adimiz1 hat das vor 405 Tagen übernommen, und es ist kein Pull Request offen. Offen
cloudinary/cloudinary-react-native#53 · 2 Kommentare · 1 zugewiesene Person ·
-
Support for expo 54Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 45/100
cloudinary/cloudinary-react-native#52 · 8 Kommentare ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
-
Improved Sample appOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
cloudinary/cloudinary-react-native#31 · 3 Kommentare ·
Alle Issues in cloudinary/cloudinary-react-native
Ähnliche Issues
-
area:docs documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 12 Tagen
-
area:docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
thainanluiz/TSSuper#30 ·
-
[analytics-core] getQueryParams does not decode `+` as space and truncates values containing `=`Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
amplitude/Amplitude-TypeScript#2179 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
ci good first issue severity: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
TMHSDigital/GH-Arcade#111 ·