Skip to content

Commit

Permalink
fix(@angular-devkit/core): support writing an empty object workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and vikerman committed Apr 29, 2019
1 parent b2262e9 commit 8089a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/workspace/core_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ describe('readWorkspace', () => {
});

describe('writeWorkspace', () => {
xit('attempts to write to specified file path', async (done) => {
it('attempts to write to specified file path', async (done) => {
const requestedPath = '/path/to/workspace/angular.json';

let writtenPath: string | undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/angular_devkit/core/src/workspace/json/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function convertJsonWorkspace(workspace: WorkspaceDefinition, schema?: string):
$schema: schema || './node_modules/@angular/cli/lib/config/schema.json',
version: 1,
...workspace.extensions,
projects: convertJsonProjectCollection(workspace.projects),
projects: workspace.projects ? convertJsonProjectCollection(workspace.projects) : {},
};

return obj;
Expand Down

0 comments on commit 8089a3f

Please sign in to comment.