Execute In SubDirectories
Execute your favorite command in SubDirectories. Use it like: eisd <command> [options] <directories...>
(Example: eisd 'yarn build' --async client server scripts
)

Click here for the yarn install version!
Click here for the npm install version!
Usage
Usage: eisd <command> [options] <directories...>
Options:
-a, --async Execute commands async across all folders, output will be a mess
-r, --ignoreRegex [regex] Ignore certain error outputs (e.g. '^warning' for yarn warnings) in the form of a regex
-e, --allowErrors Allow errors (at default we stop when there is one). NOTE: always true when in async mode
-h, --help output usage information
Examples
Cli:
eisd 'yarn install' --ignoreRegex '^warning' --async client server testSetup/mockServer
Package.json:
{
"name": "Root",
"version": "0.0.1",
"description": "mainFolder",
"scripts": {
"postinstall": "yisd client server",
"build": "eisd 'yarn build' client server scripts"
}
}
Compatibility
Works on Linux and Mac, should also work on Windows (will test it soon). If not, create an issue and I will fix it. :-)