forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into rootviewstyle
- Loading branch information
Showing
170 changed files
with
2,270 additions
and
2,079 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,4 +85,4 @@ untyped-import | |
untyped-type-import | ||
|
||
[version] | ||
^0.236.0 | ||
^0.237.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Publish Bumped Packages | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "*-stable" | ||
|
||
jobs: | ||
publish_bumped_packages: | ||
runs-on: ubuntu-latest | ||
env: | ||
GHA_NPM_TOKEN: ${{ secrets.GHA_NPM_TOKEN }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4.1.1 | ||
- name: Setup node.js | ||
uses: ./.github/actions/setup-node | ||
- name: Run Yarn Install | ||
run: yarn install | ||
- name: Build packages | ||
run: yarn build | ||
- name: Set NPM auth token | ||
run: echo "//registry.npmjs.org/:_authToken=$GHA_NPM_TOKEN" > ~/.npmrc | ||
- name: Find and publish all bumped packages | ||
run: node ./scripts/releases-ci/publish-updated-packages.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. | ||
* | ||
* @flow | ||
* @format | ||
*/ | ||
|
||
declare module 'listr2' { | ||
declare export type TaskResult< | ||
ContextT = {__proto__: null}, | ||
ReturnT = mixed, | ||
> = | ||
| ReturnT | ||
| Promise<ReturnT> | ||
| rxjs$Observable<ReturnT> | ||
| stream$Readable | ||
| Listr<ContextT>; | ||
|
||
declare type TaskFn<ContextT, ReturnT> = ( | ||
ctx: ContextT, | ||
task: TaskInstance, | ||
) => TaskResult<ContextT, ReturnT>; | ||
|
||
declare type SkipResultSync = boolean | string; | ||
declare type SkipResult = SkipResultSync | Promise<SkipResultSync>; | ||
declare type SkipFn<ContextT> = (ctx: ContextT) => SkipResult; | ||
|
||
declare type CustomRenderer = {...}; // TODO | ||
|
||
declare interface TaskInstance { | ||
title: string; | ||
output: string; | ||
skip(reason?: string): void; | ||
} | ||
|
||
declare export type TaskSpec< | ||
ContextT = {__proto__: null}, | ||
ReturnT = mixed, | ||
> = { | ||
title: string, | ||
task: TaskFn<ContextT, ReturnT>, | ||
skip?: SkipFn<ContextT>, | ||
}; | ||
|
||
declare export type Options = { | ||
concurrent?: boolean | number, | ||
exitOnError?: boolean, | ||
renderer?: 'default' | 'verbose' | 'silent' | CustomRenderer, | ||
nonTTYRenderer?: 'default' | 'verbose' | 'silent' | CustomRenderer, | ||
}; | ||
|
||
declare export class Listr<ContextT> { | ||
constructor<ReturnT>( | ||
tasks: Array<TaskSpec<ContextT, ReturnT>>, | ||
options?: Options, | ||
): void; | ||
add<ReturnT>(task: TaskSpec<ContextT, ReturnT>): this; | ||
add<ReturnT>(tasks: $ReadOnlyArray<TaskSpec<ContextT, ReturnT>>): this; | ||
run(ctx?: ContextT): Promise<ContextT>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.