Skip to content

Commit

Permalink
feat: support ts
Browse files Browse the repository at this point in the history
  • Loading branch information
zyao89 committed Jan 18, 2024
1 parent dea5a64 commit 2d2cb97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/docs/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ function swaggerOptionsFactory(spec, config) {
},
// Path to the API docs
apis: [
path.resolve(root, 'src/**/*.js'),
path.resolve(__dirname, '**/*.js'),
path.resolve(root, 'src/**/*.[j|t]s'),
path.resolve(__dirname, '**/*.[j|t]s'),
].concat(process.env.DOCS_SWAGGER_ROOT ? [
path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.js'),
path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.[j|t]s'),
] : []),
};
}
Expand Down

0 comments on commit 2d2cb97

Please sign in to comment.