Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
fix wedriverio bin path issue due to flattening dependency, based on npm/npm#9718 (comment) solution. 

!!! only tested on npm 2.14.2 and node v4.0.0 on MacOS 10.9.5
  • Loading branch information
aliokan committed Oct 15, 2015
1 parent 4217b61 commit d7aca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function(options) {
var stream = this,
configFile = file.path,
isWin = /^win/.test(process.platform),
wdioBin = path.join(__dirname, 'node_modules', '.bin', isWin ? 'wdio.cmd' : 'wdio');
wdioBin = require.resolve(path.join('webdriverio', 'bin', isWin ? 'wdio.cmd' : 'wdio'));

var opts = deepmerge({
wdioBin: wdioBin
Expand Down

0 comments on commit d7aca92

Please sign in to comment.