npm-merge-driver-install
A package to automatically install npm-merge-driver when possible.
Table of Contents generated with DocToc
Installation
To install run
npm i --save-dev npm-merge-driver-install
When will it installs
It will install when the package is installed if:
- We are not running in a CI, unless the
NPM_MERGE_DRIVER_IGNORE_CI
option is used. - The root project has a
.git
directory. - The
NPM_MERGE_DRIVER_SKIP_INSTALL
option is not in use.
Cli usage
It can also be installed by running the provided binary (npm-merge-driver-install
) although the rules abov about when it will install still apply.
Options
Options are passed through as command line environment variables
NPM_MERGE_DRIVER_SKIP_INSTALL
If this variable is present in the environment when npm-merge-driver-install
is installed, then npm-merge-driver
will not be installed.
NPM_MERGE_DRIVER_IGNORE_CI
If this variable is present in the environment when npm-merge-driver-install
is installed on a CI it will be possible for npm-merge-driver
to be installed in a CI.