react-native-monorepo-config 0.2.0 → 0.2.2
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/LICENSE +2 -2
- package/README.md +2 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Satyajit Sahoo
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -81,6 +81,8 @@ const monoRepoConfig = withMetroConfig(getDefaultConfig(__dirname), {
|
|
|
81
81
|
});
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
The workspaces can contain globs or relative paths. They will be resolved relative to the monorepo root.
|
|
85
|
+
|
|
84
86
|
This can be useful if you're not using Yarn workspaces or if you want to include only specific packages to improve performance in large monorepos.
|
|
85
87
|
|
|
86
88
|
## How it works
|
package/index.js
CHANGED
|
@@ -21,7 +21,7 @@ export function withMetroConfig(baseConfig, { root, dirname, workspaces }) {
|
|
|
21
21
|
if (workspaces == null) {
|
|
22
22
|
if (pkg.workspaces == null) {
|
|
23
23
|
throw new Error(
|
|
24
|
-
`No 'workspaces' field found in the 'package.json' at '${root}'.`
|
|
24
|
+
`No 'workspaces' field found in the 'package.json' at '${root}' and no 'workspaces' option was provided.`
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-monorepo-config",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
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/)",
|