flow-mono create-symlinks [flowconfig-path]
Ever had errors like Required module not found for dependencies which where located in the root node_modules of your mono-repo? Ever wanted to maintain a fallback or even a singleton .flowconfig in your mono-repo? This command is your new best friend!
Features
- Resolves packages of your mono-repo that have a dependency to
flow-bin. - Creates symlinks for all dependencies into the root
node_modulesof your mono-repo. - Creates symlinks to the provided
.flowconfigpath if a package does not hold it's own.flowconfigfile.
Example
$ flow-mono create-symlinks ./build/.flowconfig
Options and Arguments
[flowconfig-path]
The relative path to the fallback / singleton .flowconfig.
-r, --relative (Optional)
Create relative symlinks (e.g. ../../../build/.flowconfig) instead of absolute symlinks (e.g. /path/to/build/.flowconfig)
Configuration
Additionally you can specify a blacklist of packages that should be ignored entirely from being symlinked. To do so just create a .flowmonorc or a flow-mono section in your repositories root package.json, paste in the example and adjust as you like!
{
"create-symlinks": {
"ignore": ["eslint", "jest"]
}
}
This will ignore all dependencies that include either jest or eslint in their package names.