We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fda683b commit b22202cCopy full SHA for b22202c
packages/angular_devkit/core/src/workspace/core.ts
@@ -35,7 +35,8 @@ export async function readWorkspace(
35
path: string,
36
host: WorkspaceHost,
37
format?: WorkspaceFormat,
38
-): Promise<WorkspaceDefinition> {
+ // return type will eventually have a `diagnostics` property as well
39
+): Promise<{ workspace: WorkspaceDefinition }> {
40
if (await host.isDirectory(path)) {
41
// TODO: Warn if multiple found (requires diagnostics support)
42
const directory = normalize(path);
@@ -78,7 +79,7 @@ export async function readWorkspace(
78
79
80
formatLookup.set(workspace, WorkspaceFormat.JSON);
81
- return workspace;
82
+ return { workspace };
83
}
84
85
export async function writeWorkspace(
0 commit comments