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

Update CLI to v12.1.1 #41530

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Update CLI to v12.1.1 #41530

merged 1 commit into from
Nov 21, 2023

Conversation

szymonrybczak
Copy link
Contributor

@szymonrybczak szymonrybczak commented Nov 17, 2023

Summary:

Updates CLI. Also I provided platformName parameter to run() function when executing CLI.

Changelog:

[GENERAL] [CHANGED] - Bump CLI to v12.1.1

Test Plan:

CI Green

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 17, 2023
@@ -67,7 +67,7 @@ async function main() {
// Ignore errors, since it's a nice to have warning
}
}
return cli.run();
return cli.run('react-native');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's use name from package.json that way each out of tree platform will work out of the box

@@ -67,7 +67,7 @@ async function main() {
// Ignore errors, since it's a nice to have warning
}
}
return cli.run();
return cli.run(name);
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, this change is intended to reduce fork surface for out of tree platforms like tvos, visionos, macos, etc, that would like to leverage CLI's init command without modifications.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With this change, OOT platforms will only need to adjust template files and publish a package, and init command will work.

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,518,642 -9,128,025
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,756,749 -11,277,324
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 9b1f8a8
Branch: main

@huntie huntie merged commit 3da0959 into facebook:0.73-stable Nov 21, 2023
63 checks passed
facebook-github-bot pushed a commit that referenced this pull request Dec 11, 2023
Summary:
To unlock ~~certain OOT platform capabilities~~ seamless `init` integration for out-of-tree platforms with CLI, we need to pass the package name to it. This change landed on 0.73 branch already: #41530

Depends on #41722

## Changelog:

[INTERNAL] [ADDED] - Fix init for out-of-tree platforms by passing name to CLI

Pull Request resolved: #41723

Test Plan: CI green

Reviewed By: christophpurrer

Differential Revision: D51979329

Pulled By: dmytrorykun

fbshipit-source-id: 451f70dc42ae0667bc65cba2e77898c9eec8d9ec
Othinn pushed a commit to Othinn/react-native that referenced this pull request Jan 9, 2024
…1723)

Summary:
To unlock ~~certain OOT platform capabilities~~ seamless `init` integration for out-of-tree platforms with CLI, we need to pass the package name to it. This change landed on 0.73 branch already: facebook#41530

Depends on facebook#41722

## Changelog:

[INTERNAL] [ADDED] - Fix init for out-of-tree platforms by passing name to CLI

Pull Request resolved: facebook#41723

Test Plan: CI green

Reviewed By: christophpurrer

Differential Revision: D51979329

Pulled By: dmytrorykun

fbshipit-source-id: 451f70dc42ae0667bc65cba2e77898c9eec8d9ec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Callstack Partner: Callstack Partner Pick Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants