Skip to content

Commit

Permalink
chore(release): 2.4.0 [skip ci]
Browse files Browse the repository at this point in the history
# [2.4.0](v2.3.2...v2.4.0) (2023-03-08)

### Features

* support cjs files ([08018b3](08018b3))
  • Loading branch information
semantic-release-bot committed Mar 8, 2023
1 parent 08018b3 commit 2b0a091
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [2.4.0](https://github.com/ClearC2/headlamp/compare/v2.3.2...v2.4.0) (2023-03-08)


### Features

* support cjs files ([08018b3](https://github.com/ClearC2/headlamp/commit/08018b30d9b220b7bf3644ad3d15f2229c23df25))

## [2.3.2](https://github.com/ClearC2/headlamp/compare/v2.3.1...v2.3.2) (2023-02-24)


Expand Down
4 changes: 2 additions & 2 deletions lib/api-route-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,11 @@ function getFileRoutes(options) {
};

if (options.routes) {
routes = routes.concat(filesToRoutes(_glob["default"].sync("".concat(options.routes, "/**/*.+(js|json)"))));
routes = routes.concat(filesToRoutes(_glob["default"].sync("".concat(options.routes, "/**/*.+(js|json|cjs)"))));
}

if (src && srcDir) {
routes = routes.concat(filesToRoutes(_glob["default"].sync("".concat(src, "/**/").concat(srcDir, "/**/*.+(js|json)"))));
routes = routes.concat(filesToRoutes(_glob["default"].sync("".concat(src, "/**/").concat(srcDir, "/**/*.+(js|json|cjs)"))));
}

return routes;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clearc2/headlamp",
"version": "2.3.2",
"version": "2.4.0",
"description": "Express API documenter",
"main": "lib/index.js",
"publishConfig": {
Expand Down

0 comments on commit 2b0a091

Please sign in to comment.