Skip to content

Commit 22cacf6

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Update GitHub references to react/metro
Summary: Update Metro repository links, workflow names, package metadata, and the website deployment guard after the repository moved to the React organization. This makes contribution, documentation, release, and deployment tooling consistently target the canonical repository. ___ Differential Revision: D119517083 fbshipit-source-id: 263150033e05ab36331cbd8f6cd29dda92d19561
1 parent 0ff28e6 commit 22cacf6

21 files changed

Lines changed: 37 additions & 37 deletions

File tree

‎.github/scripts/publish.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ git fetch origin main
1919
TAG_ON_MAIN=$(git branch -a --contains "$RAW_TAG_NAME" | grep -cFx ' remotes/origin/main' || true)
2020
echo "Tag is on main branch: $TAG_ON_MAIN"
2121

22-
# See https://github.com/facebook/metro/pull/1086 regarding handling of hotfix tags
22+
# See https://github.com/react/metro/pull/1086 regarding handling of hotfix tags
2323
# Deduce the expected name of a release branch for a tag based on Metro's release branch naming convention, eg v0.1.2-alpha.3 -> 0.1.x
2424
RELEASE_BRANCH=$(echo "$RAW_TAG_NAME" | awk -F. '{print substr($1, 2) "." $2 ".x"}')
2525

‎.github/workflows/build-test-and-deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: facebook/metro/build-test-and-deploy
1+
name: react/metro/build-test-and-deploy
22
on:
33
pull_request:
44
types: [opened, synchronize]

‎.github/workflows/deploy-website.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contents: write # to deploy
1919
runs-on: ubuntu-latest
2020

21-
if: github.repository == 'facebook/metro'
21+
if: github.repository == 'react/metro'
2222

2323
env:
2424
working-directory: website

‎.github/workflows/nightly-tests.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# In order to be updated when nightlies fail, please subscribe for updates on PR:
2-
# ---> https://github.com/facebook/metro/pull/1314 <---
2+
# ---> https://github.com/react/metro/pull/1314 <---
33
# where comments will be published on fail.
44

55
# This is a bit of a workaround tackling the lack of an organic way
66
# to notify certain people when a Github workflow fails:
77
# https://github.com/orgs/community/discussions/18039
88

9-
name: facebook/metro/nightly-tests
9+
name: react/metro/nightly-tests
1010
on:
1111
schedule:
1212
# Daily at at 5:00 UTC
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
script: |
4949
github.rest.issues.createComment({
50-
// see https://github.com/facebook/metro/pull/1314
50+
// see https://github.com/react/metro/pull/1314
5151
issue_number: 1314,
5252
owner: context.repo.owner,
5353
repo: context.repo.repo,

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The core team will be monitoring for pull requests. When we get one, we'll run s
2323
1. Fork the repo and create your branch from `main`.
2424

2525
```sh
26-
git clone https://github.com/facebook/metro
26+
git clone https://github.com/react/metro
2727
cd metro
2828
git checkout -b my_branch
2929
```

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Metro
22

3-
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/metro/blob/HEAD/LICENSE)
3+
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/react/metro/blob/HEAD/LICENSE)
44
[![npm package version](https://img.shields.io/npm/v/metro?color=brightgreen)](https://www.npmjs.com/package/metro)
5-
[![facebook/metro/nightly-tests](https://github.com/facebook/metro/actions/workflows/nightly-tests.yml/badge.svg)](https://github.com/facebook/metro/actions/workflows/nightly-tests.yml)
6-
[![Code coverage](https://codecov.io/gh/facebook/metro/branch/main/graph/badge.svg?token=oMHdoKhFZB)](https://codecov.io/gh/facebook/metro)
5+
[![react/metro/nightly-tests](https://github.com/react/metro/actions/workflows/nightly-tests.yml/badge.svg)](https://github.com/react/metro/actions/workflows/nightly-tests.yml)
6+
[![Code coverage](https://codecov.io/gh/react/metro/branch/main/graph/badge.svg?token=oMHdoKhFZB)](https://codecov.io/gh/react/metro)
77
[![Follow @MetroBundler on Twitter](https://img.shields.io/twitter/follow/MetroBundler?style=social)](https://twitter.com/intent/follow?screen_name=MetroBundler)
88

99
🚇 The JavaScript bundler for React Native.
@@ -32,9 +32,9 @@ Metro was previously part of the [react-native](https://github.com/facebook/reac
3232

3333
Meta has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.fb.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
3434

35-
### [Contributing guide](https://github.com/facebook/metro/blob/main/CONTRIBUTING.md)
35+
### [Contributing guide](https://github.com/react/metro/blob/main/CONTRIBUTING.md)
3636

37-
Read our [contributing guide](https://github.com/facebook/metro/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Metro.
37+
Read our [contributing guide](https://github.com/react/metro/blob/main/CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes to Metro.
3838

3939
### Discussions
4040

‎docs/Configuration.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,15 @@ Type: `string`
135135

136136
The absolute path of a module (or a package name resolvable from the `metro` package) that implements a transformer.
137137

138-
See the implementation of Metro's default transformer ([`metro-transform-worker`](https://github.com/facebook/metro/blob/main/packages/metro-transform-worker/src/index.js)) for more information about the transformer interface.
138+
See the implementation of Metro's default transformer ([`metro-transform-worker`](https://github.com/react/metro/blob/main/packages/metro-transform-worker/src/index.js)) for more information about the transformer interface.
139139

140140
#### `reporter`
141141

142142
Type: `{update: (event: ReportableEvent) => void}`
143143

144144
Used to report the status of the bundler during the bundling process. The default implementation prints most events to the terminal.
145145

146-
See also the [definition of `ReportableEvent`](https://github.com/facebook/metro/blob/main/packages/metro/src/lib/reporting.js) in Metro's source code.
146+
See also the [definition of `ReportableEvent`](https://github.com/react/metro/blob/main/packages/metro/src/lib/reporting.js) in Metro's source code.
147147

148148
#### `resetCache`
149149

@@ -198,11 +198,11 @@ function unstable_perfLoggerFactory(
198198
};
199199
```
200200

201-
* **`type`** Type of event being logged, e.g. `'STARTUP'`, `'BUNDLING_REQUEST'`, `'HMR'`. See type definition of [PerfLoggerFactory](https://github.com/facebook/metro/blob/main/packages/metro-config/src/types.js) for a full list of event types.
201+
* **`type`** Type of event being logged, e.g. `'STARTUP'`, `'BUNDLING_REQUEST'`, `'HMR'`. See type definition of [PerfLoggerFactory](https://github.com/react/metro/blob/main/packages/metro-config/src/types.js) for a full list of event types.
202202
* **`opts`**
203203
* **`key`**: An opaque identifier to distinguish between instances of an event type (e.g. multiple, possibly concurrent, HMR requests).
204204

205-
`unstable_perfLoggerFactory` should return an object implementing the [RootPerfLogger](https://github.com/facebook/metro/blob/main/packages/metro-config/src/types.js) interface. For example, a factory function returning a no-op RootPerfLogger could be implemented as follows:
205+
`unstable_perfLoggerFactory` should return an object implementing the [RootPerfLogger](https://github.com/react/metro/blob/main/packages/metro-config/src/types.js) interface. For example, a factory function returning a no-op RootPerfLogger could be implemented as follows:
206206

207207

208208
```javascript
@@ -231,7 +231,7 @@ const unstable_perfLoggerFactory = (type, factoryOpts) => {
231231
232232
Type: `Array<string>`
233233
234-
The list of asset file extensions to include in the bundle. For example, including `'ttf'` allows Metro bundles to reference `.ttf` files. This is used primarily to enable React Native's [image asset support](https://reactnative.dev/docs/images). The default list includes many common image, video and audio file extensions. See [Metro's source code](https://github.com/facebook/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16) for the full list.
234+
The list of asset file extensions to include in the bundle. For example, including `'ttf'` allows Metro bundles to reference `.ttf` files. This is used primarily to enable React Native's [image asset support](https://reactnative.dev/docs/images). The default list includes many common image, video and audio file extensions. See [Metro's source code](https://github.com/react/metro/blob/main/packages/metro-config/src/defaults/defaults.js#L16) for the full list.
235235
236236
#### `assetResolutions`
237237
@@ -472,7 +472,7 @@ In a future release of Metro, this option will be removed.
472472
473473
Type: `string`
474474
475-
The name of a module that provides the `asyncRequire` function, which is used to implement [dynamic `import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) at runtime. Defaults to [`metro-runtime/src/modules/asyncRequire`](https://github.com/facebook/metro/blob/main/packages/metro-runtime/src/modules/asyncRequire.js).
475+
The name of a module that provides the `asyncRequire` function, which is used to implement [dynamic `import()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) at runtime. Defaults to [`metro-runtime/src/modules/asyncRequire`](https://github.com/react/metro/blob/main/packages/metro-runtime/src/modules/asyncRequire.js).
476476
477477
:::note
478478
The module named by `asyncRequireModulePath` is [resolved](./Resolution.md) relative to the module containing the original `import()` call. In particular, assuming the default value of `asyncRequireModulePath` is in use, the project must have a compatible version of `metro-runtime` installed in `node_modules`.
@@ -583,7 +583,7 @@ Type: `string`
583583
584584
The name of a module that compiles code with Babel, returning an AST and optional metadata. Defaults to `metro-babel-transformer`.
585585
586-
Refer to the source code of [`metro-babel-transformer`](https://github.com/facebook/metro/blob/main/packages/metro-babel-transformer/src/index.js) and [`@react-native/metro-babel-transformer`](https://github.com/facebook/react-native/blob/main/packages/react-native-babel-transformer/src/index.js) for details on implementing a custom Babel transformer.
586+
Refer to the source code of [`metro-babel-transformer`](https://github.com/react/metro/blob/main/packages/metro-babel-transformer/src/index.js) and [`@react-native/metro-babel-transformer`](https://github.com/facebook/react-native/blob/main/packages/react-native-babel-transformer/src/index.js) for details on implementing a custom Babel transformer.
587587
588588
:::note
589589
This option only has an effect under the default [`transformerPath`](#transformerpath). Custom transformers may ignore it.
@@ -719,7 +719,7 @@ The input may be either an absolute URL (e.g. `https://example.com/foo/bar?baz=q
719719
720720
Type: `boolean`
721721
722-
Enable forwarding of `client_log` events (when client logs are [configured](https://github.com/facebook/metro/blob/614ad14a85b22958129ee94e04376b096f03ccb1/packages/metro/src/lib/createWebsocketServer.js#L20)) to the reporter. Defaults to `true`.
722+
Enable forwarding of `client_log` events (when client logs are [configured](https://github.com/react/metro/blob/614ad14a85b22958129ee94e04376b096f03ccb1/packages/metro/src/lib/createWebsocketServer.js#L20)) to the reporter. Defaults to `true`.
723723
724724
#### `tls`
725725

‎docs/PackageExports.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Introduced in Node.js 12.7.0, Package Exports is a modern approach for npm packa
99

1010
`exports` also supports different targets for a given subpath dependent on [*conditions*](https://nodejs.org/api/packages.html#conditional-exports), such as whether building for a browser or Node.js, and whether `import` or `require` is used by the consumer.
1111

12-
Package Exports support has been enabled by default in Metro since [0.82](https://github.com/facebook/metro/releases/tag/v0.82.0) (or React Native 0.79).
12+
Package Exports support has been enabled by default in Metro since [0.82](https://github.com/react/metro/releases/tag/v0.82.0) (or React Native 0.79).
1313

1414
- [Node.js spec](https://nodejs.org/docs/latest-v19.x/api/packages.html#package-entry-points)
1515
- [RFC for Package Exports in Metro](https://github.com/react-native-community/discussions-and-proposals/blob/main/proposals/0534-metro-package-exports-support.md)

‎docs/Resolution.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The request is resolved to a built-in empty module, namely the one specified in
5353

5454
:::note
5555

56-
These are the rules that Metro's default resolver follows. Refer to [`metro-resolver`'s source code](https://github.com/facebook/metro/blob/main/packages/metro-resolver/src/resolve.js) for more details.
56+
These are the rules that Metro's default resolver follows. Refer to [`metro-resolver`'s source code](https://github.com/react/metro/blob/main/packages/metro-resolver/src/resolve.js) for more details.
5757

5858
:::
5959

‎docs/SourceMapFormat.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Each metadata tuple is encoded as an array of zero or more entries. Each entry m
3232
The indices in each metadata tuple are assigned as follows:
3333

3434
* Index 0: [Function map](#function-map) or `null`.
35-
* In Metro, this is the result of calling [`generateFunctionMap`](https://github.com/facebook/metro/blob/main/packages/metro-source-map/src/generateFunctionMap.js) on the source AST.
35+
* In Metro, this is the result of calling [`generateFunctionMap`](https://github.com/react/metro/blob/main/packages/metro-source-map/src/generateFunctionMap.js) on the source AST.
3636
* Index 1-∞: Reserved for future use.
3737

3838
#### Function map

0 commit comments

Comments
 (0)