Skip to content

Commit

Permalink
fix: remove extra component directories (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch authored Sep 13, 2021
1 parent 5004024 commit e68d92b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class ReactOutputManager extends FrameworkOutputManager<string> {
async writeComponent(input: string, outputPath: string, componentName: string): Promise<void> {
console.log('Writing file ', outputPath);

const dir = path.parse(outputPath).base;
const { dir } = path.parse(outputPath);

if (!existsSync(dir)) {
mkdirSync(dir);
Expand Down

0 comments on commit e68d92b

Please sign in to comment.