Skip to content

Commit 0070ea4

Browse files
hanslalexeagle
authored andcommitted
fix(@angular-devkit/schematics): fix task executor on Windows
Before we did not denormalize the paths, but were expecting to get paths as options.
1 parent fefef02 commit 0070ea4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/angular_devkit/schematics/tools/workflow/node-workflow.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Use of this source code is governed by an MIT-style license that can be
66
* found in the LICENSE file at https://angular.io/license
77
*/
8-
import { Path, virtualFs } from '@angular-devkit/core';
8+
import { Path, getSystemPath, virtualFs } from '@angular-devkit/core';
99
import {
1010
workflow,
1111
} from '@angular-devkit/schematics'; // tslint:disable-line:no-implicit-dependencies
@@ -42,13 +42,13 @@ export class NodeWorkflow extends workflow.BaseWorkflow {
4242
{
4343
allowPackageManagerOverride: true,
4444
packageManager: options.packageManager,
45-
rootDirectory: options.root,
45+
rootDirectory: options.root && getSystemPath(options.root),
4646
},
4747
);
4848
engineHost.registerTaskExecutor(
4949
BuiltinTaskExecutor.RepositoryInitializer,
5050
{
51-
rootDirectory: options.root,
51+
rootDirectory: options.root && getSystemPath(options.root),
5252
},
5353
);
5454
engineHost.registerTaskExecutor(BuiltinTaskExecutor.RunSchematic);

0 commit comments

Comments
 (0)