Skip to content

Commit 2d2cb97

Browse files
committed
feat: support ts
1 parent dea5a64 commit 2d2cb97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/plugins/docs/swagger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ function swaggerOptionsFactory(spec, config) {
2525
},
2626
// Path to the API docs
2727
apis: [
28-
path.resolve(root, 'src/**/*.js'),
29-
path.resolve(__dirname, '**/*.js'),
28+
path.resolve(root, 'src/**/*.[j|t]s'),
29+
path.resolve(__dirname, '**/*.[j|t]s'),
3030
].concat(process.env.DOCS_SWAGGER_ROOT ? [
31-
path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.js'),
31+
path.resolve(process.env.DOCS_SWAGGER_ROOT, '**/*.[j|t]s'),
3232
] : []),
3333
};
3434
}

0 commit comments

Comments
 (0)