11cb0ef41Sopenharmony_ciconst isWindows = require('./is-windows.js') 21cb0ef41Sopenharmony_ciconst getPrefix = require('./get-prefix.js') 31cb0ef41Sopenharmony_ciconst getNodeModules = require('./get-node-modules.js') 41cb0ef41Sopenharmony_ciconst { dirname } = require('path') 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_cimodule.exports = ({ top, path }) => 71cb0ef41Sopenharmony_ci !top ? getNodeModules(path) + '/.bin' 81cb0ef41Sopenharmony_ci : isWindows ? getPrefix(path) 91cb0ef41Sopenharmony_ci : dirname(getPrefix(path)) + '/bin' 10