@react-native/metro-config 0.72.6 → 0.73.0-nightly-20230604-2d07d5f16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @react-native/metro-config
2
+
3
+ [![Version][version-badge]][package]
4
+
5
+ ## Installation
6
+
7
+ ```
8
+ yarn add --dev @react-native/js-polyfills metro-config metro-react-native-babel-transformer metro-runtime @react-native/metro-config
9
+ ```
10
+
11
+ *Note: We're using `yarn` to install deps. Feel free to change commands to use `npm` 3+ and `npx` if you like*
12
+
13
+ [version-badge]: https://img.shields.io/npm/v/@react-native/metro-config?style=flat-square
14
+ [package]: https://www.npmjs.com/package/@react-native/metro-config
15
+
16
+ ## Testing
17
+
18
+ To run the tests in this package, run the following commands from the React Native root folder:
19
+
20
+ 1. `yarn` to install the dependencies. You just need to run this once
21
+ 2. `yarn jest packages/metro-config`.
package/index.js CHANGED
@@ -35,7 +35,6 @@ const INTERNAL_CALLSITES_REGEX = new RegExp(
35
35
  /**
36
36
  * Get the base Metro configuration for a React Native project.
37
37
  */
38
-
39
38
  function getDefaultConfig(
40
39
  projectRoot /*: string */
41
40
  ) /*: MetroConfig */ {
package/package.json CHANGED
@@ -1,18 +1,28 @@
1
1
  {
2
2
  "name": "@react-native/metro-config",
3
- "version": "0.72.6",
3
+ "version": "0.73.0-nightly-20230604-2d07d5f16",
4
4
  "description": "Metro configuration for React Native.",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
- "url": "git@github.com:facebook/react-native.git",
8
+ "url": "https://github.com/facebook/react-native.git",
8
9
  "directory": "packages/metro-config"
9
10
  },
10
- "license": "MIT",
11
+ "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/metro-config#readme",
12
+ "keywords": [
13
+ "metro",
14
+ "config",
15
+ "react-native"
16
+ ],
17
+ "bugs": "https://github.com/facebook/react-native/issues",
18
+ "engines": {
19
+ "node": ">=16"
20
+ },
11
21
  "exports": "./index.js",
12
22
  "dependencies": {
13
- "@react-native/js-polyfills": "^0.72.1",
14
- "metro-config": "0.76.5",
15
- "metro-react-native-babel-transformer": "0.76.5",
16
- "metro-runtime": "0.76.5"
23
+ "@react-native/js-polyfills": "^0.73.0",
24
+ "metro-config": "0.76.2",
25
+ "metro-react-native-babel-transformer": "0.76.2",
26
+ "metro-runtime": "0.76.2"
17
27
  }
18
28
  }