Skip to content

Commit 606b56c

Browse files
alan-agius4clydin
authored andcommitted
docs: update example on read workspace in devkit core page
1 parent 1fb8853 commit 606b56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/core/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ import { workspaces } from '@angular-devkit/core';
144144

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

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

0 commit comments

Comments
 (0)