UNPKG

dependency-cruiser-fork

Version:

Validate and visualize dependencies. With your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

12 lines (11 loc) 421 B
/** * Returns the results of a cruise in a javascript object * * @param {ICruiseResult} pResults - the output of a dependency-cruise adhering to ../schema/cruise-result.schema.json * @returns {IReporterOutput} - output: the results in a javascript object (hence adhering to the same json schema) * exitCode: 0 */ module.exports = (pResults) => ({ output: pResults, exitCode: 0, });