Skip to content

Commit 9b7d076

Browse files
filipesilvahansl
authored andcommitted
fix(@angular-devkit/schematics): correctly resolve absolute windows paths
1 parent 9720077 commit 9b7d076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular_devkit/schematics/tools/node-module-engine-host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class NodeModulesEngineHost extends FileSystemEngineHostBase {
7474
protected _resolveCollectionPath(name: string): string {
7575
let collectionPath: string | undefined = undefined;
7676

77-
if (name.split('/').length > (name[0] == '@' ? 2 : 1)) {
77+
if (name.replace(/\\/, '/').split('/').length > (name[0] == '@' ? 2 : 1)) {
7878
try {
7979
collectionPath = this._resolvePath(name, process.cwd());
8080
} catch (_) {

0 commit comments

Comments
 (0)