mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 02:01:52 +00:00

Add a hack js-yaml module to the doctool dependencies that simply loads the one that’s included with eslint. This helps avoiding to check in the whole dependency tree into the core repo. PR-URL: https://github.com/nodejs/node/pull/6495 Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
16 lines
295 B
JavaScript
16 lines
295 B
JavaScript
'use strict';
|
||
|
||
// Hack to load the js-yaml module from eslint.
|
||
// No other reason than that it’s huge.
|
||
|
||
const path = require('path');
|
||
|
||
const realJSYaml = path.resolve(
|
||
__dirname, '..', '..', '..', // tools/
|
||
'eslint',
|
||
'node_modules',
|
||
'js-yaml'
|
||
);
|
||
|
||
module.exports = require(realJSYaml);
|