Skip to content

Commit

Permalink
chore: fix relative
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Åström committed Aug 15, 2019
1 parent f801854 commit 44d318d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion commands/protractor/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,13 @@ const { argv } = yargs(process.argv.slice(2))
}
return config;
})
.coerce('specs', a => globby.sync(b => a.map(b => (path.relative(process.cwd(), path.resolve(__dirname, b))).replace(/\\/g, '/')).map(p => path.resolve(p)))
.coerce('specs', a => globby.sync(
a
.map(b => path
.relative(process.cwd(), path.resolve(__dirname, b))
.replace(/\\/g, '/'))
.map(p => path.resolve(p)),
))
.coerce('babel', utils.coerceBabel);

argv.shouldInstrument = () => false;
Expand Down

0 comments on commit 44d318d

Please sign in to comment.