Skip to content

Commit

Permalink
actually use new code
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Dec 3, 2020
1 parent 60f880d commit 0d159d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/generateDocgenCodeBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ export interface GeneratorOptions {
typePropName: string;
}

export default function generateDocgenCodeBlock(
options: GeneratorOptions
): string {
export function generateDocgenCodeBlock(options: GeneratorOptions): string {
const sourceFile = ts.createSourceFile(
options.filename,
options.source,
Expand Down
3 changes: 2 additions & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import createDebug from "debug";
import * as webpack from "webpack";
import ts from "typescript";
import * as docGen from "react-docgen-typescript";
import generateDocgenCodeBlock from "react-docgen-typescript-loader/dist/generateDocgenCodeBlock";
import { matcher } from "micromatch";

import { generateDocgenCodeBlock } from "./generateDocgenCodeBlock";

const debugExclude = createDebug("docgen:exclude");
const debugInclude = createDebug("docgen:include");
const debugDocs = createDebug("docgen:docs");
Expand Down

0 comments on commit 0d159d0

Please # to comment.