Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent further prompts in npx create-react-native-library #156

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

Johennes
Copy link
Collaborator

@Johennes Johennes commented Nov 9, 2024

These changes should make it easier to run test-turbo-modules.sh on the CI in future.

@@ -165,7 +165,7 @@ create_library() {
example_type=vanilla
fi
echo "-- Creating library $PROJECT_SLUG with create-react-native-library@$BOB_VERSION"
npx "create-react-native-library@$BOB_VERSION" \
npm_config_yes=true npx "create-react-native-library@$BOB_VERSION" \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This confirms the install prompt when you haven't run the supplied version of create-react-native-library before.

Need to install the following packages:
[email protected]
Ok to proceed? (y)

@@ -175,6 +175,7 @@ create_library() {
--languages cpp \
--type module-new \
--example $example_type \
--local false \
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This declines generating a local library when running the script from the root folder of another project (such as ubrn itself).

? Looks like you're under a project folder. Do you want to create a local library? › (Y/n)

@Johennes
Copy link
Collaborator Author

There seems to be a timing issue on the CI that makes the abort-controller test flake occasionally. That should be unrelated to the changes in this PR though.

@Johennes Johennes requested a review from jhugman November 11, 2024 13:08
Copy link
Owner

@jhugman jhugman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes seem sensible and reasonable. I have tested them on my local machine, and they work.

Great work, thank you once again @Johennes !

:shipit:

@Johennes Johennes merged commit 6c96bd3 into main Nov 11, 2024
5 checks passed
@Johennes Johennes deleted the johannes/test-turbo-modules branch November 11, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants