mirror of https://github.com/lukechilds/node.git
Browse Source
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>v4.x
committed by
Myles Borins
2 changed files with 17 additions and 1 deletions
@ -0,0 +1,15 @@ |
|||||
|
'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); |
Loading…
Reference in new issue