Skip to content

Commit

Permalink
Merge pull request #11 from TinkoffCreditSystems/ng-morph-tree
Browse files Browse the repository at this point in the history
fix: set CWD as default path
  • Loading branch information
IKatsuba authored Jun 9, 2021
2 parents a075512 + 6b68654 commit d81d5a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/ng-morph/project/classes/ng-morph-tree.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('NgMorphTree', () => {
let tree: Tree;

beforeEach(() => {
tree = new NgMorphTree();
tree = new NgMorphTree(__dirname);

setActiveProject(createProject(tree));
});
Expand All @@ -24,7 +24,7 @@ import { NodeJsSyncHost } from '@angular-devkit/core/node';
import { normalize } from '@angular-devkit/core';
export class NgMorphTree extends HostTree {
constructor(root: string = __dirname) {
constructor(root: string = process.cwd()) {
super(new ScopedHost(new NodeJsSyncHost(), normalize(root)));
}
}
Expand Down
2 changes: 1 addition & 1 deletion libs/ng-morph/project/classes/ng-morph-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NodeJsSyncHost } from '@angular-devkit/core/node';
import { normalize } from '@angular-devkit/core';

export class NgMorphTree extends HostTree {
constructor(root: string = __dirname) {
constructor(root: string = process.cwd()) {
super(new ScopedHost(new NodeJsSyncHost(), normalize(root)));
}
}

0 comments on commit d81d5a4

Please sign in to comment.