react-native-monorepo-config 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,13 +30,13 @@ Here, `my-app` is a React Native app, and `a` and `b` are libraries that are use
30
30
  To configure Metro for `my-app`, you can create a `metro.config.js` file in the `my-app` directory with the following content:
31
31
 
32
32
  ```js
33
- const { getDefaultConfig } = require("@react-native/metro-config"); // Import from `@expo/metro-config` if using Expo CLI
34
- const { withMetroConfig } = require("react-native-monorepo-config");
33
+ const { getDefaultConfig } = require('@react-native/metro-config'); // Import from `@expo/metro-config` if using Expo CLI
34
+ const { withMetroConfig } = require('react-native-monorepo-config');
35
35
 
36
36
  module.exports = withMetroConfig(
37
37
  getDefaultConfig(__dirname), // Metro config to extend
38
38
  {
39
- root: path.resolve(__dirname, "../.."), // Path to the monorepo root
39
+ root: path.resolve(__dirname, '../..'), // Path to the monorepo root
40
40
  dirname: __dirname, // Path to the current directory
41
41
  }
42
42
  );
@@ -50,7 +50,7 @@ If you want to customize the returned Metro config, remember to merge the return
50
50
 
51
51
  ```js
52
52
  const monoRepoConfig = withMetroConfig(getDefaultConfig(__dirname), {
53
- root: path.resolve(__dirname, "../.."),
53
+ root: path.resolve(__dirname, '../..'),
54
54
  dirname: __dirname,
55
55
  });
56
56
 
@@ -60,8 +60,8 @@ module.exports = {
60
60
  resolver: {
61
61
  ...monoRepoConfig.resolver,
62
62
 
63
- assetExts: resolver.assetExts.filter((ext) => ext !== "svg"),
64
- sourceExts: [...resolver.sourceExts, "svg"],
63
+ assetExts: resolver.assetExts.filter((ext) => ext !== 'svg'),
64
+ sourceExts: [...resolver.sourceExts, 'svg'],
65
65
  },
66
66
  };
67
67
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-monorepo-config",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Configure Metro for a React Native app in a monorepo",
5
5
  "repository": "https://github.com/satya164/react-native-monorepo-config",
6
6
  "author": "Satyajit Sahoo <satyajit.happy@gmail.com> (https://github.com/satya164/)",