Skip to content

Commit

Permalink
Merge pull request #2781 from tuxmachine/docs/fix-swagger-swc-plugin-…
Browse files Browse the repository at this point in the history
…import

docs(recipes/swc): fix import path
  • Loading branch information
kamilmysliwiec authored Jul 5, 2023
2 parents d15d9a9 + 0c62fb9 commit bf61568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/recipes/swc.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ declare a `generate-metadata.ts` file near the `main.ts` file with the following

```ts
import { PluginMetadataGenerator } from '@nestjs/cli/lib/compiler/plugins';
import { ReadonlyVisitor } from '@nestjs/swagger';
import { ReadonlyVisitor } from '@nestjs/swagger/dist/plugin';

const generator = new PluginMetadataGenerator();
generator.generate({
visitors: [new ReadonlyVisitor({ introspectComments: true, pathToSource: __dirname })],
outputDir: __dirname,
watch: true,
tsconfigPath: 'tsconfig.build.json',
tsconfigPath: 'apps/<name>/tsconfig.app.json',
});
```

Expand Down

0 comments on commit bf61568

Please sign in to comment.