@arthurgubaidullin/nx-embed-dependencies
Version:
This plugin for [Nx](https://nx.dev) helps injecting local dependencies into a package.
15 lines (14 loc) • 344 B
JavaScript
import { PathReporter } from './PathReporter';
import { isLeft } from 'fp-ts/es6/Either';
/**
* @category deprecated
* @since 1.0.0
* @deprecated
*/
export var ThrowReporter = {
report: function (validation) {
if (isLeft(validation)) {
throw new Error(PathReporter.report(validation).join('\n'));
}
}
};