Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(store): name pattern root after folder on fs
Browse files Browse the repository at this point in the history
  • Loading branch information
faselbaum committed Mar 12, 2018
1 parent d9ace1a commit 1b4cb1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/store/styleguide/styleguide.ts
@@ -1,3 +1,4 @@
import { Directory } from '../../styleguide-analyzer/directory';
import { PatternFolder } from './folder';
import { Pattern } from './pattern';
import { PatternType } from './pattern-type';
Expand Down Expand Up @@ -81,7 +82,8 @@ export class Styleguide {
}

public load(): void {
this.patternRoot = new PatternFolder('root');
const rootDir = new Directory(this.path);
this.patternRoot = new PatternFolder(rootDir.getName());

this.addSyntheticPatterns();

Expand Down

0 comments on commit 1b4cb1e

Please sign in to comment.