function runYarn(deps, options = {}, exec) {
	const add = options.dev
		? ['add', '--dev', '--ignore-workspace-root-check']
		: ['add', '--ignore-workspace-root-check'];
	const remove = ['remove'];
	const args = (options.remove ? remove : add).concat(deps);

	return execCommand(exec, 'yarn', args, {
		stdio: options.stdio === undefined ? 'inherit' : options.stdio,
		cwd: options.cwd,
	});
}
Install or uninstall given Yarn packages

This will use yarn's `--ignore-workspace-root-check` to allow additions of packages
inside a repository that is using yarn's workspaces feature. If the current
repository is _not_ using workspaces, then that flag is simply ignored.

@see https://classic.yarnpkg.com/en/docs/cli/add/#toc-yarn-add-ignore-workspace-root-check-w

@param {string[]} deps
@param {RunOptions} [options]
@param {Function} [exec]