Skip to content

Commit

Permalink
fix(@angular/cli): fix webdriver deep import on yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Feb 10, 2017
1 parent b9295e0 commit d4b5931
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@angular/cli/tasks/e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@ export const E2eTask = Task.extend({
}

if (e2eTaskOptions.webdriverUpdate) {
// webdriver-manager can only be accessed via a deep import from within
// protractor/node_modules. A double deep import if you will.
const webdriverUpdate = requireProjectModule(projectRoot,
'protractor/node_modules/webdriver-manager/built/lib/cmds/update');
'webdriver-manager/built/lib/cmds/update');
// run `webdriver-manager update --standalone false --gecko false --quiet`
promise = promise.then(() => webdriverUpdate.program.run({
standalone: false,
Expand Down

0 comments on commit d4b5931

Please sign in to comment.