(...a)
| 22 | const GLOBAL_NODE_MODULES = join(WINDOWS ? '' : 'lib', 'node_modules') |
| 23 | |
| 24 | const getOpts = (...a) => { |
| 25 | const [opts, args] = a.reduce((acc, arg) => { |
| 26 | acc[typeof arg === 'object' ? 0 : 1].push(arg) |
| 27 | return acc |
| 28 | }, [[], []]) |
| 29 | return [Object.assign({}, ...opts), args] |
| 30 | } |
| 31 | |
| 32 | const normalizePath = path => path.replace(/[A-Z]:/, '').replace(/\\/g, '/') |
| 33 |