Skip to content

Commit

Permalink
docs: update example on read workspace in devkit core page
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and clydin committed Aug 5, 2020
1 parent 1fb8853 commit 606b56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ import { workspaces } from '@angular-devkit/core';

async function demonstrate() {
const host = workspaces.createWorkspaceHost(new NodeJsSyncHost());
const workspace = await workspaces.readWorkspace('path/to/workspace/directory/', host);
const { workspace } = await workspaces.readWorkspace('path/to/workspace/directory/', host);

const project = workspace.projects.get('my-app');
if (!project) {
Expand Down

0 comments on commit 606b56c

Please sign in to comment.