Skip to content

Commit

Permalink
fix: resolve a type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-erim committed Dec 2, 2020
1 parent fddbe88 commit d037a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions npm/ng-packs/packages/schematics/src/utils/workspace.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { experimental, strings, workspaces } from '@angular-devkit/core';
import { strings, workspaces } from '@angular-devkit/core';
import { SchematicsException, Tree } from '@angular-devkit/schematics';
import { Exception } from '../enums';
import { Project } from '../models';
import { getWorkspace, ProjectType } from './angular';
import { getWorkspace, ProjectType, WorkspaceSchema } from './angular';
import { findEnvironmentExpression } from './ast';
import { readFileInTree } from './common';

Expand All @@ -23,7 +23,7 @@ export function readWorkspaceSchema(tree: Tree) {
const workspaceBuffer = tree.read('/angular.json') || tree.read('/workspace.json');
if (!workspaceBuffer) throw new SchematicsException(Exception.NoWorkspace);

let workspaceSchema: experimental.workspace.WorkspaceSchema;
let workspaceSchema: WorkspaceSchema;

try {
workspaceSchema = JSON.parse(workspaceBuffer.toString());
Expand Down

0 comments on commit d037a6c

Please sign in to comment.