Skip to content

Commit 3c0a546

Browse files
filipesilvahansl
authored andcommitted
fix(@angular/cli): fix windows project root
1 parent 5c6aa87 commit 3c0a546

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

package-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@angular/cli/lib/cli/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as path from 'path';
22
import { filter } from 'rxjs/operators';
3-
import { logging, terminal, dirname, Path } from '@angular-devkit/core';
3+
import { logging, terminal } from '@angular-devkit/core';
44
import { runCommand } from '../../models/command-runner';
55
import { findUp } from '../../utilities/find-up';
66

@@ -52,7 +52,7 @@ export default async function(options: any) {
5252
const possibleConfigNames = ['angular.json', '.angular.json'];
5353
const workspacePath = findUp(possibleConfigNames, process.cwd());
5454
const projectRoot = workspacePath !== null
55-
? dirname(workspacePath as Path)
55+
? path.dirname(workspacePath)
5656
: process.cwd();
5757
const context = {
5858
project: {

0 commit comments

Comments
 (0)