Skip to content

Commit bf61568

Browse files
Merge pull request #2781 from tuxmachine/docs/fix-swagger-swc-plugin-import
docs(recipes/swc): fix import path
2 parents d15d9a9 + 0c62fb9 commit bf61568

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/swc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ declare a `generate-metadata.ts` file near the `main.ts` file with the following
135135

136136
```ts
137137
import { PluginMetadataGenerator } from '@nestjs/cli/lib/compiler/plugins';
138-
import { ReadonlyVisitor } from '@nestjs/swagger';
138+
import { ReadonlyVisitor } from '@nestjs/swagger/dist/plugin';
139139

140140
const generator = new PluginMetadataGenerator();
141141
generator.generate({
142142
visitors: [new ReadonlyVisitor({ introspectComments: true, pathToSource: __dirname })],
143143
outputDir: __dirname,
144144
watch: true,
145-
tsconfigPath: 'tsconfig.build.json',
145+
tsconfigPath: 'apps/<name>/tsconfig.app.json',
146146
});
147147
```
148148

0 commit comments

Comments
 (0)